Displaying 20 results from an estimated 1000 matches similar to: "help using R's linprog for LP"
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]]
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.
2009 Sep 14
2
Escaping . in regular expression
If I run
cvec<-c("test.f", "test.sf", "try.g","try.res", "try.f")
print(cvec)
indx<-grep('\.f',cvec,perl=TRUE)
fset<-cvec[indx]
print(fset)
I get
> cvec<-c("test.f", "test.sf", "try.g","try.res", "try.f")
> print(cvec)
[1] "test.f" "test.sf"
2004 Sep 16
1
Newbie q. need some help understanding this code.
dear all.
Would someone be kind and willing to explain the code
below for a person who has never used R? ( that is if
one has enough time and inclination)
It implements gillepsie's stochastic algorithm for
Lotka Volterra model.
What would help me tremendously is to see the
breakdown of the line by line code into plain english.
thanks for any insights or other comments.
sean
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 =
2015 Feb 01
2
invoking R function in C++ in parallel
On Sat, Jan 31, 2015 at 7:05 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
[...]
> - either work in something like OpenMP and run in multiple threads that
> remain /completely/ shielded from R, ie no R calls, and not even R data
> types as you cannot trigger gc() calls from different threads
>
I think you can use R objects, as long as you don't call R functions on
2006 Jun 18
1
plugings for date validations, email address validation & url validations in rails
Hi all,
Is there any standard plugin available for date validations, email address
validation & url validations in rails?
Thanks in advance,
Medha.
--
If not you then who.....
If not now then when......
-----------------------------------------------------
With Best Regards,
Medha.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
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?
(including the
2007 Feb 28
2
backgroundrb 0.2.1 not supported on windows platform?
Hi all,
I want to execute certain ruby script periodically in
my rails application running on windows platform.
I wanted to try out backgroundrb, but it seems that
the support for Windows is deprecated with release
0.2.0 of BackgrounDRb.
The latest release is 0.2.1 & the plugin still doesnt
support windows platform. Can anyone throw more light
on this?
Also, can anyone suggest any
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
2006 Jun 18
1
Problem using "rake db:migrate"
Hi all,
I am facing a problem while using rails "migrate" feature for creating
tables in a database.
Following are the details.
I have 2 applications say "app1" & "app2". I want both of them to use same
database say "testdb".
For "app1", I create 3 models which in turn create 3 migration files with
prefix, 001_, 002_ & 003_. Now I
2006 Jun 12
3
standard way of downloading & using rails standard plugins
Hi,
I am a newbie to ruby & rails.
Can anybody give me some inputs as to how to download & use standard rails
plugins.
Any help regarding this will be greatly appreciated.
--
If not you then who.....
If not now then when......
-----------------------------------------------------
With Best Regards,
Medha.
-------------- next part --------------
An HTML attachment was scrubbed...
2003 Sep 26
2
checking generic/method consistency
Hi,
I wrote a package for linear programming and want to submit it to CRAN.
Since the package 'quadprog' has a function with the name 'solve.QP' to
perform Quadratic Programming, I named my (main) function 'solve.LP'.
However 'R CMD check' gives one warning:
* checking generic/method consistency ... WARNING
solve:
function(a, b, ...)
solve.LP:
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
2009 Jul 21
1
strange bug? with R CMD check
Hello,
I am trying to get a package to pass R CMD check on an iMac running
Mac OS X. When the package is named safeBinaryRegression I get the
following warning from R CMD check:
* checking whether the name space can be loaded with stated
dependencies ... WARNING
Error in dyn.load(file, DLLpath = DLLpath, ...) :
function 'make_lp' not provided by package 'lpSolveAPI'
2015 Feb 01
0
invoking R function in C++ in parallel
On 31 January 2015 at 19:29, G?bor Cs?rdi wrote:
| On Sat, Jan 31, 2015 at 7:05 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
| [...]
|
| - either work in something like OpenMP and run in multiple threads that
| ? ?remain /completely/ shielded from R, ie no R calls, and not even R data
| ? ?types as you cannot trigger gc() calls from different threads
|
|
| I think you can
2015 Jan 31
2
invoking R function in C++ in parallel
Hello,
I'm writing an R extension in C++. In the extension, I want to invoke
an R function directly and it works when I use Rcpp in the serial
code. But what I really want is to invoke the R function in parallel
with openmp. When I do so, I got segmentation fault.
I remember someone said that R isn't thread-safe. I think it's also
understandable because an R function also has
2006 Aug 14
4
Updating a table with Ajax
I''ve been banging my head against the wall trying to update a table
(add/delete rows) using Ajax. It seems simple enough but just doesn''t work
for me. I can get it to work using DIVs instead of a table, but doing the
layout with DIVs is much more cumbersome and I know it works for others with
a table (though I haven''t been able to find an exact example code anywhere).
2005 Nov 21
0
Logon Failuter: Unknow user or bad password
Dear all
I have samba PDC, i added all the computer names with $prefixed in
/etc/passwd
tdc$:x:1020:501::/dev/null:/sbin/nologin
and added the computer with smbpasswd -a -m tdc
and added root with smbpasswd -a root
and gave password
but when i go to the tdc computer, and the computer to the domain name, it
says,
Logon Failure, Unknown username or Bad password,
But i am giving correct username
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