Skip to main content

Write constraint

Answered

Comments

2 comments

  • 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

Please sign in to leave a comment.