-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Update to JuMP and MOI v1 #291
base: master
Are you sure you want to change the base?
Conversation
Thanks a lot for your work. Appreciate it 😊 |
I'm giving a tutorial next Wednesday and I'd like to show that one can swap MiniZinc with CBLS or ConstraintSolver so I'll first update with this PR and then transition to the MOI sets for the sets that I need (e.g., |
I'm now getting Simple: Error During Test at /home/blegat/.julia/dev/ConstraintSolver/test/constraints/element1Dconst.jl:2
Got exception outside of a @test
BoundsError: attempt to access 25-element Vector{Int64} at index [28]
Stacktrace:
[1] getindex
@ ./essentials.jl:13 [inlined]
[2] prune_constraint!(com::ConstraintSolver.ConstraintSolverModel{Float64}, constraint::ConstraintSolver.Element1DConstConstraint, fct::MathOptInterface.VectorOfVariables, set::ConstraintSolver.Element1DConstInner; logs::Bool)
@ ConstraintSolver ~/.julia/dev/ConstraintSolver/src/constraints/element1Dconst.jl:153
[3] prune!(com::ConstraintSolver.ConstraintSolverModel{Float64}; pre_backtrack::Bool, all::Bool, only_once::Bool, initial_check::Bool)
@ ConstraintSolver ~/.julia/dev/ConstraintSolver/src/pruning.jl:95
[4] prune!
@ ~/.julia/dev/ConstraintSolver/src/pruning.jl:53 [inlined]
[5] backtrack!(com::ConstraintSolver.ConstraintSolverModel{Float64}, max_bt_steps::Int64; sorting::Bool, log_table::Bool, first_parent_idx::Int64, single_path::Bool, compute_bounds::Bool, check_bounds::Bool, cb_finished_pruning::ConstraintSolver.var"#159#161")
@ ConstraintSolver ~/.julia/dev/ConstraintSolver/src/ConstraintSolver.jl:602
[6] backtrack!
@ ~/.julia/dev/ConstraintSolver/src/ConstraintSolver.jl:509 [inlined]
[7] solve_with_backtrack!(com::ConstraintSolver.ConstraintSolverModel{Float64}, max_bt_steps::Int64; sorting::Bool)
@ ConstraintSolver ~/.julia/dev/ConstraintSolver/src/ConstraintSolver.jl:480 Not sure how to fix it 🤔 |
In general I'm happy to release a new version before that. Not sure about the error though. Don't have much time this weekend but will check. I guess the one test case you removed is currently a limitation though. |
Ah just saw that a new JuMP version with the fix was already released. |
When it's a bug fix, we prefer to release it quickly. Quite convenient to open an issue late yesterday and to have the bug fixed and released overnight, thanks @odow ! |
@blegat I'm currently running into the problem that JuMP defines
Does this make it impossible to use |
I also have it locally but it doesn't prevent the tests from passing |
Closes #289