Including a machine learning-based model in the objective
回答済みLets suppose f(x) is a neural network model that is developed using PyTorch.
Is there a way to include f(x) in the objective function.
For example:
minimize f(x)+y
0
-
正式なコメント
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi Kadir,
Currently, there is no such feature. As of today, you would have to model the neural network by hand. Assuming that you are using the ReLU activation function, you could use the addGenConstrMax() function.
Best regards,
Jaromił0
投稿コメントは受け付けていません。
コメント
2件のコメント