How do we define objective functions while doing optimization using pyomo in Python. We have defined Prediction models separately. Next step is to bring objective functions from prediction models (Gradient boosting, Random forest , Linear regression and others) and optimize to achieve maximum and minimum optimization. please suggest and share any working example in pyomo.
Asked
Active
Viewed 268 times
-1
-
Are you trying Simulation-based optimization? – David Felipe Medina Mayorga Jul 22 '20 at 01:13
-
This is a very broad question. Pyomo is largely to support algebraic modeling languages for LP, IP, MIP, etc. I'm sure there are some extensions to that into regression, etc. Have you reviewed pyomo's documentation on objective functions? Is there a more specific question? – AirSquid Jul 22 '20 at 01:38
1 Answers
0
Due to Pyomo use algebraic expression you should:
- Define the mathematical expression of your prediction model function.
- Implement the proper mathematical model in Pyomo including the needing parameters, variables and other constraints.
- Apply the min - max
You can make a cycle as follows:
Prediction model function -> Min-max refinement -> Prediction model function adjustment -> Min-max refinement -> ...
As many times you need to reach yor expected accuracy. API connection and multi-thread implementation could work.

David Felipe Medina Mayorga
- 325
- 1
- 13