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 besides that i use the
following code.
library(lpSolve)
Andreas Wittmann andreas_wittmann at 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
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
3 matches
Mail list logo