help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] maximum function


From: Mate Hegyhati
Subject: Re: [Help-glpk] maximum function
Date: Fri, 19 Jun 2015 21:40:58 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

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
address@hidden
https://lists.gnu.org/mailman/listinfo/help-glpk




reply via email to

[Prev in Thread] Current Thread [Next in Thread]