To solve an optimization problem:
Set appropriate options using
optimoptions, or prepare a
MultiStart problem as described in Workflow for GlobalSearch and MultiStart. For details, see Pattern Search Options, Particle Swarm Options, Genetic Algorithm Options, Simulated Annealing Options, or Surrogate Optimization 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).