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

constraint with parameter that has variable as an index

回答済み

コメント

1件のコメント

  • Riley Clement
    • 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

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