Skip to content

Commit

Permalink
one more
Browse files Browse the repository at this point in the history
  • Loading branch information
ericphanson committed May 13, 2024
1 parent 31f15a4 commit 5364504
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/constraints/GenericConstraint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ end

function _add_constraint!(context::Context, c::GenericConstraint)
if vexity(c.child) == ConstVexity()
# This `evaluate` call is safe, since even if it refers to a `fix!`'d variable,
# it happens when we are formulating the problem (not at expression-time), so there
# is not time for the variable to be re-`fix!`'d to a different value (or `free!`'d)
if !is_feasible(evaluate(c.child), c.set, CONSTANT_CONSTRAINT_TOL[])
context.detected_infeasible_during_formulation = true
end
Expand Down

0 comments on commit 5364504

Please sign in to comment.