help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] Proper syntax for the Uniform function in the data segment


From: Marc Goetschalckx
Subject: [Help-glpk] Proper syntax for the Uniform function in the data segment
Date: Tue, 08 Oct 2013 16:04:42 -0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0

I am trying to use the Uniform function to set the value of a two-dimensional array in the data segment of a model. Parameter array is defined as follows (and works correctly when used with explicit value initialization) in the model section

param c{i in I, j in J}, >= 0;

The following statement gives a syntax error

param c : Uniform (1, 500);

I could not find an example of using the Uniform function with a parameter matrix in the GMPL manual.
What is the proper syntax

--
Marc Goetschalckx




reply via email to

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