Displaying 20 results from an estimated 1000 matches similar to: "Convex optimization in R?"
2007 Nov 14
2
convex optimization package for R, specifically semidefinite programming
Recently, a package for convex optimization was announced for Python,
based upon the LP solver GLPK, the SDP solver
in DSDP5, and the LP and QP solvers in MOSEK. I'm aware GLPK is
available for R, but wondered if anyone had good
packages for convex optimization along these lines for R.
TIA.
2008 Nov 23
2
How is R working in multicore and multiprocessor environment?
My Dear R buddies,
I'm feeling ashamed that I've been running my R program on some
servers for a while but do not know exactly how R is working. The
servers are chained together using Sun Grid Engine. Each node has 8
quad-core CPUs. I wonder how many cores and CPUs are used by a simple
single-thread R program. Thanks a lot.
Best wishes,
--
??? Hesen Peng
2008 Nov 29
2
Reading mixed tables
Dear R buddies,
This weekend I became interested in solving Google Code Jam problems
using R. I guess R may work very well in this kind of contests but the
input of file has been a problem for me. Take this case for example
(http://code.google.com/codejam/contest/dashboard?c=agdjb2RlamFtchALEghjb250ZXN0cxjRzBQM),
the files are usually of the form:
A(number of lines for group 1)
a11 a12 a13
a21
2009 Jul 11
1
Conditional expand.grid()
Hello my R buddies,
I'm trying to generate a bivariate data.frame with the elements of
first row greater than the second row. The more complicated method
that I can think of is:
n <- 10
temp <- expand.grid(1:n,1:n)
temp<-temp[temp[,1]>temp[,2],]
However, I guess there must be some easier way of doing this. Besides,
if inequality condition is applied at the very
2008 Aug 12
2
Multiple column/row names?
Hi all,
I wonder if there is a way to create a matrix with two (or even more)
column/row names? Thank you very much.
Have a nice day.
--
??? Hesen Peng
http://hesen.peng.googlepages.com/
2008 Nov 24
2
More than doubling performance with snow
Hey my R buddies,
I installed the "snow" and "rpvm" package on my Lenovo Thinkpad T400
today. The experiment below gave me a surprise. The time consumed by
serial processing was several times larger than that taken by parallel
processing. I'm very curious how this happened. Thank you very much.
> library(snow)
>
> cc <- makePVMcluster(2)
>
> temp <-
2008 Oct 03
1
When to set small values to 0?
My dear R buddies,
I've run into a problem when doing numerical computation recently. In
a program that I've been working on, I usually get a vector of real
values which are theoretically (and it's correct) supposed to decrease
until reaching zero after a given value. However, most of the value
just wander at 10^-8 scale and never shrink exactly to zero. So I
guess I should manually
2008 May 18
2
*apply function for arrays?
Hi all,
I've recently been writing functions which may deal with very large
arrays. And I hope to use *apply functions in the program so that the
code may look nicer and the performance may be better in the following
two situations.
The first situation is:
I'm having an array A with dim(A)==c(m,n,p). And I want to apply a
function F to a group of elements in A like:
1) F is applied to
2009 Oct 27
1
How to express a tree?
Hello everybody,
I'm write a function whose output represents a tree. Can anyone please
recommend me some data structure in R which are good for expressing a
tree? The possible idea I'm having in my mind is to represent the
whole tree as a list in which a sublist (an element to the main list)
contains all its corresponding branches. Is there any simpler way of
doing this? Thank you very
2007 Mar 24
2
sampling from the unoform distrubuton over a convex hull
Dear list,
Does anyone have a suggestion (or better still) code for sampling from the uniform distribution over the convex hull of a set of points?
Many thanks and best wishes,
Ranjan
2007 Sep 07
1
Finding convex hull?
Dear UseRs,
I would like to know which function is the most efficient in finding
convex hull of points in 3(or 2)-dimensional case?
Functions for finding convex hull is the following:
convex.hull (tripack), chull (grDevices), in.chull (sgeostat),
convhulln (geometry), convexhull.xy (spatstat), calcConvexHull
(PBSmapping).
I also would like to know if there is a function that can be used
2008 Oct 08
5
ParallelR
Anyone using or has access to ParallelR? I was looking at the page and
found nothing really useful!
http://www.revolution-computing.com/sitegenius/topic.php?id=195
I want to see if I can run R on a cluster of workstation, and use
batch systems like Grid Engine or Xgrid:
http://gridengine.sunsource.net/
http://ww.apple.com/acg/xgrid/
--Chi
2009 Nov 24
2
convex hull for cluster analysis
Dear R gurus and users,
I seem to have problem finding the right tool for plotting convex hulls over
2D plots, after a cluster analysis. In fact I would like to draw a convex hull
in 2D for a generic group of points. I found a "convhulln", but this doesn't seem
to give me a convex hull. Here is what I do:
> library(mvtnorm)
> Mean <- c(2,1)
> Sigma <-
2001 Sep 22
2
Finding a 3D convex hull in R
Dear List Members,
I'm presently carrying out morphological analysis of a data set of neuronal
structures. These are essentially 3D binary trees. In due course I will be
trying to use discriminant analysis or other methods to classify these
neurons based on morphological variables such as total tree length, segment
number etc.
I would like to calculate a 3D convex hull for a set of X,Y,Z
2001 Dec 10
1
high dimensional convex hull
Does anyone know of a R package that will determine the convex hull of a
high-dimensional dataset (say 4-10 dimensions). I know chull works for
2D data.
I'm neophyte to R and convex hulls so please keep it simple.
Many thanks
Ben
--
Ben Stapley.
Biomolecular Sciences, UMIST, PO Box 88, Manchester M60 1QD.
Tel 0161 200 5818
Fax 0161 236 0409
2011 Apr 16
1
Applying interpolation within a convex hull
Hi there,
I have been using the Tps function (within the Fields package) for a while
now to interpolate different sedimentary units. Due to the method of
formation of the units I know that at some edges the thickness of the unit
decreases to zero. I was wondering if there was someway to specify that the
interpolation only occurs within the convex hull of the data, outside of
which the the values
2010 Jan 26
2
Large dataset importing, columns merging and splitting
Dear All,
I have a large data set that looks like this:
CVX 20070201 9 30 51 73.25 81400 0
CVX 20070201 9 30 51 73.25 100 0
CVX 20070201 9 30 51 73.25 100 0
CVX 20070201 9 30 51 73.25 300 0
First, I would like to import it by merging column 3 4 and 5, since that is
the timestamp. Then, I would like to aggregate the data by splitting them in
bins of 5 minutes size, therefore from 93000 up to
2005 Sep 01
1
convex-polygon in scatter plot
Hello,
I am trying to draw a convex-polygon (envelope) connecting the outer points
(of a particular class) in a scatter plot
[which I want to do to illustrate the range of a particular type of samples
in an ordination plot].
Is there any function to plot this kind of polygon?
Kind regards
Zlatko Petrin
1999 Aug 30
1
convex hulls
Does anybody know if there are functions to:
1. Define a convex hull on a space with more
than 2 dimensions? chull just works for a plane.
2. Numerically select elements within a given complex
hull.
Thanks!
Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es
2009 Jun 16
1
Constrained Optimization, a full example
After a few days of work, I think I nearly have it.
Unfortunately, theta is unchanged after I run this (as a script from a
file). I thought that theta would contain the fitted parameters.
The goal here is to find the least squares fit according to the function
defined as "rss" subject to the constraints defined as ui and ci.
I defined ui and ci to (hopefully) force par2 and par3