Closed jeremyomer closed 5 years ago
Hey @jeremyomer, sorry for noticing this so late. This is fixed now. I added a v0.0.2 release that you can checkout, that will work on Julia v0.6. The master branch is only compatible with v1.0 going forward. I can not promise that the v0.6 versions will be maintained, so consider upgrading to 1.0 as well.
Hello Martin,
Thank you for your revision. I will check it as soon as I go back to my L-Shaped code.
Regards,
Jeremy
Le 23 oct. 2018 à 11:11, Martin Biel notifications@github.com a écrit :
Hey @jeremyomer https://github.com/jeremyomer, sorry for noticing this so late. This is fixed now. I added a v0.0.2 release that you can checkout, that will work on Julia v0.6. The master branch is only compatible with v1.0 going forward. I can not promise that the v0.6 versions will be maintained, so consider upgrading to 1.0 as well.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/martinbiel/StochasticPrograms.jl/issues/1#issuecomment-432164479, or mute the thread https://github.com/notifications/unsubscribe-auth/AEcfX6DQ6-ujeEzX-0qhp8ZbwSBz_4y3ks5unt05gaJpZM4WceIH.
Hello,
Thank you for your contribution. I would like it very much if I could use it in a Julia Lab for students in OR.
While designing my lab, I bumped into a weird "ERROR: LoadError: UndefRefError: access to undefined reference" that is thrown when executing the solve command on a stochastic program. My concern is that this issue appears on my example with 80+ scenarios, but it does not with 70 and less scenarios. What is more, the print command works with any number of scenarios. Finally, I checked by directly modeling the DEP with JuMP and the solution is indeed correct for 70 and less scenarios.
I attach the two Julia files that are necessary to reproduce the error (had to change the extension to .txt to upload them), and I copy/paste the complete text of the error I get below : ERROR: LoadError: UndefRefError: access to undefined reference Stacktrace: [1] DEP(::JuMP.Model, ::Clp.ClpMathProgSolverInterface.ClpSolver) at /Users/jeremy/.julia/v0.6/StochasticPrograms/src/methods/spconstructs.jl:129 [2] #_solve#44(::Bool, ::JuMP.UnsetSolver, ::Array{Any,1}, ::Function, ::JuMP.Model) at /Users/jeremy/.julia/v0.6/StochasticPrograms/src/types/twostage.jl:74 [3] (::StochasticPrograms.#kw##_solve)(::Array{Any,1}, ::StochasticPrograms.#_solve, ::JuMP.Model) at ./:0
[4] #solve#116(::Bool, ::Bool, ::Bool, ::Array{Any,1}, ::Function, ::JuMP.Model) at /Users/jeremy/.julia/v0.6/JuMP/src/solvers.jl:151
[5] solve(::JuMP.Model) at /Users/jeremy/.julia/v0.6/JuMP/src/solvers.jl:150
[6] include_string(::String, ::String) at ./loading.jl:522
[7] include_string(::String, ::String, ::Int64) at /Users/jeremy/.julia/v0.6/CodeTools/src/eval.jl:30
[8] include_string(::Module, ::String, ::String, ::Int64, ::Vararg{Int64,N} where N) at /Users/jeremy/.julia/v0.6/CodeTools/src/eval.jl:34
[9] (::Atom.##92#97{String,Int64,String})() at /Users/jeremy/.julia/v0.6/Atom/src/eval.jl:52
[10] withpath(::Atom.##92#97{String,Int64,String}, ::String) at /Users/jeremy/.julia/v0.6/CodeTools/src/utils.jl:30
[11] withpath(::Function, ::String) at /Users/jeremy/.julia/v0.6/Atom/src/eval.jl:38
[12] hideprompt(::Atom.##91#96{String,Int64,String}) at /Users/jeremy/.julia/v0.6/Atom/src/repl.jl:67
[13] macro expansion at /Users/jeremy/.julia/v0.6/Atom/src/eval.jl:49 [inlined]
[14] (::Atom.##90#95{Dict{String,Any}})() at ./task.jl:80
while loading /Users/jeremy/Dropbox/Cours/5GM_OptimisationStochastique/TP/Implementation avec CPLEX/TestStochasticPrograms.jl, in expression starting on line 54
Thanks for your help !
Jeremy
generedonnees.txt TestStochasticPrograms.txt