PSORLab / EAGO.jl

A development environment for robust and global optimization
MIT License
140 stars 16 forks source link

Fix error in passing kwargs for subproblems. #93

Closed evrenmturan closed 2 years ago

evrenmturan commented 3 years ago

There are two small issues with passing kwargs to subproblems 1) llp1, etc. would not be recognised because it was only looking at the first 3 characters of the string. 2) the error message advice did not match the expected input input format per the if statements. Original code e.g.

if string_key[1:3] === "llp1" prob.kwargs_llp1[string_key[4:end]] = kwargs[key]

New code if stringkey[1:5] === "llp1" prob.kwargs_llp1[string_key[6:end]] = kwargs[key]

mewilhel commented 2 years ago

Thanks for the fix and sorry for the late reply. I'm merging this now.