help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] WIN GLPK 4.57: error of solving a simple and small linea


From: Heinrich Schuchardt
Subject: Re: [Help-glpk] WIN GLPK 4.57: error of solving a simple and small linear programming model from command line on win 7
Date: Fri, 18 Dec 2015 11:32:35 +0100

Dont use -m when reading mps file.

Best regards

Heinrich Schuchardt

http://www.xypron.de

Am 18.12.15 um 01:34 schrieb usa usa

> Hi,
> 
> 
> 
> I am trying to solve a linear programming model by GLPK 4.57 downloaded
> 
> from
> 
> 
> 
> http://sourceforge.net/projects/winglpk/
> 
> 
> 
> In the examples\ folder, I tried to use GLPK to solve the plan.mps model on
> 
> win 7.
> 
> 
> 
> In MS DOS command line, I used:
> 
> 
> 
> *glpsol.exe --mps -m C:\MyPath\plan.mps *
> 
> 
> 
> I got error:
> 
> 
> 
> *      colon missing where expected*
> 
>       *context : NAME PLAN*
> 
>       *MathProg model processing error*
> 
> 
> 
> Any help would be appreciated.
> 
> 
> 
> This is the mps format model:
> 
> 
> 
> NAME          PLAN
> 
> ROWS
> 
>  N  VALUE
> 
>  E  YIELD
> 
>  L  FE
> 
>  L  CU
> 
>  L  MN
> 
>  L  MG
> 
>  G  AL
> 
>  L  SI
> 
> COLUMNS
> 
>     BIN1      VALUE           .03000   YIELD          1.00000
> 
>               FE              .15000   CU              .03000
> 
>               MN              .02000   MG              .02000
> 
>               AL              .70000   SI              .02000
> 
>     BIN2      VALUE           .08000   YIELD          1.00000
> 
>               FE              .04000   CU              .05000
> 
>               MN              .04000   MG              .03000
> 
>               AL              .75000   SI              .06000
> 
>     BIN3      VALUE           .17000   YIELD          1.00000
> 
>               FE              .02000   CU              .08000
> 
>               MN              .01000   AL              .80000
> 
>               SI              .08000
> 
>     BIN4      VALUE           .12000   YIELD          1.00000
> 
>               FE              .04000   CU              .02000
> 
>               MN              .02000   AL              .75000
> 
>               SI              .12000
> 
>     BIN5      VALUE           .15000   YIELD          1.00000
> 
>               FE              .02000   CU              .06000
> 
>               MN              .02000   MG              .01000
> 
>               AL              .80000   SI              .02000
> 
>     ALUM      VALUE           .21000   YIELD          1.00000
> 
>               FE              .01000   CU              .01000
> 
>               AL              .97000   SI              .01000
> 
>     SILICON   VALUE           .38000   YIELD          1.00000
> 
>               FE              .03000   SI              .97000
> 
> RHS
> 
>     RHS1      YIELD       2000.00000   FE            60.00000
> 
>               CU           100.00000   MN            40.00000
> 
>               SI           300.00000
> 
>               MG            30.00000   AL          1500.00000
> 
> RANGES
> 
>     RNG1      SI            50.00000
> 
> BOUNDS
> 
>  UP BND1      BIN1         200.00000
> 
>  UP           BIN2        2500.00000
> 
>  LO           BIN3         400.00000
> 
>  UP           BIN3         800.00000
> 
>  LO           BIN4         100.00000
> 
>  UP           BIN4         700.00000
> 
>  UP           BIN5        1500.00000
> 
> ENDATA
> 
> _______________________________________________
> 
> Help-glpk mailing list
> 
> address@hidden
> 
> https://lists.gnu.org/mailman/listinfo/help-glpk



reply via email to

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