hello dears

part of my code in GAMS is here:

set t /1,2,3,4,5/

s /a,b,c,d,e,f/;

set TS(s,t)

/c.(1,2,3)

b.4

/;

variable F(t),D(t),B(t);

equation e1(s);

e1(‘c’)… sum(t,F(TS))=e=0;

but in compilation time GAMS return following errors:

— Starting compilation

— whiteboard.gms(170) 3 Mb 3 Errors

*** Error 149 in F:\newGAMSdir\whiteboard.gms

Uncontrolled set entered as constant

*** Error 171 in F:\newGAMSdir\whiteboard.gms

Domain violation for set

*** Error 148 in F:\newGAMSdir\whiteboard.gms

Dimension different - The symbol is referenced with more/less

indices as declared

— whiteboard.gms(170) 3 Mb 3 Errors

*** Status: Compilation error(s)

anybody can help me how to fix these errors?

Thank you in advance!

\

Hi

Gams gives you an error message: “Uncontrolled set entered as constant” just after your first equation,

Gams tells you, that you entered an uncontrolled set in your expression (just skip the “as constant” part).

You use the set TS in your equation, but this set does not appear in the definition of the equation (e(T)), nor in the summing (over T), so Gams does not know what to do with TS:

Therefore this error message.

EIther sum over T (sum(T, F(T))) or when F should be defined over TS: sum(TS, F(TS)).

Renger

On Thu, Oct 20, 2011 at 4:13 PM, saman wrote:

hello dears

part of my code in GAMS is here:

set t /1,2,3,4,5/

s /a,b,c,d,e,f/;

set TS(s,t)

/c.(1,2,3)

b.4

/;

variable F(t),D(t),B(t);

equation e1(s);

e1(‘c’)… sum(t,F(TS))=e=0;

but in compilation time GAMS return following errors:

— Starting compilation

— whiteboard.gms(170) 3 Mb 3 Errors

*** Error 149 in F:\newGAMSdir\whiteboard.gms

Uncontrolled set entered as constant

*** Error 171 in F:\newGAMSdir\whiteboard.gms

Domain violation for set

*** Error 148 in F:\newGAMSdir\whiteboard.gms

Dimension different - The symbol is referenced with more/less

indices as declared

— whiteboard.gms(170) 3 Mb 3 Errors

*** Status: Compilation error(s)

anybody can help me how to fix these errors?

Thank you in advance!

## –

To post to this group, send email to gamsworld@googlegroups.com.

To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

\

Renger van Nieuwkoop

–

To post to this group, send email to gamsworld@googlegroups.com.

To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

tnx for fast responding

i fix that error with below code:

set t /1,2,3,4,5/

s /a,b,c,d,e,f/;

set TS(s,t)

/c.(1,2,3)

b.4

/;

variable F(t),D(t),B(t);

equation e1(s);

e1(‘c’)… sum(TS(‘c’,t),F(t))=e=0;

On Thu, Oct 20, 2011 at 6:24 PM, Renger van Nieuwkoop wrote:

Hi

Gams gives you an error message: “Uncontrolled set entered as constant” just after your first equation,

Gams tells you, that you entered an uncontrolled set in your expression (just skip the “as constant” part).

You use the set TS in your equation, but this set does not appear in the definition of the equation (e(T)), nor in the summing (over T), so Gams does not know what to do with TS:

Therefore this error message.

EIther sum over T (sum(T, F(T))) or when F should be defined over TS: sum(TS, F(TS)).

Renger

On Thu, Oct 20, 2011 at 4:13 PM, saman wrote:

hello dears

part of my code in GAMS is here:

set t /1,2,3,4,5/

s /a,b,c,d,e,f/;

set TS(s,t)

/c.(1,2,3)

b.4

/;

variable F(t),D(t),B(t);

equation e1(s);

e1(‘c’)… sum(t,F(TS))=e=0;

but in compilation time GAMS return following errors:

— Starting compilation

— whiteboard.gms(170) 3 Mb 3 Errors

*** Error 149 in F:\newGAMSdir\whiteboard.gms

Uncontrolled set entered as constant

*** Error 171 in F:\newGAMSdir\whiteboard.gms

Domain violation for set

*** Error 148 in F:\newGAMSdir\whiteboard.gms

Dimension different - The symbol is referenced with more/less

indices as declared

— whiteboard.gms(170) 3 Mb 3 Errors

*** Status: Compilation error(s)

anybody can help me how to fix these errors?

Thank you in advance!

## –

To post to this group, send email to gamsworld@googlegroups.com.

To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

\

Renger van Nieuwkoop

## –

To post to this group, send email to gamsworld@googlegroups.com.

To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

\

To post to this group, send email to gamsworld@googlegroups.com.

To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.