Error 409 and 257 of GAMS

Hello.
The code I wrote is below. I have two errors, error 409 and 257. It is a utility maximization problem in GAMS, how can I solve it?

$title utility maximization

$onText

Maximize F = 10x1 + 25x2 + 14x3 subject to:

5x1 + 2x + 4x3= 300*

7x1 + 3x2 + 3x3= 500*

2x1+6x2+1x3= 200*

$offText

Variables

x1,x2,x3,F;

Positive Variables

x1,x2,x3;

Equations

Fobj,R1,R2,R3;

Fobj…F=E= 10x1 + 25X2 + 14 X3;

R1… 5x1 + 2x2 + 4*x3 =L= 300;

R2… 7x1 + 3x2 + 3*x3 =L= 500;

R3… 2x1 + 6x2+ 1*x3 =L= 200 ;

model

Exercise1 /Fobj,R1,R2,R3/;

solve

Exercise1 USING LP MAXIMIZING F;

Hi,

You need to use an asterisk (*) for multiplication, i.e. 10x1 becomes 10*x1 etc.

Fobj.. F =E= 10*x1 + 25*X2 + 14*X3;

R1.. 5*x1 + 2*x2 + 4*x3 =L= 300;

R2.. 7*x1 + 3*x2 + 3*x3 =L= 500;

R3.. 2*x1 + 6*x2+ 1*x3 =L= 200 ;
1 Like