param types; param classSize;
ampl.getParameter('type').set(3)
ampl.getParameter('classSize').set(6) However with my 2d parameter: param learn{i in 1..classSize, k in 1..types}; I have 6 x 3 array of values (shown in attached screenshot). When I try to assign the values with: ampl.getParameter('learn').set(arr) I get the error: TypeError: Wrong number or type of arguments for overloaded function 'Parameter_set'.
Possible C/C++ prototypes are: ampl::Parameter::set(ampl::Variant) ampl::Parameter::set(double) ampl::Parameter::set(char const *)
ampl::Parameter::set(ampl::Tuple,ampl::Variant) When i use setValues or set_values I get an error with no message. How do I assign the 2d paramter values using an array? Thanks for the help. SIncerely,
Eric Geerts