help optimoptions optimoptions Create/modify optimization options For a list of valid optimization solvers, enter doc optimoptions OPTIONS = optimoptions(SOLVER,'PARAM1',VALUE1,...) creates default optimization options for SOLVER with the named parameters altered with the specified values. OPTIONS can also be created using optimoptions and setting the parameters via dot notation. For example: % Create and set parameters using optimoptions options = optimoptions('fminunc','StepTolerance',0.01,'Display','iter') % Create same options using optimoptions and dot notation options = optimoptions('fminunc'); options.StepTolerance = 0.01; options.Display = 'iter' rng default x = optimvar('x',3,'LowerBound',0); expr = x'*(eye(3) + randn(3))*x - randn(1,3)*x; prob = optimproblem('Objective',expr); options = optimoptions(prob)