help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Problem with parameter spec


From: Andrew Makhorin
Subject: Re: [Help-glpk] Problem with parameter spec
Date: Thu, 17 Feb 2005 16:46:21 +0300

>I am running GLP 4.8 on the two simple files that follow, and getting
> the following
>error:
>
>bash-2.05$ glpsol --model t.mod --data t.dat
>Reading model section from t.mod...
>13 lines were read
>Reading data section from t.dat...
>t.dat:3: s requires numeric data
>Context:                                set V := A B C ; param s := A
>Model processing error
>bash-2.05$
>
>I've read the manual a number of times, but I can't understand why this is
>happening.  Is there some reason that a parameter can't be a string?

You need to declare parameters s and d as symbolic, i.e.

param s symbolic in V;
param d symbolic in V;

since they are assigned non-numeric values. By default all parameters
are numeric.






reply via email to

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