[R] Linear Programming

Jason Turner jasont at indigoindustrial.co.nz
Tue May 4 08:34:32 CEST 2004


> Hi,
>
> Can someone tell me how to use R to solve a simple LP problem like this?
> Thanks!
>
> Maximize 5X1 + 3X2
> Subject to:
> 2X1 + X2 <=40
> X1 + 2X2 <=50
> Where
> X1 >= 0
> X2 >=0

help(I.will.do.my.own.homework) is the function you're looking for.

Cheers

Jason




More information about the R-help mailing list