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

MOIU._hasvar removed from MOI #74

Closed
matbesancon opened this issue Jan 10, 2020 · 2 comments
Closed

MOIU._hasvar removed from MOI #74

matbesancon opened this issue Jan 10, 2020 · 2 comments

Comments

@matbesancon
Copy link
Contributor

Error at the model creation step, _hasvar seems used, but is not (no longer?) defined in MOIU

ERROR: UndefVarError: _hasvar not defined
Stacktrace:
 [1] get_indices_variables(::MathOptInterface.ScalarAffineFunction{Float64}, ::Array{MathOptInterface.VariableIndex,1}) at /home/mbesancon/.julia/packages/Dualization/VYRFk/src/objective_coefficients.jl:103
 [2] remove_variables at /home/mbesancon/.julia/packages/Dualization/VYRFk/src/objective_coefficients.jl:92 [inlined]
 [3] remove_variables(::Dualization.PrimalObjective{Float64}, ::Array{MathOptInterface.VariableIndex,1}) at /home/mbesancon/.julia/packages/Dualization/VYRFk/src/objective_coefficients.jl:88
 [4] get_primal_objective(::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.AbstractOptimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}, ::Array{MathOptInterface.VariableIndex,1}) at /home/mbesancon/.julia/packages/Dualization/VYRFk/src/objective_coefficients.jl:82
 [5] dualize(::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.AbstractOptimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}, ::Dualization.DualProblem{Float64,MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.AbstractOptimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}}, ::Dualization.DualNames, ::Array{MathOptInterface.VariableIndex,1}, ::Bool) at /home/mbesancon/.julia/packages/Dualization/VYRFk/src/dualize.jl:33
 [6] #dualize#2 at /home/mbesancon/.julia/packages/Dualization/VYRFk/src/dualize.jl:16 [inlined]
 [7] (::Dualization.var"#kw##dualize")(::NamedTuple{(:dual_names,),Tuple{Dualization.DualNames}}, ::typeof(Dualization.dualize), ::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.AbstractOptimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}, ::Dualization.DualProblem{Float64,MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.AbstractOptimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}}) at ./none:0
 [8] #dualize#3(::Dualization.DualNames, ::typeof(Dualization.dualize), ::Model) at /home/mbesancon/.julia/packages/Dualization/VYRFk/src/dualize.jl:74
@blegat
Copy link
Member

blegat commented Jan 10, 2020

Fixed on master

@blegat
Copy link
Member

blegat commented Jan 17, 2020

Released as v1.2

@blegat blegat closed this as completed Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants