Skip to content

Commit

Permalink
Fix GetLinVar(const NLConstraint& , int ) #237
Browse files Browse the repository at this point in the history
  • Loading branch information
glebbelov committed Dec 29, 2024
1 parent 22bd835 commit dd5a117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/mp/flat/nl_expr/model_api_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class BasicExprModelAPI

/// Get linear part var \a i.
int GetLinVar(const NLConstraint& nlc, int i) const {
assert(IsVarProper(i));
assert(IsVarProper(nlc.GetMainCon().var(i)));
return nlc.GetMainCon().var(i);
}

Expand Down

0 comments on commit dd5a117

Please sign in to comment.