Displaying 20 results from an estimated 900 matches similar to: "Help with optimization using GENOUD"
2011 Jan 13
1
setting up a genoud run
Hello - and sorry for a possibly stupid question, I'm just starting to
learn rgenoud.
I am defining a function with 5 parameters (p1, p2, p3, p4a, and p4b)
and then want to optimize it using genoud. But I am doing something
wrong.
Before genoud is even able to run it says: "Error in p2 + 1.2 : 'p2'
is missing".
I assume I did not specify it right. My code is below.
The task
2005 Mar 02
1
Rounding parameter values in genoud(), Rgenoud package
I would like to limit the significant figures of the calibrated
parameters determined by genoud() in the Rgenoud package. Below is some
example output, where column 1 is model run number, columns 2-7 are the
parameter values, and columns 8-12 are model fit statistics. I would
like genoud to internally limit parameters to 4 decimal places as shown
in this output. It is clear that the function is
2007 Sep 01
1
genoud problem
Hi R users,
"genoud" function of "rgenoud" package will optimize my function. If
opt = genoud(fn,2,max=TRUE,starting.value=c(1,10),........)
opt$value will give the optimized value of the function, "fn". My
problem is from the same opt, can I get the value of the function at the
initial parameter values? I need the initial value of the function for
2006 Aug 24
1
Hyphenated terms
I am having a problem with any terms which contain hyphens in them. Is
there a particular reason why this wouldn''t work? i''m using aaf, and
have tried with the the previous version (pre 0.10.0) and the newest
versions of both ferret and aaf. Basically, the problem is that
term1-term2 is something my users want to search for, and it appears in
the titles of publications,
2008 May 14
0
Parallel computing with rgenoud and snow: external file I/O possible?
I am trying to use rgenoud and snow with an external model and file I/O.
Unlike the typical application of rgenoud and snow, I need to run an
external executable and do pre- and post-processing of input and output
files for each parameter set generated by genoud(). I'm hoping that
someone can suggest improvements to my approach and a work-around for
file I/O problems I've encountered when
2017 Nov 13
2
question on nbdkit shutdown behavior
I'm observing a difference in timing on nbdkit shutdown that is
dependent on client behavior, and I wonder if that's a bug, but I can't
figure out where to patch it.
When there is no connection present, sending SIGINT to nbdkit terminates
immediately.
If, on the other hand, there is a single client currently connected, the
termination behavior on SIGINT depends on what the client has
2005 Apr 17
1
nls segmented model with unknown joint points
Hello,
I am interested in fitting a segmented model with unknown joint points
in nls and perhaps eventually in nlme. I can fit this model in sas (see
below, joint points to be estimated are a41 and a41), but am unsure how
to specify this in the nlm function. I would really appreciate any
suggestions or example code. Thanks a lot. -andy
proc nlin data=Stems.Trees;
params b41=-3 b42=1.5
2011 Jun 11
1
Amazon AWS, RGenoud, Parallel Computing
Dear R group,
since I do only have a moderately fast MacBook and I would like to get
my results faster than within 72h per run ( :-((( ), I tried Amazon
AWS, which offers pretty fast computers via remote access. I don't
want to post any code because its several hundreds lines of code, I am
not looking for the "optimal" answer, but maybe some suggestions from
you if faced similar
2004 Feb 20
0
New Package: multinomRob
We would like to announce the availability on CRAN of a new package
multinomRob. It does robust estimation of overdispersed multinomial
regression models. The package is also able to estimate overdispersed
grouped multinomial logistic and multivariate-t logistic models. The
code is relatively general; for example, it allows for equality
constraints across parameters and it can handle datasets in
2004 Feb 20
0
New Package: multinomRob
We would like to announce the availability on CRAN of a new package
multinomRob. It does robust estimation of overdispersed multinomial
regression models. The package is also able to estimate overdispersed
grouped multinomial logistic and multivariate-t logistic models. The
code is relatively general; for example, it allows for equality
constraints across parameters and it can handle datasets in
2010 Nov 10
3
create a pairwise coocurrence matrix
Hi all,
I am trying to construct a pairwise coocurrence matrix for certain terms
appearing in a number of documents. For example I have the following table
with binary values showing the presence or absence of a certain term in a
document:
term1 term2 term3 term4 term5 doc1 1 1 0 0 1 doc2 1 1 0 1 1 doc3 1 0 0
0 1
And I want to have a matrix with the number of the pairwise coocurrencies.
So,
2011 Mar 29
1
Dirichlet surface
Dear list members,
I want to draw surfaces of Dirichlet distributions with different
parameter settings.
My code is the following:
#<begin code>
a1 <- a2 <- a3 <- 2
#a2 <- .5
#a3 <- .5
x1 <- x2 <- seq(0.01, .99, by=.01)
f <- function(x1, x2){
term1 <- gamma(a1+a2+a3)/(gamma(a1)*gamma(a2)*gamma(a3))
term2 <- x1^(a1-1)*x2^(a2-1)*(1-x1-x2)^(a3-1)
2007 Jan 01
4
Help with filled.contour()
The following plot is a first approximation to what I need:
***********************************
mu1 <- 0
mu2 <- 5
s <- 1
x <- seq(-2.5, 7.5, length = 41)
y <- seq(-2.5, 2.5, length = 41)
f <- function(x,y){
term1 <- 1/(2*pi*sqrt(s*s))
term2 <- -1/2
term3 <- (x - mu1)^2/s
term4 <- (y - mu1)^2/s
term5 <- (x - mu2)^2/s
term1*(.5 * exp(term2*(term3 + term4)) + .5 *
2010 Oct 13
2
How to fix error in the package 'rgenoud'
Dear R user fellows,
I would like to ask you about the package 'rgenoud' which is a genetic
optimization tool.
I ran the function 'genoud' with two variables to be minimized by the
following command.
result<-genoud(fn,nvars=2,starting.values=c(0.5,0),
pop.size=1000, max.generations=10, wait.generations=3)
Then, I had the following error message.
Error in
2005 May 03
0
R on Mac OS X: odd errors when doing install.packages()
Should I be worried? The installation seems to go through fine and
apparently nothing is broken. The errors I repeatedly get are like this:
g++ -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/include -I/usr/
local/include -DUNIX -DOPTIM -DNONR -fno-common -g -O2 -c unif.cpp -o unif.o
g++ -bundle -flat_namespace -undefined suppress -L/usr/local/lib -o rgenoud.so c
hange_order.o
2010 Apr 18
2
Problem with RGenoud
I've been using RGenoud for a while and it worked smoothly so far. However I
came across a strange problem lately (for me at least...).
It fails after the first individual and I get the following error message
when I set MemoryMatrix = FALSE :
Error in genoud(fn, nvars = 8, max = TRUE, pop.size = 10, :
REAL() can only be applied to a 'numeric', not a 'character'
when I
2007 Sep 12
0
Problem with integrate()
Hello!
I have a problem with integrate() in my function nctspa(). Integrate
produces an error message "evaluation of function gave a result of
wrong length". I don't know what that means. Could anyone suggest me
what is wrong with my function?
These are the examples of function calls that work OK:
nctspa(a=1:10,n=5)
nctspa(a=1:10, n=5, mu=2, theta=3, renorm=0)
This does not work:
2012 Nov 05
0
slider control questions
DeaR UseRs,
I have the following code (see below).
It is working as expected although I have two problems/questions:
- how can I set the size of the graph? It may sound silly, but I couldnt figure that out
- is it possible to export this small "interactive aplication" to html or a latex document, or maybe pdf?
Thank you for your attentions.
Best wishes:
Daniel
the code:
2005 Jun 01
1
using user-supplied derivatives in rgenoud
I have been using the rgenoud package for a nonlinear least-squares
problem with lots of local minima, and it works very well but takes lots
of time. According to the article refrenced in the documentation, the
original GENOUD-software by the same authors seems to allow for
user-supplied analytical derivatives instead of numerical approximations,
which would probably save some time. Does anybody
2007 Sep 12
1
Integrate() error message, I am at a loss
Hello!
I have a problem with integrate() in my function nctspa(). Integrate
produces an error message "evaluation of function gave a result of
wrong length". I don't know what that means. Could anyone suggest me
what is wrong with my function?
These are the examples of function calls that work OK:
nctspa(a=1:10,n=5)
nctspa(a=1:10, n=5, mu=2, theta=3, renorm=0)
This does not work: