15.11.2014 Views

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4 Function Functions<br />

and displays the following plot <strong>of</strong> the points generated by fminsearch:<br />

Structure <strong>of</strong> the Output Function<br />

The function definition line <strong>of</strong> the output function has the following form:<br />

stop = outfun(x, optimValues, state)<br />

where<br />

• stop is a flag that is true or false depending on whether the optimization<br />

routine should quit or continue. See “Stop Flag” on page 4-20.<br />

• x is the point computed by the algorithm at the current iteration.<br />

• optimValues is a structure containing data from the current iteration.<br />

“Fields in optimValues” on page 4-19 describes the structure in detail.<br />

• state is the current state <strong>of</strong> the algorithm. “States <strong>of</strong> the Algorithm” on<br />

page 4-20 lists the possible values.<br />

The optimization function passes the values <strong>of</strong> the input arguments to outfun<br />

at each iteration.<br />

4-16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!