doubt writing the code

8 προβολές
Παράβλεψη και μετάβαση στο πρώτο μη αναγνωσμένο μήνυμα

María Vargas Magán

μη αναγνωσμένη,
24 Μαρ 2024, 9:03:25 π.μ.24 Μαρ
ως 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

μη αναγνωσμένη,
25 Μαρ 2024, 3:19:11 μ.μ.25 Μαρ
ως 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#}
Απάντηση σε όλους
Απάντηση στον συντάκτη
Προώθηση
0 νέα μηνύματα