[R] genoud problem

Jasjeet Singh Sekhon sekhon at berkeley.edu
Sat Sep 8 14:51:41 CEST 2007


Hi Shubha,

genoud does not return the initial fit value.  But you could easily
obtain it by passing your starting values to your function directly.
Alternatively, one can have genoud print out the entire initial
population (or the entire population as is evolves), and one can then
decide to report whatever summary of this one would like.  Note that
the best fit in generation zero is printed by default.  See the
project.path and print.level options for details.

Cheers,
Jas.

=======================================
Jasjeet S. Sekhon                     
                                      
Associate Professor             
Travers Department of Political Science
Survey Research Center          
UC Berkeley                     

http://sekhon.berkeley.edu/
V: 510-642-9974  F: 617-507-5524
=======================================


Shubha Vishwanath Karanth writes:
 > 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
 > reporting purposes.
 > 
 >  
 > 
 >  
 > 
 >  
 > 
 > BR, Shubha
 > 
 > 
 > 	[[alternative HTML version deleted]]
 > 
 >



More information about the R-help mailing list