How model this

32 views
Skip to first unread message

Gustavo Martínez

unread,
Jan 25, 2024, 10:23:48 PMJan 25
to AMPL Modeling Language
Hello, I working with this equation 

param: pol: area :=
1 4
2 4
s.t. em1{k in pol, l in pol: k !=l }: A[k,l]+B[k,l]<=0;
In this case the equations genered are like this 
A[1,2]+B[1,2]<=0;
A[2,1]+B[2,1]<=0;

In this case the second equation it´s no necessary, how I can write it and not generate the second equation? 
thank you
 

AMPL Google Group

unread,
Jan 26, 2024, 3:52:11 PMJan 26
to AMPL Modeling Language
Your question has been moved to our new user forum at discuss.ampl.com, and a reply has been posted. To see the reply, go here:

https://discuss.ampl.com/t/ampl-24969-how-model-this/920


--
Robert Fourer

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