Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not support an objective function of type MathOptInterface.SingleVariable. #96

Closed
chkwon opened this issue Jan 11, 2019 · 0 comments · Fixed by #108
Closed

does not support an objective function of type MathOptInterface.SingleVariable. #96

chkwon opened this issue Jan 11, 2019 · 0 comments · Fixed by #108

Comments

@chkwon
Copy link

chkwon commented Jan 11, 2019

using JuMP, Cbc
m = Model(with_optimizer(Cbc.Optimizer))
@variable(m, x1>=0)
@objective(m, Min, x1)
optimize!(m)

produces

ERROR: The solver does not support an objective function of type MathOptInterface.SingleVariable.
Stacktrace:
 [1] error(::String, ::Type, ::String) at ./error.jl:42
 [2] set_objective_function(::Model, ::MathOptInterface.SingleVariable) at /Users/chkwon/.julia/packages/JuMP/xQHBA/src/objective.jl:63
 [3] set_objective_function at /Users/chkwon/.julia/packages/JuMP/xQHBA/src/objective.jl:73 [inlined]
 [4] set_objective(::Model, ::MathOptInterface.OptimizationSense, ::VariableRef) at /Users/chkwon/.julia/packages/JuMP/xQHBA/src/objective.jl:79
 [5] top-level scope at /Users/chkwon/.julia/packages/JuMP/xQHBA/src/macros.jl:914
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants