doubt writing the code

8 views
Skip to first unread message

María Vargas Magán

unread,
Mar 24, 2024, 9:03:25 AMMar 24
to AMPL Modeling Language
Hello. I would like to define the subset S contained in N:={1..n} and that S is not equal to N at the same time and I don´t know how to do it. I've thought define the restriction 
subject to not_equal_to_N:
     card(S) =! card(N);
so that S is not equal to N. 

Can you help me? Thanks !! :)

AMPL Google Group

unread,
Mar 25, 2024, 3:19:11 PMMar 25
to AMPL Modeling Language
Your question has been moved to our new user forum at discuss.ampl.com, and a response has been posted. To see the response, use this link:

https://discuss.ampl.com/t/ampl-25008-doubt-writing-the-code/1013/2

To reply, click the red "Reply" button that follows the response. (Do not send an email reply to this message.)


--
Robert Fourer

We're switching to a new, enhanced user forum.
Join it now at discuss.ampl.com.
{#HS:2549203036-123238#}
Reply all
Reply to author
Forward
0 new messages