hi gams friends

i’m working with GAMS 24.3 and i have a problem on this code:

i had defined “obj” as an variable and declared the model and solve statement , as below:(these are just some parts of my code)

variable obj ;

equations

eq1

;

eq1…obj=e=sum((i,j,m),(tc(i,j)*x(i,j,m)));

model TEST /all/;

Solve TEST Using MIP Minimizing obj;

and i receive error 66 saying :

*** Error 66 in J:\gamsdir\Untitled_3.gms

The symbol shown has not been defined or assigned

A wild shot: You may have spurious commas in the explanatory

text of a declaration. Check symbol reference list.

*** Error 256 in J:\gamsdir\Untitled_3.gms

Error(s) in analyzing solve statement. More detail appears

Below the solve statement above

i would highly appreciate it if s.b can help.

best regards

–

datafinal.xls (1.16 MB)

Untitled_3.gms (1.08 KB)

Hi Atefe

I once again got another error message as you did, meaning that you are sending other stuff then you have in front of youâ€¦

66 equation eq9… symbol “np” has no values assigned

This one, you probably can find out yourselfâ€¦

Cheers

Renger

\

Modelworks

Gewerbestrasse 15

3600 Thun â€“ Switzerland

+41 79 818 53 73

Info@modelworks.ch

## blog.modelworks.ch

\

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 . i’m almost sure that i send the one i was working on it.

by the way …i thank u for your response. np was causing the problem . now it’s okay.

thank you very much.

On Thursday, August 7, 2014 4:58:34 PM UTC+4:30, atefe wrote:

hi gams friends

i’m working with GAMS 24.3 and i have a problem on this code:

i had defined “obj” as an variable and declared the model and solve statement , as below:(these are just some parts of my code)

variable obj ;

equations

eq1

;

eq1…obj=e=sum((i,j,m),(tc(i,j)*x(i,j,m)));

model TEST /all/;

Solve TEST Using MIP Minimizing obj;

and i receive error 66 saying :

*** Error 66 in J:\gamsdir\Untitled_3.gms

The symbol shown has not been defined or assigned

A wild shot: You may have spurious commas in the explanatory

text of a declaration. Check symbol reference list.

*** Error 256 in J:\gamsdir\Untitled_3.gms

Error(s) in analyzing solve statement. More detail appears

Below the solve statement above

i would highly appreciate it if s.b can help.

best regards

–

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.