vOptSolver / vOptGeneric.jl

Solver of multiobjective linear optimization problems (MOMIP, MOLP, MOIP, MOCO): generic part
https://voptsolver.github.io/vOptSolver/
MIT License
22 stars 8 forks source link

key not found error #8

Closed saesf closed 5 years ago

saesf commented 5 years ago

when i try to parse attached mop file using parseMOP m = parseMOP("final.mop" , solver=GurobiSolver() )

i get following error:

ERROR: KeyError: key "flo@118f\r" not found Stacktrace: [1] getindex at .\dict.jl:474 [inlined] [2] (::vOptGeneric.##4#5{JuMP.Model})(::IOStream) at C:\Users\sajad esfandiari\.julia\v0.6\vOptGeneric\src\MOP.jl:316 [3] open(::vOptGeneric.##4#5{JuMP.Model}, ::String) at .\iostream.jl:152 [4] #parseMOP#3 at C:\Users\sajad esfandiari\.julia\v0.6\vOptGeneric\src\MOP.jl:185 [inlined] [5] (::vOptGeneric.#kw##parseMOP)(::Array{Any,1}, ::vOptGeneric.#parseMOP, ::String) at .\<missing>:0

can anyone help me to find the cause of this problem? final.mop.txt

xgandibleux commented 5 years ago

The current version of vOptGeneric is working with julia 1.x and JuMP 0.18. Are you in this configuration?

gsoleilhac commented 5 years ago

How did you generate the mop file ? The "\r" at the end of the variable name suggest it's an encoding issue but I couldn't reproduce it with your file.

As @xgandibleux suggested, you should update to the last julia release 1.1.x ; the last vOptGeneric version is not compatible with julia 0.6

saesf commented 5 years ago

i updated Julia and now every things seems to work without any problem. thanks for your help @xgandibleux and @gsoleilhac