Skip to main content

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

Answered

Comments

1 comment

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

Please sign in to leave a comment.