On 2024/1/30 20:00, Martin Becker wrote:
Apart from the fact that the statement "such that t1+t2+t3+t4=2970 (as
it must)" is not correct, the LP can be implemented as follows:
I was confused by "such that t1+t2+t3+t4=2970 (as it must)", otherwise,
I also get the same solution.
Apart from the fact that the statement "such that t1+t2+t3+t4=2970 (as
it must)" is not correct, the LP can be implemented as follows:
library(lpSolve)
LHS <- rbind(
c(0,0,0,0, 1, 0, 0,0),
c(1,0,0,0,-1, 1, 0,0),
c(0,1,0,0, 0,-1, 1,0),
c(0,0,1,0, 0, 0,-1,1),
cbind(-diag(4),diag(4)),
Question for 'experts' in LP using R (using the lpSolve package, say) --
which does not apply to me for the sort of problem I describe below.
I've run any number of LP's using lpSolve in R, but all of them to date
have objective and constraint functions that both contain the same
variables.
I have this problem with this form:
min (A*X) under some constraints.
the unknown is X that is a Matrix. I can't use the function linp because
in it X is a vector..
How can I do??? Can you help me
[[alternative HTML version deleted]]
__
On 03/17/2014 07:57 AM, Barbara Rogo wrote:
I have this problem with this form:
min (A*X) under some constraints.
the unknown is X that is a Matrix. I can't use the function linp because
in it X is a vector..
How can I do??? Can you help me
If X is a matrix, then A*X could be a matrix or
Thank you very much for this! This also solves my original problem. I can't
remember at what point I assumed the bounds would be written that way. It
was a costly error.
Regarding the potential bug, I'm going to report it. R shut down completely
every time I ran the program, but didn't when I
In my post at https://stat.ethz.ch/pipermail/r-help/2011-October/292019.html I
included an undefined term ej. The problem code should be as follows. It
seems like a simple linear programming problem, but for some reason my code is
not finding the solution.
obj - c(rep(0,3),1)
col1
Liu Evans, Gareth Gareth.Liu-Evans at liverpool.ac.uk writes:
In my post at https://stat.ethz.ch/pipermail/r-help/2011-October/292019.html
I included an undefined term ej. The problem code should be as follows.
It seems like a simple linear programming problem, but for some reason my
code is
Dear All,
RGLPK says that there is no feasible solution but I think there should be. In
a more general setup with more variables, where we know the feasible solution
analytically, it also says there is no feasible solution. I have tried
different values. except the 0s and 1s must stay as
Hi Marcus!
On Wednesday 28 May 2008 05:56, Marcus Vinicius wrote:
Dear all,
May anyone explain to me how I run a linear programming or Data
Envelopment Analysis (DEA models) into R?
Package DEA (on CRAN):
http://cran.r-project.org/web/packages/DEA/index.html
Package FEAR (NOT on CRAN):
Dear all,
May anyone explain to me how I run a linear programming or Data Envelopment
Analysis (DEA models) into R?
Thanks a lot.
Best Regards.
Marcus Vinicius
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
11 matches
Mail list logo