Displaying 20 results from an estimated 500 matches similar to: "simulated annealing"
2003 Oct 10
0
general genetic algorithm / simulated annealing framework
Hi,
we have some code that does variable selection with a genetic
algorithm or simulated annealing, using a linear regression routine or
neural network as the objective function. This code is a mixture of
fortran and C.
The code is more than 15 years old and I am planning to rework it.
Though a C rewrite would be good for efficiency, I would like to
protoype it quickly in R and see how it
2008 May 09
0
Simulated annealing method with restarts
Hello R-Help,
I'm using R to do some optimization, specifically using the optim
method with method = 'SANN' (simulated annealing). I read the help
file, and noticed that this method does not include restarts/reheats,
which I think would help my optimization significantly. Does anyone
know of an implementation that does this? I searched both the internet
and the help archives and
2007 Apr 13
1
Simulated annealing using optim()
I'm preparing some code to compute the optimal geometry of stressed
solids. The core of the calculations is the optimization of elastic energy
using the simulated annealing method implemented in the R optim() rutine.
I've defined a function to compute this "energy" scalar (the fn parameter
for optim) and prepared a list with the arrays defining the geometry and
the elastic
2011 Dec 16
1
Fortune? -- was Re: optim with simulated annealing SANN ...
Folks:
I thought John Nash's comment below was profound and a possible
Fortunes candidate:
(Aside: I believe it applies to a great deal of what is discussed on
this list, not just stochastic optimization.)
Cheers,
Bert
... (in the context of stochastic optimization)
>... As with many tools in this domain, for effective use they
> require more knowledge than many of their users
2007 Oct 23
0
API for optimization with Simulated annealing
Dear list,
I was trying to use the R API for optimization method "Simulated annealing"
void samin(int n, double *x, double *Fmin, optimfn fn, int maxit,
int tmax, double temp, int trace, void *ex);
but I encountered the following problem:
The implementation of the function samin (as seen in src/main/optim.c)
passes its void * argument "ex" into the function
2011 Dec 16
1
optim with simulated annealing SANN for combinatorial optimization
Hi all
I am trying to solve a combinatorial optimization problem. Basically, I can
reduce my problem into the next problem:
1.- Given a NxN grid of points, with some values in each cell
2.- Find the combination of K points on the grid such that, the maximum
mean value is obtained
I took the Travel SalesMan problem example in ?optim documentation. I am
not sure if I have understood correctly
2009 Aug 20
1
Understanding R code
What is
1. par.ests <- optimfit$par
2. fisher <- hessb(negloglik, par.ests, maxvalue=maxima);
3. varcov <- solve(fisher);
4. par.ses <- sqrt(diag(varcov));
Thanks a lot,
fit.GEV <- function(maxima)
{
sigma0 <- sqrt((6. * var(maxima))/pi)
mu0 <- mean(maxima) - 0.57722 * sigma0
xi0 <- 0.1
theta <- c(xi0, mu0, sigma0)
#10/5/2007: removed assign() for maxima.nl
2011 Dec 05
1
Problem in while loop
Hi all,
I have the following code,
When I run the code, it never terminate this is because of the while loop i
am using. In general, if you need a loop for which you don't know in
advance how many iterations there will be, you can use the `while'
statement so here too i don't know the number how many iterations are
there. So Can some one suggest me whats going on?
I am using the
2008 Nov 11
1
simulate data with binary outcome and correlated predictors
Hi,
I would like to simulate data with a binary outcome and a set of predictors that are correlated. I want to be able to fix the number of event (Y=1) vs. non-event (Y=0). Thus, I fix this and then simulate the predictors. I have 2 questions:
1. When the predictors are continuous, I can use mvrnorm(). However, if I have continuous, ordinal and binary predictors, I'm not sure how to simulate
2010 Jun 23
1
A question about R2Winbugs
Dear R users:
I was trying to fit a HMM with mixture of Gaussian into the dataset, and I
tried to implement it by R2Winbugs. But I got the following errer.
*
Error in FUN(X[[1L]], ...) :
.C(..): 'type' must be "real" for this format*
Does anybody know what's the problem? Does R2Winbugs accept some matrix as
inits? I would really appreciate your help. Thank you very much.
2007 Mar 01
1
LDAP error
Hi,
When i try to inser this on LDAP database, i get this error:
"ldapadd: invalid format (line 14) entry:
"uid=spessoa,ou=users,ou=accounts,dc=telbit,dc=pt""
I can't see nothing wrong.
The .ldif file follows my signature.
Any help would be appreciated.
Warm Regards,
M?rio Gamito
--
dn: dc=telbit,dc=pt
objectClass: top
objectClass: dcObject
objectClass: organization
o:
2007 Jun 01
0
Metropolis code help
Dears, I have the below code for metropolis of the GLM logit (logistic
regression) using a flat prior. Can someone help me modify the prior so that
the model becomes hierarchical by using a flat prior for mu and sigma, the
derived density for beta ~ N(mu, sigma^2)? Actually I took my code from a
teacher that posted on the internet and modified it to the GLM logit but I
can't adapt it to the
2010 Oct 04
1
Metropolis: Implementation of Interlock Protocol using Linux Shell Programming, OpenSSH, and GPG
I have wrote a small Linux Shell command for implementing Interlock Protocol
which is known as a cryptographic protocol that resistant to
man-in-the-middle attack. Here is the steps of interlock protocol:
*(1)* Alice send her public key to Bob
*(2)* Bob send his public key to Alice.
*(3)* Alice encrypts her message using Bob's public key. Then she sends half
of that encrypted message to
2009 Aug 21
3
extra .
sigma0 <- sqrt((6. * var(maxima))/pi)
What does the '.' do here?
--
View this message in context: http://www.nabble.com/extra-.-tp25073255p25073255.html
Sent from the R help mailing list archive at Nabble.com.
2007 Jun 06
1
Metropolis-Hastings Markov Chain Monte Carlo in Spatstat
I'm testing some different formulations of pairwise interaction point processes
in Spatstat (version 1.11-6) using R 2.5.0 on a Windows platform and I wish to
simulate them using the Metropolis-Hastings algorithm implemented with Spatstat.
Spatstat utilizes Fortran77 code with the preprocessor RatFor to do the
Metropolis-Hastings MCMC, but the Makefile is more complicated than any I have
2008 Mar 26
0
Naive Gibbs Sampling with Metropolis Steps (pkg: gibbs.met)
Hi R Users:
This package provides two generic functions for performing Markov
chain sampling in a naive way for a user-defined target distribution,
which involves only continuous variables. The function "gibbs_met"
performs Gibbs sampling with each 1-dimensional distribution sampled
with Metropolis update using Gaussian proposal distribution centered
at the previous state. The function
2009 Aug 12
1
MCMC sampling question
Hello,
Consider MCMC sampling with metropolis / metropolis hastings proposals
and a density function with a given valid parameter space. How are MCMC
proposals performed if the parameter could be located at the very
extreme of the parameter space, or even 'beyond that' ? Example to
express it and my very nontechnical 'beyond that': The von Mises
distribution is a circular
2009 May 03
3
Optim function in the loop
Hi all,
I wrote the following lines of codes try to do some iterations to find the
global optimal values, but the function does not execute properly. Every
time codes stop after one iteration right after executing the optim()
function. Does anyone could have me to take a look? Thanks.
if (count>0){
k=k+0.05;
mu0=c(83+k,0,0)
Sigma0= diag(0.4,3)
initpar=c(.1+10*k,10*k,10*k,10*k) # initial
2009 Jan 26
0
AdMit version 1-01.01
Dear all,
The new version of AdMit (version 1.01-01) is now available from CRAN.
SUMMARY
The package provides functions to perform the fitting of an adaptive
mixture of Student-t distributions to a target density through its
kernel function. The mixture approximation can then be used as the importance
density in importance sampling or as the candidate density in the
Metropolis-Hastings
2009 Jan 26
0
AdMit version 1-01.01
Dear all,
The new version of AdMit (version 1.01-01) is now available from CRAN.
SUMMARY
The package provides functions to perform the fitting of an adaptive
mixture of Student-t distributions to a target density through its
kernel function. The mixture approximation can then be used as the importance
density in importance sampling or as the candidate density in the
Metropolis-Hastings