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]
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]