IainNZ / JuMPeR.jl

Julia for Mathematical Programming - extension for Robust Optimization
http://iainnz.github.io/JuMPeR.jl
Other
51 stars 21 forks source link

Re-Solving robust models #38

Closed dfagnan closed 10 years ago

dfagnan commented 10 years ago

I seem to get errors simply trying to resolve some of the RobustModel testing examples. Literally just calling solve twice?

For example - at least the first 2 tests (Reformulation/Cutting) in ellipse.jl

julia> include("ellipse.jl") ###With solve line copied twice. WARNING: @test_throws without an exception type is deprecated Use @test_throws ErrorException build_ellipse_constraint(vec,0.0) in anonymous at no file:35 Test1 false ERROR: Inconsistent argument dimensions. in _chklen at C:\Users\dfagnan.julia\Gurobi\src\grb_common.jl:30 in loadproblem! at C:\Users\dfagnan.julia\Gurobi\src\GurobiSolverInterface.jl: 34 while loading C:\Users\dfagnan\Dropbox\MIT\Research A.Lo\Robust Pension\ellipse. jl, in expression starting on line 124

IainNZ commented 10 years ago

Resolving robust models isn't supported yet, unfortunately. Its totally doable, I just haven't tested it. Basically the original model gets modified partially because I don't clean copy everything.

dfagnan commented 10 years ago

Hmm, is it easy to implement a Reset option? That might allow for modifications and resolving, even if it doesn't support warm start?

IainNZ commented 10 years ago

wrap it in a function-in-a-function? When it works, it'll work like JuMP, without the warm start

IainNZ commented 10 years ago

Fixed