FUNCTION REFERENCE
fminimax
Minimize the largest of several objectives (minimax problem).
Minimize the largest of several objectives (minimax problem).
Syntax
[x, fval, maxfval, exitflag, output] = fminimax(fun, x0, A, b, Aeq, beq, lb, ub, nonlcon, options)fun returns the vector F(x); fminimax minimizes max(F(x)) subject to the same
constraints as fmincon. Arguments after x0 can be omitted or given as [].
Algorithm: the epigraph form min t subject to F_i(x) <= t, solved over [x; t]
by the fmincon SQP method (Powell-damped BFGS, l1 merit line search,
interior-point QP steps); see Nocedal & Wright, Numerical Optimization (2006),
ch. 18, and Brayton, Director, Hachtel & Vidigal (1979) for the reformulation.
fval is F at x (in fun's shape), maxfval is max(fval). Objective and constraint
derivatives use forward finite differences; SpecifyObjectiveGradient is not
supported. Defaults and options follow fmincon (MaxIterations 400,
MaxFunctionEvaluations 3000 counting evaluations of fun). Exitflags: 1
first-order convergence, 2 feasible step below StepTolerance, 0 budget, -1
failed line search, -2 no feasible point. A local method: the result depends
on x0. Differences from MATLAB: iterates, exitflags 4 and 5 and the lambda
output differ (different internals); AbsoluteMaxObjectiveCount is not supported.
Example
f=@(x)[2*x(1)^2+x(2)^2-48*x(1)-40*x(2)+304; -x(1)^2-3*x(2)^2; x(1)+3*x(2)-18; -x(1)-x(2); x(1)+x(2)-8]; [x,fval,m]=fminimax(f,[0.1;0.1])Example
x=fminimax(@(x)[x(1)^2+x(2)^2; (x(1)-2)^2+x(2)^2],[0;3],[0 -1],-1)These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.