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

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -