Skip to content

Commit

Permalink
Fix activate! (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
guimarqu authored May 11, 2020
1 parent 0f7deb9 commit d71265d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MathProg/new_varconstr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ end

"Activate a variable in the formulation"
function activate!(form::Formulation, varconstrid::Id{VC}) where {VC<:AbstractVarConstr}
if iscurexplicit(form, varconstrid)
if iscurexplicit(form, varconstrid) && !iscuractive(form, varconstrid)
add!(form.buffer, varconstrid)
end
_setiscuractive!(form, varconstrid, true)
Expand Down

0 comments on commit d71265d

Please sign in to comment.