help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] optimizing a set of values


From: Jeffrey Kantor
Subject: Re: [Help-glpk] optimizing a set of values
Date: Wed, 23 Jan 2013 08:20:59 -0500

From page 38 of the gmpl.pdf -- 

"As a rule the model description contains only one objective statement that
defi nes the objective function used in the problem instance. However, it is
allowed to declare arbitrary number of objectives, in which case the actual
objective function is the fi rst objective encountered in the model description.
Other objectives are also included in the problem instance, but they do not
aff ect the objective function"

This is consistent with the behavior you've observed. 



On Wed, Jan 23, 2013 at 3:54 AM, esma mehiaoui <address@hidden> wrote:
Hello everyone,
 
Could someone let me know if the optimization of a vector of value is possible with GLPK ?
In more details:
 
I have a set parameter:
X:=1..10;
And i would like to maximize the variable V[i] for all i belongs to X.
I defined the objective function as follow:
maximize fct{i in X}: V[i];
But it seems that the returned value for the objective function consider only V[1].
 
Is it possible to do this otherwise ?
 
Thank you
 
Esma

_______________________________________________
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]