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

Does Column::addTerm() assumes constraints in normal/standard form?

回答済み

コメント

2件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Riley Clement
    • Gurobi Staff

    Hi Alberto,

    You are correct.  You can verify this by adding the following code

    for (int i = 0; i < model.getCol(x).size(); i++) {
    cout << "Coeff term:" << i << ": " << model.getCol(x).getCoeff(i) << endl;
    }

    to our simple mip1 c++ example, and playing with it to see that the coefficients of the terms in the Column object are invariant to the constraint sense or whether x is added to the LHS or RHS.

    - Riley

    0

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