[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Syntax error in data section and others
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] Syntax error in data section and others |
Date: |
Wed, 27 May 2009 23:07:31 +0300 |
> hello, i am a beginner, I have just written a glpk program. following
> code in Cplex is ok, can anybody tell me, what shuld i it's corrects in
> GLPK.
> param cost :=
> [*,*,r1]: zul1 zul2 :=
> Her1 30 20
> Her2 22 25 ;
> [*,*,r2]: zul1 zul2 :=
> Her1 39 30
> Her2 27 25 ;
param cost :=
[*,*,r1]: zul1 zul2 :=
Her1 30 20
Her2 22 25 /* there must be no semicolon */
[*,*,r2]: zul1 zul2 :=
Her1 39 30
Her2 27 25 ;
> another question, how can I correct this sentence? error by running:
> expression following := has invalid type.
>
> var rohTranMenge{r in Roh, i in Zulieferer, j in Hersteller, t in Periode},
> >=0;
> param sumOutZ{r in Roh, i in Zulieferer, t in Periode} := sum {j in
> Hersteller} rohTranMenge[r,i,j,t];
>
Expression, which specifies a value assigned to a parameter, cannot
contain variables.