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

help writing component wise constraints in one line

ユーザーの入力を待っています。

コメント

2件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try Gurobot?
  • Jaromił Najman
    • Gurobi Staff

    Hi Victor,

    the reason for the error is that for the RHS you define

    (M_ik[i,k] for i in i_range for k in k_range)

    which generates a list \(\texttt{M_ik[0,0], M_ik[1,0], M_ik[2,0], ...}\). Thus, your RHS is not defined properly. Do you mean to sum over all \(\texttt{M_ik}\)? Could you write down the constraint you want to implement? You can use MathJax as described in Posting to the Community Forum.

    Best regards, 
    Jaromił

    0

投稿コメントは受け付けていません。