Lindo, Linear Programming. really urgent! Please help!

rooster

New member
Joined
May 17, 2010
Messages
2
I would be greatful if someone could give me some guidance. Am stuck on quite a few things, main one being:
a car company needs its average fuel economy for its fleet to be at least 27mpg, the fuel economies are A=40, B=34, C=15, D=12, E=20 and F=25.
So if it were not in Lindo I would write it as (40A + 34B + 15C + 12D +20E + 25F) / (A+B+C+D+E+F) >= 27.
But in Lindo you cannot do this as you cannot divide/use fractions. Can someone please help?

Any advice is appreciated!
 
Of course you can use fractions in LINGO.

You could rewrite it as \(\displaystyle (40A + 34B + 15C + 12D +20E + 25F) \geq 27(A+B+C+D+E+F)\)

Is there more to the problem?.
 
i thought you could only have constants on the right hand side of the '>" symbol?
 
Oh, I'm sorry, I misunderstood.
You may be right.

Try bringing everything over to the left and set equal to 0.



This gives: \(\displaystyle 13A+7B-12C-15D-7E-2F\geq 0\)

Throw some constraints in and we may have us a system to solve using LINGO.
 
Top