To solve an optimization problem:
Set appropriate options using
optimoptions, or prepare a
MultiStartproblem 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, When the Solver Might Have Succeeded, or When the Solver Succeeds.