r - Formulating Linear Programming Problem -



may quite basic question knows linear programming.
in of problems saw on lp has similar following format

max            3x+4y   subject     4x-5y = -34                3x-5y = 10      (and similar other constraints) 

so in other words, have same number of unknown in objective , constraint functions.

my problem have 1 unknown variable in objective function , 3 unknowns in constraint functions.
problem this

objective function:  min w1 subject to: w1 + 0.1676x + 0.1692y >= 0.1666  w1 - 0.1676x - 0.1692y >= -0.1666  w1 + 0.3039x + 0.3058y >= 0.3   w1 - 0.3039x - 0.3058y >= -0.3   x + y = 1 x >= 0 y >= 0 

as can seen, objective function has 1 unknown i.e. w1 , constraint functions have 3 (or lets 2) unknown i.e w1, x , y.
can please guide me how solve problem, using r or matlab linear programming toolbox.

your objective involves w1 can still view function of w1,x,y, coefficient of w1 1, , coeffs of x,y zero:

min w1*1 + x*0 + y*0 

once see can formulate in usual way "standard" lp.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -