Displaying 20 results from an estimated 800 matches similar to: "Integer programming in R"
2005 Oct 02
2
modeling language for optimization problems
Does anyone know whether R has its own modeling language for optimization
problems (like SIMPLE in NuOPT for S-plus)?
Paolo
2010 Apr 01
2
Exporting Nuopt from splus to R
Hi all,
Thanks for the wonderful forum with all the valuable help and comments here.
I have been a splus user for the past 7 to 8 years and now crossing the mind
of changing over to R. Have been doing a lot of reading and one of the main
reasons is being an open source and the wonderful things that comes with
that.
My question is though, is it possible to export any of the function or
librarys
2001 Nov 28
0
Similar to NUOPT package in R
From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
> On Wed, 28 Nov 2001, Janusz Kawczak wrote:
>
> > R-users and R-developers:
> >
> > do you know of any package in R (or for R) that can perform
optimizations
> > for a linear and non-linear systems? I am aware of the NUOPT module in
> > S-Plus that provides an optimizer engine to do just that and more.
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
2003 Aug 07
0
spdep error message
Hello,
I have been using the package "spdep" to run spatial regressions on a data set
with about 2500 observations. It has performed well up until now, but the
following code resulted in an error:
> load("Panel.90s.ok.R")
> attach(Panel.90s.ok)
> neighs<-dnearneigh(cbind(x,y),0,50000)
> help(nbdists)
> dists<-nbdists(neighs,cbind(x,y))
>
2006 Feb 23
1
R and marine protected areas: algorithms for site selection
Dear listers,
a central problem in conservation biology is the selection of sites in
reserve network design.
many algorithms have been published, and I was wondering any have been
implemented in R.
I did not seen anything on CRAN or R-help, or on the web in general.
Best regards, Eric
Eric Pante
----------------------------------------------------------------
College of Charleston, Grice
2009 Dec 04
2
Solve linear program without objective function
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)
f.obj<-c(1,1,1,1)
f.con<-matrix(c(0,2/3,1/3,1/3,
1,1,1,1,
2001 Nov 28
2
Why are looping variables not local?
Hello,
I've had a quick look on the list and can't find an answer to this niggle.
Whilst debugging some code, I noticed that looping variables in R are not
local to the loop as seams common in procedural languages.
For example consider the following piece of code:
for(i in 1:3){
cat(i,"")
for(i in c("a","b","c")){
cat(i,"")
2005 Sep 12
0
Applied Quantitative Analytics in Finance
2005 APPLIED QUANTITATIVE ANALYTICS IN FINANCE EVENT o OCTOBER 6, 2005 o
LONDON
Please join us at the Museum of London for a series of guru-led
presentations, networking, and demonstrations by academic and business
thought leaders in finance from Basel II Committee, Swiss Union of Raiffeisen
Banks, Swiss Federal Institute of Technology (ETH) in Zurich, UBS Warburg,
Ingenious Media Plc. and
2008 Mar 03
2
Constrained regression
Dear list members,
I am trying to get information on how to fit a linear regression with
constrained parameters. Specifically, I have 8 predictors , their
coeffiecients should all be non-negative and add up to 1. I understand it is
a quadratic programming problem but I have no experience in the subject. I
searched the archives but the results were inconclusive.
Could someone provide suggestions
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
2006 Nov 28
1
problem with source(), parse() and "french" colnames
Hello every one
Working under Windows Xp in French, and R version 2.4.0 (and : >
localeToCharset() : "ISO8859-1" )
I am trying to source a file with basic commands.
source("R files/InputFile Analysis (Calculs et mises à l'échelle - gestion
des pb d'unités).r")
and it works fine as long as I do not use command like these ones :
2007 Nov 10
5
Best laptop for CentOS
Which is the best laptop to run centos on and where can I buy one
without Windows Vista pre loaded cause I will uninstall it any way.
Please tell me the best sites that ship worldwide.
2006 Feb 28
3
any more direct-search optimization method in R
Hello list,
I am dealing with a noisy function (gradient,hessian not available) with
simple boundary constraints (x_i>0). I've tried constrOptim() using nelder
mead to minimize it but it is way too slow and the returned results are not
satisfying. simulated annealing is so hard to tune and it always crashes R
program in my case. I wonder if there are any packages or functions can do
2002 Oct 25
4
R v/s S-plus
Hi all,
I have Splus and R both on my unix machine. I intend to keep only one of
them. R looks to be a better choice. But I want to confirm. Is there any
function or group of functions in Splus that are absent in R?
Thanks,
Saket.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send
2006 Jan 25
4
D(dnorm...)?
Can someone help me understand the following:
> D(expression(dnorm(x, mean)), "mean")
[1] 0
> sessionInfo()
R version 2.2.1, 2005-12-20, i386-pc-mingw32
attached base packages:
[1] "methods" "stats" "graphics" "grDevices" "utils" "datasets"
[7] "base"
By my computations, this should be
2013 Apr 03
5
Can package plyr also calculate the mode?
I am trying to replicate the SAS proc univariate in R. I got most of the
stats I needed for a by grouping in a data frame using:
all1 <- ddply(all,"ACT_NAME", summarise, mean=mean(COUNTS), sd=sd(COUNTS),
q25=quantile(COUNTS,.25),median=quantile(COUNTS,.50),
q75=quantile(COUNTS,.75),
q90=quantile(COUNTS,.90), q95=quantile(COUNTS,.95),
q99=quantile(COUNTS,.99) )
2024 Jan 29
1
linear programming in R | limits to what it can do, or my mistake?
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. This lets you set up a LHS and RHS matrix/vector that are
symmetrical.
But, for a
2024 Jan 30
1
linear programming in R | limits to what it can do, or my mistake?
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)),
c(0,0,0,0,0,1,0,0),
c(0,0,0,0,0,0,1,0),
c(0,0,0,0,0,0,0,1)
)
RHS <-
2005 Jun 27
2
DID in Western Canada
Hello,
I'm having trouble getting finding a company that
provides DID in Western Canada. More specifically in
Edmonton, Alberta.
We have tried getting in contact with Link2Voip and
Calgary Telecom but neither seems to be answering
their phones or email.
I would appreciate it if anyone can point me in the
right direction.
Thank you,
Nelson