Hi,
I need to know how to handle the max and abs functions applied to
variables in an objectives or constraint. I don´t have the AMPL Book
and in the web it doesn´t appear, so I have not read anything about
it. There is someone who can help me. This is a big bottle neck of my
investigation.
minimize FO {k in i}: max (Y[k]+H[k]/2) ;
subject to traslape {k in i, p in i}:
max ( abs(X[k]-X[p]) - W[k]/2 - W[p]/2, abs(Y[k]-Y[p]) - H[k]/2 - H
[p]/2 ) >= 0;
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to
ampl@...
To unsubscribe from this group, send email to
ampl+unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/ampl?hl=en-~----------~----~----~----~------~----~------~--~---