Scilab Function

NDcost - generic external for optim computing gradient using finite differences

Sequence d'appel

[f,g,ind]=CDcost(x,ind,fun,varargin)

Parametres

Description

This function can be used as an external for optim to minimize problem where gradient is too complicated to be programmed. only the function fun which computes the criterion is required.

This function should be used as follow: [f,xopt,gopt]=optim(list(CDcost,fun,p1,...pn),x0,...)

Exemples

Voir aussi