Hi,
I was trying to test multi-objective support of JuMP
(MOO) pkg> st
Project MOO v0.0.1
Status `~/Desktop/MOO.jl/Project.toml`
[60bf3e95] GLPK v1.1.0
[4076af6c] JuMP v1.7.0 `https://github.com/jump-dev/JuMP.jl.git#od/vector-optimization`
[b8f27783] MathOptInterface v1.11.5
[44cfe95a] Pkg
Running the following snippet
using JuMP, MOO, GLPK
model = JuMP.Model()
p1 = [77, 94, 71, 63, 96, 82, 85, 75, 72, 91, 99, 63, 84, 87, 79, 94, 90]
p2 = [65, 90, 90, 77, 95, 84, 70, 94, 66, 92, 74, 97, 60, 60, 65, 97, 93]
w = [80, 87, 68, 72, 66, 77, 99, 85, 70, 93, 98, 72, 100, 89, 67, 86, 91]
model = Model()
set_silent(model)
@variable(model, x[1:length(w)], Bin)
@objective(model, Max, [p1' * x, p2' * x])
@constraint(model, w' * x <= 900)
model
I get the following error:
ERROR: TypeError: in ObjectiveFunction, in F, expected F<:MathOptInterface.AbstractScalarFunction, got Type{MathOptInterface.VectorAffineFunction{Float64}}
Stacktrace:
[1] set_objective_function(model::Model, func::MathOptInterface.VectorAffineFunction{Float64})
@ JuMP ~/anaconda3/share/julia/packages/JuMP/3qle2/src/objective.jl:104
[2] set_objective_function(model::Model, func::Vector{AffExpr})
@ JuMP ~/anaconda3/share/julia/packages/JuMP/3qle2/src/objective.jl:143
[3] set_objective(model::Model, sense::MathOptInterface.OptimizationSense, func::Vector{AffExpr})
@ JuMP ~/anaconda3/share/julia/packages/JuMP/3qle2/src/objective.jl:172
[4] macro expansion
@ ~/anaconda3/share/julia/packages/JuMP/3qle2/src/macros.jl:1297 [inlined]
[5] top-level scope
@ ~/Desktop/MOO.jl/ttt.jl:11
Is Julia still trying to use the default version of JuMP?