You obtain the single best solution found during the run by calling
run with the syntax
[x,fval,exitflag,output] = run(...);
xis the location of the local minimum with smallest objective function value.
fvalis the objective function value evaluated at
exitflagis an exit flag for the global solver. Values:
Global Solver Exit Flags
At least one feasible local minimum found. Some runs of the local solver did not converge.
At least one feasible local minimum found. All runs of the local solver converged (had positive exit flag).
No local minimum found. Local solver called at least once, and at least one local solver exceeded the
One or more local solver runs stopped by the local solver output or plot function.
No feasible local minimum found.
No solution found. All runs had local solver exit flag
-2or lower, not all equal
Failures encountered in user-provided functions.
outputis a structure with details about the multiple runs of the local solver. For more information, see Global Output Structures.
The list of outputs is for the case
exitflag > 0. If
exitflag <= 0, then
x is the
If some local solutions are feasible,
xrepresents the location of the lowest objective function value. “Feasible” means the constraint violations are smaller than
If no solutions are feasible,
xis the solution with lowest infeasibility.
If no solutions exist,
outputare empty entries (