gurobi ML optimization with multiple machine learning models
AnsweredCan multiple machine learning models be used in the same Optimization Model? If possible, can I directly add multiple machine learning models to the Model? Are there any other tips that need attention? For example, in an optimization problem, I need to use constraint 1: y=f (x), constraint 2: z=g (x, y), where f() and g() are both machine learning models, and x is the input variable.
0
-
Hi Yingku,
Yes, you can embed multiple machine learning models in the same optimization model.
You will find examples which embed a single ML model here. Extending to two models is straightforward - it just requires twice the code.
- Riley
0
Please sign in to leave a comment.
Comments
1 comment