[R] Upper an lower bound in linear programing

2012-05-24 Thread Haio
Hello everyone! I´m trying to solve a linear optimization problem with r using the LPsolve function and i want to set upper and lower bounds for the obejctive function. Any idea´s on how to do this?? -- View this message in context: http://r.789695.n4.nabble.com/Upper-an-lower-bound-in-linear-p

[R] Translation of Linear minimization probelm from matlab to r

2012-05-08 Thread Haio
Hi everyone, i´m a new user of R and i´m trying to translate an linear optimization problem from Matlab into r. The matlab code is as follow: options = optimset('Diagnostics','on'); [x fval exitflag] = linprog(f,A,b,Aeq,beq,lb,ub,[],options); exitflag fval x=round(x); Where: f = Linear obj

[R] Translation of matlab vectors code into r

2012-05-06 Thread Haio
Hi there I am new user of r, i would need some help to translate som code for vectors in matlab to r. I have managed to translate the first 7 rows, but not the rest. Could anyone give me any suggestions for this problem?? Matlab code: tempo=[]; temps=[]; tempn=[]; tempao=[]; tempas=[]; tempan=[