diff --git a/include/mp/flat/constr_2_expr.h b/include/mp/flat/constr_2_expr.h index 158ea3cd0..863f0d064 100644 --- a/include/mp/flat/constr_2_expr.h +++ b/include/mp/flat/constr_2_expr.h @@ -47,7 +47,13 @@ class Constraints2Expr { void DoMarkArgsAsVars( // needs to appear before the most generic template const AlgebraicConstraint& , int ) { } - /// @todo not mark Complementarity (NL accepts expressions) + /// Complementarity: only mark the var + /// (NL accepts expressions for the expression part) + template + void DoMarkArgsAsVars( // needs to appear before the most generic template + const ComplementarityConstraint& cc, int ) { + MPD( MarkAsResultVar(cc.GetVariable()) ); + } /// Generic arguments marking call template