[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Proper syntax for the Uniform function in the data segme
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] Proper syntax for the Uniform function in the data segment |
Date: |
Wed, 09 Oct 2013 15:55:32 +0400 |
> 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
>
param c{i in I, j in J}, >= 0, := Uniform (1, 500);