R/examples.R

################################################################################
#
# documentation examples for the smco packague
#
################################################################################
#
#SphereModel.fcn <-
#function( x ) {
#  return(sum(x ^ 2))
#}

#f = SphereModel.fcn;    
#ndim = 31; 
#LB = rep(  -600.000, ndim); 
#UB = rep( 600.000, ndim); 
#maxiter = 100; 

#s = smco(par = NULL, f = SphereModel.fcn, N = ndim, LB = LB, UB = UB, maxiter = maxiter, 
#	Co = 0.01, Cmin = 0.0001, Cmax = 0.5, trc = TRUE, lambda = 20,
#    useBFGS = TRUE, control = list(maxit = 10))

Try the smco package in your browser

Any scripts or data that you put into this service are public.

smco documentation built on May 2, 2019, 7:38 a.m.