When I use Alpine to solve an optimization problem, I get the error below.
Starting bound-tightening
ERROR: LoadError: Constraints of type MathOptInterface.ScalarQuadraticFunction{Float64}-in-MathOptInterface.GreaterThan{Float64} are not supported by the solver.
If you expected the solver to support your problem, you may have an error in your formulation. Otherwise, consider using a different solver.
The list of available solvers, along with the problem types they support, is available at https://jump.dev/JuMP.jl/stable/installation/#Supported-solvers.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] _moi_add_constraint(model::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.Bridges.LazyBridgeOptimizer{HiGHS.Optimizer}, MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}, f::MathOptInterface.ScalarQuadraticFunction{Float64}, s::MathOptInterface.GreaterThan{Float64})
@ JuMP ~/.julia/packages/JuMP/7rBNn/src/constraints.jl:1004
[3] add_constraint(model::Model, con::ScalarConstraint{QuadExpr, MathOptInterface.GreaterThan{Float64}}, name::String)
@ JuMP ~/.julia/packages/JuMP/7rBNn/src/constraints.jl:1036
[4] macro expansion
@ ~/.julia/packages/JuMP/7rBNn/src/macros/@constraint.jl:173 [inlined]
[5] amp_post_convhull_constrs(m::Alpine.Optimizer, λ::Dict{Any, Any}, α::Dict{Any, Any}, monomial_idx::Int64, discretization::Dict{Any, Any})
@ Alpine ~/.julia/packages/Alpine/2DP5q/src/multilinear.jl:428
[6] amp_convexify_quadratic_univariate(m::Alpine.Optimizer, k::Vector{Expr}, λ::Dict{Any, Any}, α::Dict{Any, Any}, discretization::Dict{Any, Any})
@ Alpine ~/.julia/packages/Alpine/2DP5q/src/multilinear.jl:87
[7] amp_post_convhull(m::Alpine.Optimizer; kwargs::@Kwargs{use_disc::Dict{Any, Any}})
@ Alpine ~/.julia/packages/Alpine/2DP5q/src/multilinear.jl:19
[8] amp_post_convhull
@ ~/.julia/packages/Alpine/2DP5q/src/multilinear.jl:1 [inlined]
[9] #amp_post_convexification#126
@ ~/.julia/packages/Alpine/2DP5q/src/bounding_model.jl:51 [inlined]
[10] amp_post_convexification
@ ~/.julia/packages/Alpine/2DP5q/src/bounding_model.jl:48 [inlined]
[11] create_obbt_model(m::Alpine.Optimizer, discretization::Dict{Any, Any}, bound::Float64; kwargs::@Kwargs{})
@ Alpine ~/.julia/packages/Alpine/2DP5q/src/presolve.jl:293
[12] create_obbt_model(m::Alpine.Optimizer, discretization::Dict{Any, Any}, bound::Float64)
@ Alpine ~/.julia/packages/Alpine/2DP5q/src/presolve.jl:286
[13] optimization_based_bound_tightening(m::Alpine.Optimizer; use_bound::Bool, time_limit::Float64, kwargs::@Kwargs{})
@ Alpine ~/.julia/packages/Alpine/2DP5q/src/presolve.jl:118
[14] optimization_based_bound_tightening
@ ~/.julia/packages/Alpine/2DP5q/src/presolve.jl:51 [inlined]
[15] bound_tightening_wrapper(m::Alpine.Optimizer; use_bound::Bool, kwargs::@Kwargs{})
@ Alpine ~/.julia/packages/Alpine/2DP5q/src/presolve.jl:17
[16] bound_tightening_wrapper
@ ~/.julia/packages/Alpine/2DP5q/src/presolve.jl:13 [inlined]
[17] presolve(m::Alpine.Optimizer)
@ Alpine ~/.julia/packages/Alpine/2DP5q/src/main_algorithm.jl:241
[18] optimize!(m::Alpine.Optimizer)
@ Alpine ~/.julia/packages/Alpine/2DP5q/src/main_algorithm.jl:157
[19] optimize!
@ ~/.julia/packages/MathOptInterface/2CULs/src/Bridges/bridge_optimizer.jl:380 [inlined]
[20] optimize!
@ ~/.julia/packages/MathOptInterface/2CULs/src/MathOptInterface.jl:85 [inlined]
[21] optimize!(m::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.Bridges.LazyBridgeOptimizer{Alpine.Optimizer}, MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}})
@ MathOptInterface.Utilities ~/.julia/packages/MathOptInterface/2CULs/src/Utilities/cachingoptimizer.jl:316
[22] optimize!(model::Model; ignore_optimize_hook::Bool, _differentiation_backend::MathOptInterface.Nonlinear.SparseReverseMode, kwargs::@Kwargs{})
@ JuMP ~/.julia/packages/JuMP/7rBNn/src/optimizer_interface.jl:595
[23] optimize!(model::Model)
@ JuMP ~/.julia/packages/JuMP/7rBNn/src/optimizer_interface.jl:546
[24] macro expansion
@ ~/julia_code/Gen7_BPM/create_model.jl:399 [inlined]
[25] macro expansion
@ ./timing.jl:395 [inlined]
[26] top-level scope
@ ~/julia_code/Gen7_BPM/create_model.jl:397
in expression starting at /home/stuart/julia_code/Gen7_BPM/create_model.jl:395