Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - 日本語
Справка Scilab >> Optimization and Simulation > Neldermead > optimplotfval

optimplotfval

Plot the function value of an optimization algorithm

SYNOPSIS

optimplotfval ( x , optimValues , state )

Description

This function creates and updates a plot of the function value, depending on the number of iterations. It is a pre-defined plot function which should be used as an option of the "PlotFcns" option.

Example

In the following example, we use the optimplotfval function for use with the fminsearch function.

function y=rosenbrock(x)
  y = 100*(x(2)-x(1)^2)^2 + (1-x(1))^2;
endfunction
opt = optimset ( "PlotFcns" , optimplotfval );
[x fval] = fminsearch ( rosenbrock , [-1.2 1] , opt );

See Also

  • optimset — Configures and returns an optimization data structure.
  • fminsearch — Computes the unconstrained minimum of given function with the Nelder-Mead algorithm.
  • optimplotx — Plot the value of the parameters of an optimization algorithm
  • optimplotfunccount — Plot the number of function evaluations of an optimization algorithm
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:48:32 CEST 2016