Wrapper around the matlab optimizers. More...
Public Member Functions | |
function | MatlabOptimizer (var varargin) |
Creates an MatlabOptimizer object. | |
function | optimize (var arg) |
The hint 'maxTime' is supported. | |
function | setInputConstraints (var con) |
Supports non-linear and linear inequality constraints. | |
function | getBounds () |
Returns bounds for optimizers that need it. | |
function | setBounds (var LB, var UB) |
Sets bounds for optimizers that need it. | |
function | getInitialPopulation () |
Gets the starting positions for the search. | |
function | setInitialPopulation (var pop) |
Sets the starting positions for the search. | |
function | getInputDimension () |
Returns the number of input variables. | |
function | getOutputDimension () |
Returns the number of cost functions. | |
function | setDimensions (var inDim, var outDim) |
Sets the number of input and output dimensions. | |
function | setHint (var key, var value) |
Gives a hint to the optimizer. | |
function | getHint (var key) |
Gets a hint to the optimizer. | |
function | setState (var state) |
Sets some extra information. | |
function | getState () |
Gets some extra information. | |
function | getPopulationSize () |
Get the number of individuals in the population. | |
Wrapper around the matlab optimizers.
The matlab Optimiation toolbox is required. If no bounds are set 'fmincon' will be used, else 'fminunc'.
|
inline |
Creates an MatlabOptimizer object.
Takes the same option as the base class + an options structure (see optimset)
nvars | Number of dimensions |
nobjectives | Number of cost functions |
options | Option structure |
|
inherited |
Returns bounds for optimizers that need it.
Only needed for optimization methods that support it.
LB | lower bound |
UB | upper bound |
|
inherited |
Gets a hint to the optimizer.
Returns a particular hint setting.
key | property name |
value | property value |
|
inherited |
Gets the starting positions for the search.
pop may be a matrix for population-based, multi-start, etc. methods
startx | matrix of initial values |
|
inherited |
Returns the number of input variables.
nvars | Number of input variables |
|
inherited |
Returns the number of cost functions.
Returns the number of output variables.
nobjectives | Number of cost functions |
|
inherited |
Get the number of individuals in the population.
The base method assumes only 1 individual.
size | Population size |
Population-based optimization methods should override this
|
inlineinherited |
Gets some extra information.
state | structure |
function optimize | ( | var | arg | ) |
The hint 'maxTime' is supported.
|
inherited |
Sets bounds for optimizers that need it.
Only needed for optimization methods that support it.
LB | lower bound |
UB | upper bound |
|
inherited |
Sets the number of input and output dimensions.
Includes some input checking to ensure that the bounds and the initial population are still correct.
inDim | Number of input variables |
outDim | Number of cost functions |
If not, these variables are reset to their default values without warning!
|
inherited |
Gives a hint to the optimizer.
Sets a hint that may or not be honored by the optimizer (depends on the type...).
key | property name |
value | property value |
Only supports 'maxTime', time atm.
|
inherited |
Sets the starting positions for the search.
Sets the initial population.
pop | matrix of initial values |
function setInputConstraints | ( | var | con | ) |
Supports non-linear and linear inequality constraints.
|
inlineinherited |
Sets some extra information.
state | structure |