Skip to Main Content Skip to Search
Product Documentation

setExitStatus - Set exit status information for optimization

Syntax

optimstore = setExitStatus(optimstore, exitflag, termmsg)

Description

Set exit status information for the optimization. A method of cgoptimstore.

optimstore = setExitStatus(optimstore, exitflag, termmsg) sets termination status information in the optimstore. exitflag is an integer which determines whether the optimization has terminated successfully. A value of exitflag > 0 indicates success, and exitflag <=0 indicates failure. In any event, a termination message can be passed back to the optimization through termmsg.

How To

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS