メインコンテンツへスキップ

How can I construct an optimization problem inside another optimization problem?

回答済み

コメント

1件のコメント

  • Jaromił Najman
    • Gurobi Staff Gurobi Staff

    It is not possible to have one variable being attached to more than 1 model. What you could do is to introduce separate variables \(N_{m1}\), solve model \(\texttt{m1}\), extract the solution value for variable \(N_{m1}\) via its X attribute, and finally add a constraint setting \(N = X_{N_{m1}}\).

    Best regards, 
    Jaromił

    0

サインインしてコメントを残してください。