Skip to content

Commit

Permalink
Fix action of separator on box
Browse files Browse the repository at this point in the history
  • Loading branch information
dpsanders committed Apr 2, 2024
1 parent 2844f7c commit 9736773
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/new_contractor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ function (SS::Separator)(X)
inner = boundary
outer = boundary

if SS.f(lb) SS.constraint
lb_image = SS.f(lb)
if !isempty(lb_image) && (lb_image SS.constraint)
inner = inner lb
else
outer = outer lb
end

if SS.f(ub) SS.constraint

ub_image = SS.f(ub)
if !isempty(ub_image) && (ub_image SS.constraint)
inner = inner ub
else
outer = outer ub
Expand Down

0 comments on commit 9736773

Please sign in to comment.