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

Untested behavior if max nb of iterations reached in colgen #162

Closed
guimarqu opened this issue Aug 9, 2019 · 2 comments · Fixed by #193
Closed

Untested behavior if max nb of iterations reached in colgen #162

guimarqu opened this issue Aug 9, 2019 · 2 comments · Fixed by #193
Labels
bug Something isn't working
Milestone

Comments

@guimarqu
Copy link
Contributor

guimarqu commented Aug 9, 2019

Solving the play gap instance with the simple branch and price strategy with nb_max_it = 10 in colgen algorithm yields an error.

@guimarqu guimarqu added the bug Something isn't working label Aug 9, 2019
@guimarqu
Copy link
Contributor Author

guimarqu commented Aug 9, 2019

In master :

replace colgen.jl:338 by if nb_cg_iterations > 10 ##TDalg_data.max_nb_cg_iterations

Max number of iterations reached in root node.
Error in node 4 :

<it=1> <et=12> <mst=0.000> <sp=0.000> <cols=1> <mlp=5073.7500> <DB=100.5000> <PB=76.0000>
play gap: Error During Test at /Users/gmarqu100p/.julia11/dev/Coluna/test/full_instances_tests.jl:7
  Got exception outside of a @test
  KeyError: key MathOptInterface.VariableIndex(-1) not found
  Stacktrace:
   [1] getindex at ./dict.jl:478 [inlined]
   [2] get_column at /Users/gmarqu100p/.julia11/packages/LinQuadOptInterface/HHper/src/variables.jl:10 [inlined]
   [3] modify(::GLPK.Optimizer, ::MathOptInterface.ObjectiveFunction{MathOptInterface.ScalarAffineFunction{Float64}}, ::MathOptInterface.ScalarCoefficientChange{Float64}) at /Users/gmarqu100p/.julia11/packages/LinQuadOptInterface/HHper/src/objective.jl:188
   [4] update_cost_in_optimizer!(::Coluna.MoiOptimizer, ::Coluna.Variable) at /Users/gmarqu100p/.julia11/dev/Coluna/src/MOIinterface.jl:56
   [5] sync_solver!(::Coluna.MoiOptimizer, ::Coluna.Formulation{Coluna.DwMaster}) at /Users/gmarqu100p/.julia11/dev/Coluna/src/optimizerwrappers.jl:96

@guimarqu
Copy link
Contributor Author

guimarqu commented Aug 9, 2019

There is also a "subissue" :

<it=10> <et=9> <mst=0.000> <sp=0.000> <cols=2> <mlp=72.6667> <DB=67.5000> <PB=89.0000>
<it=11> <et=9> <mst=0.000> <sp=0.000> <cols=1> <mlp=72.6667> <DB=69.0000> <PB=89.0000>
┌ Warning: Maximum number of column generation iteration is reached.

We should stop at iteration 10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant