Hi!

Sorry, if I misunderstood something but:
if X is a variable, Xmax can not be a parameter.

If it is just a typo, You can simply do this if the Xmax variables have a positive coefficient in the objective (considering minimization).

var Xmax{i in A, j in B};

s.t. MaxXmax{i in A, j in B, t in H} Xmax[i,j] >= X[i,j,t];

Regards,

Mate


On 06/19/2015 09:29 PM, Haroune ZAGHDAOUI wrote:
Hello everyone!

I need your help please. Is it possible to get the maximum of a variable
only in one of her dimension?
For example : I have the variable X[i,j,t] and I want to define
something like that (after the optimisation) :

param Xmax {i in A, j in B} := max {X[i,j,t]}.

The problem is I don't know how and where to define "t in H"?

Thank you so much for your help :-)

Haroune



_______________________________________________
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


_______________________________________________
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to