search for: linprog

Displaying 16 results from an estimated 16 matches for "linprog".

Did you mean: linpro
2008 Apr 23
2
HTML help solveLP(linprog) (PR#11250)
Dear R team! =20 I found in HTML help for function solveLP(linprog) a small mistake. It says in Description "Minimizes c'x, subject to A x >=3D b and x >=3D 0", but tests show that there should be A x <=3D b. =20 Best regards, =20 Ludek =20 =20 [[alternative HTML version deleted]]
2009 Oct 23
1
help using R's linprog for LP
Hi, I am using R in one of my courses. I am trying to use R's linprog package to solve to formulate 2-class classification problem as Linear programming problem. For my formulation, I need to set to "cvec" to all 0s. I know the points are linearly separable so an optimal solution "x" does exist, which satisfies all the constraints. But given the...
2008 Jun 17
1
error with solveLP(linprog) (PR#11721)
Full_Name: wfeng Version: 2.7 OS: windows xp Submission from: (NULL) (208.62.252.2) for solveLP(linprog), the program is specified as Minimizes c'x, subject to A x >= b and x >= 0. However, what I found is the actual constraints that works with the function are A x <= b and x >= 0.
2007 Mar 05
2
Linear programming with sparse matrix input format?
Hi. I am aware of three different R packages for linear programming: glpk, linprog, lpSolve. From what I can tell, if there are N variables and M constraints, all these solvers require the full NxM constraint matrix. Some linear solvers I know of (not in R) have a sparse matrix input format. Are there any linear solvers in R that have a sparse matrix input format? (includ...
2012 May 08
1
Translation of Linear minimization probelm from matlab to r
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 objective function vector (vector of 45,rows) A = Matrix for linear inequality constraints (3colums 45 rows matrix) b = Vector for linear inequality constraints (3 rows vector) Aeq = Matrix for linear equality constr...
2008 Oct 22
2
suboptimal lp solutions
Hi list, I want to find the total maximum resources I can spend given a set allocation proportion and some simple budget constraints. However, I get suboptimal results via lp and friends (i.e. lpSolve and simplex in the linprog and boot) . For example: library(lpSolve) proportions = c( 0.46, 0.28, 0.26) constraints = c( 352, 75, 171) lp(objective.in = proportions, const.mat = diag(c(1,1,1)), const.rhs=constraints, const.dir=rep('<=',3), direction='max' ) ## > Success: the objectiv...
2004 Jun 15
1
any linear programming routine in R
Dear all is there any linear programming routine available for R? if not, can you suggest any alternatives? not need to be very powerful, I get only a samll problem to resolve. many thanks yong
2006 May 05
1
A question about linear optimizaton
Dear all, I am trying to find a solution satisfying the below equations in R. Set up the problem 9 X1+ X2 + X3 = 2 X1+ X2 + X3 = 1 which is subjected to 0 < X1 < X2 < X3 < 2. I have downloaded the packages \'linprog\' and \'lpSolve\' but can not see how to solve the question. Thank you for your help. With Best, Cathy ========================================================== ?????q?????V???B50?W http://edm-prg.epaper.com.tw/click.php?ad_code=1196890 ========================...
2004 Sep 16
3
newbie needs help using R as solver
Greetings I'm a total newbie in R and I'm trying to make a comparisson of Excel and R in the fields of: - optimisation modeling (using solver) - decision trees - simulation modeling as described in Winston, Wayne L.: Practical Management Science. for optimisation modeling in Excel I would normaly use solver. In R however I can't seem to be able to find the solution. I've
2009 Jul 21
1
strange bug? with R CMD check
...escription: Overloads the stats::glm function so that a test for the existence of the maximum likelihood estimate is computed as part of the fitting procedure for binary regression models. License: GPL-2 Here is the contents of the NAMESPACE: export(glm) useDynLib(safeBinaryRegression, linprog, reducedLP) The strange thing is that if I change the length of the package name (for example safeBinaryRegression to safeBinaryRegress) the warning goes away and R CMD check completes successfully. Also, regardless of the package name, the package installs and runs as expected. I'm a...
2008 May 28
2
Linear Programming.
An embedded and charset-unspecified text was scrubbed... Name: n?o dispon?vel URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080528/96325940/attachment.pl>
2008 Jul 24
1
Coconut benchmark for R?
Hello All, Could anybody point me out any port of "Global Optimization Test Problems" OR "Constraint Satisfaction Test Problems" part of Coconut[%] benchmark or other such similar benchmarks for R. [%] Coconut benchmark: http://www.mat.univie.ac.at/users/neum/public_html/glopt/coconut/Benchmark/Benchmark.html Cheers! Isa [[alternative HTML version
2007 Dec 22
1
using solve.qp without a quadratic term
I was playing around with a simple example using solve.qp ( function is in the quadprog package ) and the code is below. ( I'm not even sure there if there is a reasonable solution because I made the problem up ). But, when I try to use solve.QP to solve it, I get the error that D in the quadratic function is not positive definite. This is because Dmat is zero because I don't have a
2014 Dec 17
2
optimización - resolver sistema - general
Hola a todos, Simplemente comentar que me tengo encontrado con muchos problemas de optimización. Mi recomendación general, en el caso multidimensional y si el tiempo de computación es importante, sería buscar un algoritmo diseñado para el tipo de problema (evitar los algoritmos más generales tipo optim si puede haber problemas de mínimos locales). Algunos casos que tengo resuelto con R
2007 Mar 26
1
Problem in loading all packages all at once
...quot;kzft","labdsv","labstatR","lars","lasso2","latentnet","lattice","latticeExtra","lazy","ldbounds","ldDesign","LDheatmap","leaps","lgtdl","limma","linprog","lme4","lmeSplines","LMGene","lmm","lmomco","Lmoments","lmtest","locfdr","locfit","lodplot","LogicReg","logistf","logspline","lokern","longitudinal&...
2010 Jul 18
6
CRAN (and crantastic) updates this week
...), isopam (0.9-8), kernlab (0.9-10), kmi (0.3-3), kml (1.1.2), ks (1.6.13), kza (1.03.1), languageR (1.0), lasso2 (1.2-11), latentnet (2.3-0), lattice (0.18-8), latticedl (1.1), latticeExtra (0.6-11), latticist (0.9-43), lda (1.2.1), ldDesign (1.2-0), lemma (1.3-1), lgtdl (1.1.1), limSolve (1.5.2), linprog (0.9-0), lme4 (0.999375-34), logging (0.4-42), logistf (1.10), longitudinalData (0.6.5), lordif (0.1-5), ltm (0.9-4), maanova (1.18.0), MAc (1.1), MAd (0.8), mapdata (2.1-3), maps (2.1-4), maptools (0.7-34), marelac (2.1), MASS (7.3-7), Matrix (0.999375-42), matrixStats (0.2.1), maxLik (0.7-2), mbm...