| Genetic Algorithm and Direct Search Toolbox | ![]() |
Vectorize Option
The vectorize option specifies whether the computation of the objective function is vectorized. When you set Objective function is vectorized ('Vectorize') to Off ('off'), the algorithm computes the objective function values of the mesh points in a loop, calling the objective function with exactly one point each time through the loop. On the other hand, when you set Objective function is vectorized to On ('on'), the pattern search algorithm computes the objective function values of all mesh points with a single call to the objective function, which is faster than computing them in a loop. However, to use this option, your objective function must be able to accept input matrices with an arbitrary number of rows.
| Display to Command Window Options | Alphabetical List of Functions | ![]() |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |