help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Syntactic sugar for assigning values to parameters


From: Nilo Cesar Teixeira
Subject: Re: [Help-glpk] Syntactic sugar for assigning values to parameters
Date: Mon, 31 Oct 2011 23:06:02 -0200

OK, no big problem. Thanks.

2011/10/31 glpk xypron <address@hidden>
Hello Nilo,

> Suppose a parameter V is defined with a domain of 4 dimensions, but it
> will
> have the same value for every cell of the array.
You will have to specify all values separately. If all values are the
same it would be preferable to use a simple parameter.

The documentation is in file glpk-4.47/doc/gmpl.pdf
chapter 5.3. Parameter data block.

The file is included in the source distribution of GLPK available
at ftp://ftp.gnu.org/gnu/glpk/glpk-4.47.tar.gz.

Best regards

Xypron

-------- Original-Nachricht --------
> Datum: Mon, 31 Oct 2011 20:52:50 -0200
> Von: Nilo Cesar Teixeira <address@hidden>
> An: address@hidden
> Betreff: [Help-glpk] Syntactic sugar for assigning values to parameters

> Hi all,
>
> Suppose a parameter V is defined with a domain of 4 dimensions, but it
> will
> have the same value for every cell of the array.
>
> In other solvers, just V := 1; is possible in the data section.
>
> In glpk do I always have to specify indices ?
>
> Thank you.
>
> --
> *Nilo Cesar Teixeira*
> address@hidden
> (55) (11) 8571-5314

--
Follow me at http://twitter.com/#!/xypron

Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de



--
Nilo Cesar Teixeira
address@hidden
(55) (11) 8571-5314


reply via email to

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