Skip to content

Commit 8953315

Browse files
committed
Update
1 parent 9483378 commit 8953315

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ext/MultiObjectiveAlgorithmsPolyhedraExt.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ function MOA.minimize_multiobjective!(
9090
merge!(solutions, anchors)
9191
u = MOI.add_variables(inner, n)
9292
u_constraints = [ # u_i >= 0 for all i = 1:n
93-
MOI.add_constraint(inner, u_i, MOI.GreaterThan{Float64}(0))
94-
for u_i in u
93+
MOI.add_constraint(inner, u_i, MOI.GreaterThan{Float64}(0)) for u_i in u
9594
]
9695
f_constraints = [ # f_i + u_i <= yUB_i for all i = 1:n
9796
MOI.Utilities.normalize_and_add_constraint(

src/algorithms/EpsilonConstraint.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function minimize_multiobjective!(
7878
f::MOI.AbstractVectorFunction,
7979
)
8080
@assert MOI.get(inner, MOI.ObjectiveSense()) == MOI.MIN_SENSE
81-
if MOI.output_dimension(inner) != 2
81+
if MOI.output_dimension(f) != 2
8282
error("EpsilonConstraint requires exactly two objectives")
8383
end
8484
# Compute the bounding box of the objectives using Hierarchical().

0 commit comments

Comments
 (0)