| Contents | Index |
This table summarizes what's new in Version 3.2 (R2011b).
| New Features and Changes | Version Compatibility Considerations | Fixed Bugs and Known Problems |
|---|---|---|
Yes | Yes–Details labeled as Compatibility Considerations, below. See also Summary. |
New features and changes introduced in this version are described here:
The ga function now allows you to specify that certain variables are integer valued. When you include integer constraints, you can have any objective function, bounds, and inequality constraints, but you cannot directly include equality constraints. To try to circumvent this limitation, see No Equality Constraints.
For details on mixed-integer programming, see the ga function reference page or Mixed Integer Optimization.
There is a new demo of ga for mixed integer programming. Run the demo at the MATLAB command line by entering echodemo weldedBeamDemo.
For R2011b, error and warning message identifiers have changed in Global Optimization Toolbox.
If you have scripts or functions that use message identifiers that changed, you must update the code to use the new identifiers. Typically, message identifiers are used to turn off specific warning messages, or in code that uses a try/catch statement and performs an action based on a specific error identifier.
For example, the 'globaloptim:EQNSOLV:sparseToFull' identifier has changed to 'globaloptim:eqnsolv:eqSparseToFull'. If your code checks for 'globaloptim:EQNSOLV:sparseToFull', you must update it to check for 'globaloptim:eqnsolv:eqSparseToFull' instead.
To determine the identifier for a warning, run the following command just after you see the warning:
[MSG,MSGID] = lastwarn;
This command saves the message identifier to the variable MSGID.
To determine the identifier for an error, run the following command just after you see the error:
exception = MException.last; MSGID = exception.identifier;
Tip Warning messages indicate a potential issue with your code. While you can turn off a warning, a suggested alternative is to change your code so it runs warning free. |
![]() | Version 3.2.1 (R2012a) Global Optimization Toolbox Software | Version 3.1.1 (R2011a) Global 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 |