Skip to main content

constraint with parameter that has variable as an index

Answered

Comments

1 comment

  • Riley Clement
    • Gurobi Staff Gurobi Staff

    Hi,

    This:

    d[i, x[c, d]]

    will not work.  Variables do not have a value until the model is solved, and so you cannot use their values as an index.

    I recommend dedicating the appropriate effort to learning the basics of mathematical modelling.  The following  Udemy course may interest you.

    https://www.udemy.com/course/intro-to-optimization-pt1/

    - Riley

    0

Please sign in to leave a comment.