Displaying 20 results from an estimated 20000 matches similar to: "About lp.assign in lpSolve package"
2013 Apr 23
0
lp.transport in package lpSolve
Dear all,
I'm working on a very complex linear optimization problem using the
lp.transport function in lpSolve. My PC has 10 cores, but by default R uses
only one of them.
Is there a straightforward way to make lp.transport use all cores
available? I had a look at "High-performance and parallel computing in R" (
http://cran.r-project.org/web/views/HighPerformanceComputing.html),
2009 Jun 17
0
lpSolve lp const.dir
Hi. In the help page for "lp" in package lpSolve, regarding
"const.dir" it says:
const.dir: Vector of character strings giving the direction of the
constraint: each value should be one of "<," "<=," "=," "==," ">," or
">=". (In each pair the two values are identical.)
I am having trouble understanding
2009 Sep 17
0
lpSolve constraints don't seem to have an effect
Dear R users,
I would like to optimize a linear approximation of a quadratic function
using lpSolve. My code runs without any error or warning message but the
constraints that I set don't seem to work properly.
Nevertheless, I am certain that my code is somewhere wrong.
I would like to solve the following problem:
max 2x-x^2+y
subject to
2x^2 + 3y^2 <= 6
2>= x,y >= 0
I would
2009 Jul 02
1
lpSolve: how to allow variables to become negative
Dear all,
I am interested in solving a MIP problem with binary outcomes and
continuous variables, which ARE NOT RESTRICTED TO BE NEGATIVE. In
particular,
Max {z1,z2,z3,b1} z1 + z2 + z3
(s.t.)
# 7 z1 + 0 z2 + 0 z3 + b1 <= 5
# 0 z1 + 8 z2 + 0 z3 - b1 <= 5
# 0 z1 + 0 z2 + 6 z3 + b1 <= 7
# z1, z2, z3 BINARY {0,1}
# -5<= b1 <=5 (i.e. b1 <= 5; -b1 <= 5 )
Using
2007 Jul 10
1
error using lp function in linux
Hello all,
I would like to use the lp function (lpSolve package) on a linux system. Using sample code from the lp function help, I can solve the linear program with no errors or problems. However, when I copy the exact same code to R in linux (after loading the lpSolve package), I get the following error:
*** caught segfault ***
address 0x3, cause 'memory not mapped'
Traceback:
1:
2007 Mar 09
1
lpSolve space problem in R 2.4.1 on Windows XP
Hi.
I am trying to use the linear optimizer from package lpSolve in R 2.4.1 on
Windows XP (Version 5.1). The problem I am trying to solve has 2843
variables (2841 integer, 2 continuous) and 8524 constraints, and I have 2 Gb
of memory. After I load the input data into R, I have at most 1.5 Gb of
memory available. If I start the lp with significantly less memory
available (say 1 Gb), I get
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 =
2005 Mar 30
1
Problems with lpSolve/Memory ? R crashes
Hello!
I have a curious problem, which I cannot solve.
With my code I solve thousands of small linear programs with the package lpSolve automatically.
But R crashes sometimes (~always, but always on different linear programs) in a strange way.
For illustration, I tried to prepare a simple example, which shows the nature of the problem.
The function aaa (see below) declares some constants (only in
2010 Jan 28
0
lpSolve API - add Vs set
Hi,
Using the package lpSolve API, I need to build a 2000*100000 constraint matrix.
I wonder which method is faster:
(a)
model = make.lp(0,0)
add.constraint(model, ...)
or
(b)
model = make.lp(2000,100000)
set.constraint(model,...)
Thanks
------------
KC
2010 Mar 19
0
lpSolve
Hey,
Anyone who knows what the following error report when calling lp() in
package lpSolve means?
Error: status 3
JT
--
View this message in context: http://n4.nabble.com/lpSolve-tp1599380p1599380.html
Sent from the R help mailing list archive at Nabble.com.
2005 Oct 14
0
arguments of lpSolve
Dear all,
I am a beginner with lpSolve package (and not an expert in the others).
I can not understand why I am doing wrong, and I would be very grateful if
anyone could please help me on this.
I am trying to optimize ("min") the sum of columns/variables, constrained to
>=1. Each column/variables has its weight - given by values at f.obj.
The matrix for numeric constraint
2003 Oct 15
2
SOM library for R
Hi.
Three years ago, I've read the question of availability of SOM library for
R using Kohonen's SOM_PAK in this mailing-list. This answer was no
availability. And no package dealing with SOM in CRAN.
Is this situation same?
Could you tell me availability this library?
Best Regards.
2009 Sep 22
2
Semi continous variable- define bounds using lpsolve
How to define bounds for a semi continous variable in lp_solve.
Min 5x1 +9x2 +7.15x3 +0.1x4
subject to
x1+x2+x3+x4=6.7
x1+x4 <= 6.5
And x3 can be 0 or greater than 3.6
hence x3 is a semi continous variable
how to define bounds as well as semicontinous function because using
set.semicont and set. bound simantaneously doesn't seem to work.Thanks in
advance for the help
--
View this
2010 Jul 06
1
question about lpSolve package
Hello R users,
I have two quick questions while using "lpSolve" package for linear programming. (1) the result contains both characters and numbers, e.g., Success: the objective function is 40.5, but I only need the number, can I only store the number? (2) How to set boundaries for variables? e.g., all variable are positive.
Thanks a lot!
Xiaoxi
2002 Nov 30
3
About building R1.6.1 on Cygwin
Hello.
For building REmbeddedPostgres in Omegat
project(http://www.omegahat.org/RSPostgres/) requiring PostgresSQL's libs,
I've tried to build R1.6.1 on Cygwin following the instruction of
http://www.stats.ox.ac.uk/pub/Rtools/ since full-spec PostgresSQL running on
Windows can run only on Cygwin environment,
However I've got following error messages.
make -C front-ends Rpwd
2007 Oct 01
1
lpSolve doesn't compile because of a malloc.h error
Under freebsd 6.2-p7 i386, R 2.5.1,gcc-4.2.2 I'm unable to compile package
lpSolve because:
hpbsd# R CMD INSTALL lpSolve_5.5.8.tar.gz
* Installing to library '/usr/local/lib/R/library'
* Installing *source* package 'lpSolve' ...
** libs
cc -std=gnu99 -I/usr/local/lib/R/include -I/usr/local/lib/R/include -I . -DINTEGERTIME -DPARSER_LP -DBUILDING_FOR_R -DYY_NEVER_INTERACTIVE
2003 Jun 09
2
ESRI shapefiles and EMME/2 packages
I just uploaded two packages to CRAN.
shapefiles_0.1.tar.gz - functions to read and write ESRI shapefiles
(including dbfs)
emme2_0.1.tar.gz - functions to read binary data from an EMME/2 databank
data (EMME/2 is a transportation modeling program)
Please let me know if you find any bugs or have some suggestions. Thanks.
Regards,
Benjamin Stabler
Transportation Planning Analysis Unit
Oregon
2004 Jun 22
0
semi-continuous variables in lpSolve package
Hi,
I am working with lpSolve "R" package by Sam Buttrey, buttrey at nps.navy.mil ,
which is interface to lp_solve linear/integer programming system.
You can find information about lp_solve at http://groups.yahoo.com/group/lp_solve/ (free registration required).
lpSolve (R package) supports linear and integer programming but it does not support semi-continuous variables
2003 Jun 12
2
R_PHP_Online version 0.2 with Security Fix
Hi all,
Thanks to Dr Paul Murrell in New Zealand to remind me of security
consideration.
I am releasing version 0.2 with security fix. This version will allow
you to add banned R function names in a list.
R_PHP_Online is a PHP CGI web interface to run R programs online, with the
capability to show graphics online.
You can get current version of R_PHP_Online from
http://steve-chen.net/R_PHP/
2004 Jul 23
1
inno setup'iss files for R & RDCOM
Hi.
I'd like to build installer for integrate my GUI program for R, R for win
and RDCOM.
Can the distribution like this be got permission?
If so, installation of these softwares will be done in just one time.
And where can I get each inno setup'iss file for R & RDCOM.
Because these sources seem no to include their own iss file.
Regards.