opti

Create a OPTI optimization object

Syntax

optiObj = opti('param1',value1,'param2',value2,...)

optiObj = opti(...,'options',opts)

opti

optiObj = opti(prob)

optiObj = opti(prob,opts)

Description

Note from v1.53 the opti constructor now accepts arguments in an identical manner to optiprob, allowing for one line object creation.

In all methods listed below, OPTI will automatically determine the problem type being solved and set defaults according to the problem. The constructor also checks the inputs for errors and displays warnings where the user should change the input format. To customize what settings and solver are used, use optiset to generate an options structure.

optiObj = opti('param1',value1,'param2',value2,...) creates an OPTI object with the parameters 'param' set to their corresponding values in 'value'. Parameters not specified will be set to the OPTI default.

optiObj = opti(...,'options',opts) creates the object with optiset options supplied to the OPTI constructor.

opti with no input or output arguments displays a complete list of parameters with their valid names.

optiObj = opti(prob) creates an OPTI object using the problem structure prob created from optiprob.

optiObj = opti(prob,opts) creates the object using the options structure opts created from optiset.