>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 <[email protected]> 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
> [email protected]
> https://lists.gnu.org/mailman/listinfo/help-glpk
>
>
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to