[Top][All Lists]

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

Re: [Help-glpk] Newbee needs help with Error message

From: Noli Sicad
Subject: Re: [Help-glpk] Newbee needs help with Error message
Date: Wed, 16 Sep 2015 10:17:08 +1000

Hi Alexandros,

The right syntax is := not = for param.


param InitWrk := 15;

Then move the solve and display statements before data.



display total_cost;

display w;

display o;

display P;

display I;

display S;

display C;


set PROD := A B;



On 9/16/15, Alexandros Philippou <address@hidden> 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.

reply via email to

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