| Mathematics |    | 
Troubleshooting
Below is a list of typical problems and recommendations for dealing with them.
| Problem | Recommendation | 
| The solution found by fminbndorfminsearchdoes not appear to be a global minimum. | There is no guarantee that you have a global minimum unless your problem is continuous and has only one minimum. Starting the optimization from a number of different starting points (or intervals in the case of  | 
| Sometimes an optimization problem has values of  | Modify your function to include a penalty function to give a large positive value to  | 
| The minimization routine appears to enter an infinite loop or returns a solution that is not a minimum (or not a zero in the case of  | Your objective function ( | 
|   | Tips | Converting Your Optimization Code to MATLAB Version 5 Syntax |  |