Name

cma_tell — deliver function values to cma minimizer

Calling Sequence

es = cma_tell(es,X,arfitness)
es = %cma_tell(es,X,arfitness) // the same

Parameters

es

cma object

X

list of lambda column vectors of the search space

arfitness

vector of objective (cost) function values, such that arfitness(i) = cost_function(X(i))

es

updated cma object

Description

  • cma_tell() concludes the iteration for the cma object and updates all distribution parameters for the next iteration step.

Examples

  param.x0 = ones(8,1);
  param.sigma0 = 0.5; 
  es = cma_new(param);  
  while ~ cma_stop(es) // es.out.stopflags is empty
    X = cma_ask(es);   // returns a list of lambda column vectors
    y = [];
    for i = 1:length(X)
      y(i) = costf(X(i)); // costf needs to be defined 
    end
    es = cma_tell(es, X, y');
  end
  

See Also

cma_new , cma_ask , cma_plot , cma_optim

Authors

Nikolaus Hansen

Bibliography

Used Functions