## Uncontrolled set. please help!!

### Uncontrolled set. please help!!

Hello,

So i cannot figure out why the program is giving me the error 149 saying that i have an uncontrolled set entered as a constant. I get the same error even when i simply use the actual number instead of the variable.

I have this table of constants: COEFF(I,J)

J1 J2 J3 J4 J5

I1 158 381 158 255 430

I2 515 255 292 474 158

I3 447 447 200 200 200

and i want to divide each of those numbers by the constant R, then take the natural log (log) of that number.

SUM(I,((LOG((COEFF(I,J)/R)))/(2*pi*T))*Q(I))=l= RHSS(D);

FDE(D).. SUM(I,((LOG((COEFF(I,J)/R)))/(2*pi*T))*Q(I))=l= RHSS(D);

$149

Im so confused by this because T is another constant which is giving me absolutely no trouble. I have a feeling its because im trying to divide the table of coefficients by R but im not sure. I dont really have any programming knowledge so i imagine this is a syntax thing.

If anyone has any input on the matter, I would be most grateful.

Thank you

--

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 https://groups.google.com/group/gamsworld.

For more options, visit https://groups.google.com/d/optout.

### RE: Uncontrolled set. please help!!

Hi AB

In your equation you have the set j but it is neither referenced in the index of the equation, nor in the sum, so Gams has no clue on what to do with it. Gams is telling you exactly that: uncontrolled set

This would work (depending on what you intended);

- Redefine your equation to FDE(D,J)..

- Sum over i and j in the equation.

Cheers

Renger

From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of AB

Sent: Sunday, March 20, 2016 3:08 AM

To: gamsworld

Subject: Uncontrolled set. please help!!

Hello,

So i cannot figure out why the program is giving me the error 149 saying that i have an uncontrolled set entered as a constant. I get the same error even when i simply use the actual number instead of the variable.

I have this table of constants: COEFF(I,J)

J1 J2 J3 J4 J5

I1 158 381 158 255 430

I2 515 255 292 474 158

I3 447 447 200 200 200

and i want to divide each of those numbers by the constant R, then take the natural log (log) of that number.

SUM(I,((LOG((COEFF(I,J)/R)))/(2*pi*T))*Q(I))=l= RHSS(D);

FDE(D).. SUM(I,((LOG((COEFF(I,J)/R)))/(2*pi*T))*Q(I))=l= RHSS(D);

$149

Im so confused by this because T is another constant which is giving me absolutely no trouble. I have a feeling its because im trying to divide the table of coefficients by R but im not sure. I dont really have any programming knowledge so i imagine this is a syntax thing.

If anyone has any input on the matter, I would be most grateful.

Thank you

--

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 https://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 https://groups.google.com/group/gamsworld.

For more options, visit https://groups.google.com/d/optout.

### Re: Uncontrolled set. please help!!

Renger,

Thank you for replying! I did not realize that this had even been posted. I guess i missed the message that it has to be approved before it gets posted so I just disregarded that I had tried to post here. Anyways, thanks again for taking the time to reply and I apologize for the delay in response!!

AB

On Monday, March 21, 2016 at 12:50:37 AM UTC-7, Renger van Nieuwkoop wrote:

Hi AB

In your equation you have the set j but it is neither referenced in the index of the equation, nor in the sum, so Gams has no clue on what to do with it. Gams is telling you exactly that: uncontrolled set

This would work (depending on what you intended);

- Redefine your equation to FDE(D,J)..

- Sum over i and j in the equation.

Cheers

Renger

From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of AB

Sent: Sunday, March 20, 2016 3:08 AM

To: gamsworld

Subject: Uncontrolled set. please help!!

Hello,

So i cannot figure out why the program is giving me the error 149 saying that i have an uncontrolled set entered as a constant. I get the same error even when i simply use the actual number instead of the variable.

I have this table of constants: COEFF(I,J)

J1 J2 J3 J4 J5

I1 158 381 158 255 430

I2 515 255 292 474 158

I3 447 447 200 200 200

and i want to divide each of those numbers by the constant R, then take the natural log (log) of that number.

SUM(I,((LOG((COEFF(I,J)/R)))/(2*pi*T))*Q(I))=l= RHSS(D);

FDE(D).. SUM(I,((LOG((COEFF(I,J)/R)))/(2*pi*T))*Q(I))=l= RHSS(D);

$149

Im so confused by this because T is another constant which is giving me absolutely no trouble. I have a feeling its because im trying to divide the table of coefficients by R but im not sure. I dont really have any programming knowledge so i imagine this is a syntax thing.

If anyone has any input on the matter, I would be most grateful.

Thank you

--

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 https://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 https://groups.google.com/group/gamsworld.

For more options, visit https://groups.google.com/d/optout.