Identical sets

27 views
Skip to first unread message

Gabriela G.

unread,
May 8, 2019, 7:57:07 PM5/8/19
to AIMMS - The Modeling System
I want to know if its possible to create a subset identical to the root set and then, inside a procedure delete certain elements of said subset.

Mohan

unread,
May 8, 2019, 8:29:17 PM5/8/19
to AIMMS - The Modeling System
Yes, you can.

The statement would be

Subset := Subset - {index | condition on index}

All the elements that meet the "condition on index" will be removed from the subset.

You can also use

Subset -= element_parameter;

or

Subset -= 'element';

-= is another way of writing Subset := Subset -

Reply all
Reply to author
Forward
0 new messages