AMPL error, duplicate number for set -
In AMPL, I have a set, which should store some similar values. But I have a "duplicate number" error
Is there any way to do this? What is the easiest way to solve this problem?
is set:
set A;
Data: set A: = 1 1 2;
The element set in AMPL should be unique. To store counterfeit values, use the parameter instead:
set s; Ultimate A {S}; Information; Ultimate: S: A: = 1 1 2 1 3 2;
Comments
Post a Comment