|
From: | Jorge Paván |
Subject: | [Help-glpk] MATHPROG VS. AMPL |
Date: | Sun, 15 May 2005 21:24:38 -0300 |
I attached a few lines of a
example model in MathProg where it
produce a "Parse error". The same work fine in AMPL. It seems that in AMPL it is possible to define a var based on another one but not in MathProg. ¿Could someone help me please? Thanks in advance. set A ;
set B ; param p {A} >= 0 ; var V1 {B} integer >=0 ; # The following is ok var V2 {b in B} = sum {a in A} p[a] * 3 ; # The following line produce "Parse error": _expression_ following = has invalid type. # Context: 3 ; var V3 { b in B } = sum { a in A } p [ a ] * V1 [ b ] ; var V3 {b in B} = sum {a in A} p[a] * V1[b] ; |
[Prev in Thread] | Current Thread | [Next in Thread] |