Hi Alexandros,

The right syntax is := not = for param.

e.g.

param InitWrk := 15;

Then move the solve and display statements before data.

e.g.

solve;

display total_cost;

display w;

display o;

display P;

display I;

display S;

display C;

data;

set PROD := A B;

~~~~~~~~~~~~~

Noli


On 9/16/15, Alexandros Philippou <[email protected]> wrote:
> Hi!
>
> The included file is parsed by AMPL (and NEOS server) without a glitch
> and is actually solved.
>
> However, glpsol returns the following error message which I do not
> comprehend:
>
>
> GLPSOL: GLPK LP/MIP Solver, v4.52
> Parameter(s) specified in the command line:
>   --model AggrPlan.neos
> Reading model section from AggrPlan.neos...
> Reading data section from AggrPlan.neos...
> AggrPlan.neos:123: syntax error in parameter data block
> Context: ...itOut := A 0 B 0 ; param FinOut := A 0 B 0 ; param InitWrk =
> MathProg model processing error
>
>
>
> What am I doing wrong here?
>
> I would appreciate any help in bypassing the trouble. I have spend hours
> in trying to find an error by I can't.
> Google searches do not seem to provide me with any useful answer.
>
> Thank you in advance,
>
> A. Ph.
>
>

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

Reply via email to