Re: [R] Solve linear program without objective function

2009-12-04 Thread Soetaert, Karline
Andreas, I don't know what it is exactly that you want to do, but perhaps you can try using limSolve, which solves for the equations Ex>=F, Gx>=H. In the code below, lsei calculates the least squares solution (min sum(x^2)), xranges estimates the range of your variables, and xsample takes a r

Re: [R] Solve linear program without objective function

2009-12-04 Thread Hans W Borchers
Andreas Wittmann gmx.de> writes: > > Dear R-users, > > i try to solve to following linear programm in R > > 0 * x_1 + 2/3 * x_2 + 1/3 * x_3 + 1/3 * x_4 = 0.3 > x_1 + x_2 + x_3 + x_4 = 1 > x_1, x_2, x_3, x_4 > 0, > x_1, x_2, x_3, x_4 < 1 > > as you can see i have no objective function here bes