>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.




_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to