Hi everyone!
I have a parameter T(i, mm) to be passed as an argument in my batinclude file and would like to know how do I reference it inside the batinclude file.
The main file looks like this:
Sets
i /12/
mm /12/
;
Paramenter
T(i, mm)
;
T(“1”, “1”) =100;
T(“1”, “2”)= 200;
T(“2”, “1”) = 300;
T(“2”, “2”) = 400;
$ batinclude data.gms T(i, mm);
My data.gms looks like this:
Parameter
C(i, mm)
;
C(i, mm) = %1**2
;
The %1 seems to be invalid,.
I keep getting error 145 (Set identifier or quoted element expected).
Tks
Bruno
\
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Hi Bruno
Why don’t you use a simple $include
$include data.gms
And change C(i, mm) = %1**2
To
C(i, mm) =t(I,mm)**2
Cheers
Renger
Von: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] Im Auftrag von Bruno Hannud
Gesendet: Samstag, 26. September 2015 02:24
An: gamsworld
Betreff: Batinclude with array. How to reference the argument
Hi everyone!
I have a parameter T(i, mm) to be passed as an argument in my batinclude file and would like to know how do I reference it inside the batinclude file.
The main file looks like this:
Sets
i /1*2/
mm /1*2/
;
Paramenter
T(i, mm)
;
T(“1”, “1”) =100;
T(“1”, “2”)= 200;
T(“2”, “1”) = 300;
T(“2”, “2”) = 400;
$ batinclude data.gms T(i, mm);
My data.gms looks like this:
Parameter
C(i, mm)
;
C(i, mm) = %1**2
;
The %1 seems to be invalid,.
I keep getting error 145 (Set identifier or quoted element expected).
Tks
Bruno
\
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
TKs Renger. This should work!
On Monday, September 28, 2015 at 3:52:34 AM UTC-3, Renger van Nieuwkoop wrote:
Hi Bruno
Why don’t you use a simple $include
$include data.gms
And change C(i, mm) = %1**2
To
C(i, mm) =t(I,mm)**2
Cheers
Renger
Von: gams...@googlegroups.com [mailto:gams...@googlegroups.com] Im Auftrag von Bruno Hannud
Gesendet: Samstag, 26. September 2015 02:24
An: gamsworld
Betreff: Batinclude with array. How to reference the argument
Hi everyone!
I have a parameter T(i, mm) to be passed as an argument in my batinclude file and would like to know how do I reference it inside the batinclude file.
The main file looks like this:
Sets
i /1*2/
mm /1*2/
;
Paramenter
T(i, mm)
;
T(“1”, “1”) =100;
T(“1”, “2”)= 200;
T(“2”, “1”) = 300;
T(“2”, “2”) = 400;
$ batinclude data.gms T(i, mm);
My data.gms looks like this:
Parameter
C(i, mm)
;
C(i, mm) = %1**2
;
The %1 seems to be invalid,.
I keep getting error 145 (Set identifier or quoted element expected).
Tks
Bruno
\
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.