Hi;

I am very inexperienced and unable to find what i am looking for probably because i even don’t know how to look for it. Anyway i am trying to solve a maximization problem where the variables are x1,x2 and x3 and they need to have a certain ratio. I mean they shoul be like this: 3:2:5. I have no idea about what to d so first i tried this: 10*x1=e=15*x2=e=6*x3 and it stated an error. then i tried making two equations out of this one like this

kisit1… x1/x2=e=1.5

kisit2… x1/x3=e=0.6

then i get the error 55 saying

**** The following LP errors were detected in model cemre:

**** 55 equation kisit6… VAR operands for /

**** 55 equation kisit7… VAR operands for /

My question is how do i write the code? P.S. it has to be done using LP.

here is my whole document

Variables

x1

x2

x3

z;

Positive variables x1, x2, x3;

Equations

amac

kisit1

kisit2

kisit3

kisit4

kisit5

kisit6

kisit7;

amac… z=e=30*x1+20*x2+0*x3;
kisit1… 2*x1+3

*x2+5*x3=l=4000;

kisit2… 4

*x1+2*x2+7*x3=l=6000;

kisit3… x1=g=200;

kisit4… x2=g=200;

kisit5… x3=g=150;

kisit6… x1/x2=e=1.5;

kisit7… x1/x2=e=0.6;

model cemre /all/;

solve cemre using LP maximizing z;

## PLEASE HELP

\

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.