| Contents | Index |
This table summarizes what's new in Version 3.1 (R2006b):
| New Features and Changes | Version Compatibility Considerations | Fixed Bugs and Known Problems |
|---|---|---|
| Yes Details below | Yes–Details labeled as Compatibility Considerations, below. See also Summary. | Bug
Reports Includes fixes |
New features and changes introduced in this version are:
The Optimization Tool is a graphical user interface (GUI) for performing common optimization tasks with the Optimization Toolbox. Using the optimtool, you can do the following:
Select a solver and define your optimization problem.
Set and inspect optimization options and their default values.
Run problems and visualize results.
Import and export problem definitions, algorithm options, and results between the MATLAB workspace and the Optimization Tool.
Automatically generate M-code to capture, automate, and recreate your problem.
Access built-in help.
You can now specify the PlotFcns option in the optimset function or using the Optimization Tool for use with an Optimization Toolbox solver. With this option, you can plot various measures of progress while the algorithm executes. You can select from several predefined plots, or you can write your own.
You can now specify more than one output function in the OutputFcn option.
The output function input x and fields in the optimValues structure have the following changes that address bugs in previous releases:
residual now returns the residual vector for lsqnonlin and lsqcurvefit.
resnorm contains the sum of squares and has been added for lsqnonlin and lsqcurvefit. The previous field fval has been removed for these functions.
procedure has been removed for lsqnonlin, lsqcurvefit, and fsolve.
x now returns the expected shape and size for fgoalattain and fminimax.
The above changes to the input x and optimValues structure have the following compatibility considerations in the output function:
If you have references to the residual in a previous version, note that the value of this field has changed for lsqnonlin and lsqcurvefit. This fixes the problem addressed by the bug report S-289285.
Any references to fval for lsqnonlin and lsqcurvefit need to be updated to resnorm. This fixes the problem addressed by the bug report S-289285.
Any references to procedure for lsqnonlin and lsqcurvefit need to be removed. This fixes the problem addressed by the bug report S-291974.
Previously, for fgoalattain and fminimax, x returned a column vector with an additional last element. If you have references to the values for x in a previous version, the extra element must be removed and the output vector may need to be reshaped. This fixes the problem addressed by the bug report S-315658.
![]() | Version 3.1.1 (R2007a) Optimization Toolbox Software | Version 3.0.4 (R2006a) Optimization Toolbox Software | ![]() |

Learn how to use optimization to solve systems of equations, fit models to data, or optimize system performance.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |