To solve an optimization problem:
Set appropriate options using
or prepare a
as described in Workflow for GlobalSearch and MultiStart.
For details, see Pattern Search Options, Particle Swarm Options, Genetic Algorithm Options, or Simulated Annealing Options.
Run the solver.
If the result is unsatisfactory, change options or start points or otherwise update your optimization and rerun it. For information, see Global Optimization Toolbox Solver Characteristics or Improve Results. For information on improving solutions that applies mainly to smooth problems, see When the Solver Fails (Optimization Toolbox), When the Solver Might Have Succeeded (Optimization Toolbox), or When the Solver Succeeds (Optimization Toolbox).