« Return to Thread: [AMPL 2627] obtaining minimum between two variables

[AMPL 2627] obtaining minimum between two variables

by plozmar :: Rate this Message:

Reply to Author | View in Thread


Hi,

I need to obtain the minimum between two variables. The idea is the
following:

--------------
set NODES;

var X {NODES};
var Y {NODES};
var Z {NODES};

minimize:

sum {n in NODES} Z[n];

s.t.
s.t.
....

subject to minimum {n in NODES}:

Z[n]  = min { X[n], Y[n] };

---------------------------------------------
I'm working with cplex and all the constraints must be linear and the
variables X and Y contains a cost, with different elements I have
calculated too with the other constraints...

Can I make it with CPLEX?

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
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: [AMPL 2627] obtaining minimum between two variables