I tried the following example from the Matlab AMPL API documentation website
ampl.eval(‘set A;’);
s = ampl.getSet(‘A’).get();
s.setValues({4.2, ‘4.2’, ‘a’, ‘b’});
s.asSet
It gives the following error:
No method ‘setValues’ with matching signature found for class ‘com.ampl.SetInstance’.
Also what if the new defined set has different size?
Thanks for the help.