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

Write constraint

回答済み

コメント

2件のコメント

  • Jaromił Najman
    • Gurobi Staff Gurobi Staff

    Could you elaborate what exactly is wrong with this constraint?

    The code you wrote adds the constraint

    MaxInvest: StockWeight[0] + StockWeight[1] = MaxInvest
    0
  • edoardo grammatico
    • Gurobi-versary
    • First Comment
    • First Question

    I solved it Jaromił Najman, thanks for the support.

    0

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