PWL objective function
回答済みI want to minimize (f1(x1)*f2(x2))
where f1 and f2 are both represented by piecewise linear function.
How can I model this objective function in gurobi?
0
-
正式なコメント
This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support. -
You can model the following equivalent formulation
\[\begin{align*}
\min &\,\,z_1 \cdot z_2 \\
z_1 & = f_{1}^{pwl}(x_1) \,\, (1)\\
z_2 & = f_{2}^{pwl}(x_2) \,\, (2)
\end{align*}\]You can use the addGenConstrPWL() method to model the equalities \((1)\) and \((2)\). Note that you will have to introduce 2 auxiliary variables \(z_1, z_2\). Since Gurobi supports bilinear terms, you can then multiply the two in the objective function.
Best regards,
Jaromił0
投稿コメントは受け付けていません。
コメント
2件のコメント