optimization.solver

The nonlinear solver: IPOPT and the other presets, and the progress of a solve.

Module Attributes

CONVERGED

IPOPT's two successful endings.

IPOPT

Default IPOPT options; Problem(options=...) overrides single entries.

QUIET

Options that silence a QP solver of sqp; the ones not listed here print what they like.

SQP

CasADi's sequential quadratic programming, exact Hessians.

FATROP

Default options of fatrop, which treats the program as one general problem here.

PRESETS

the CasADi plugin and its default options.

Functions

available(solver)

True if this CasADi build has the plugin of the preset solver and its QP solver.

create_solver(nlp, options[, callback, solver])

The preset solver (a key of PRESETS) on nlp (x, p, f, g), with options over its defaults.

status_of(stats)

The solver's ending as IPOPT words it: FATROP reports a number and a success flag.

Classes

IterationCallback(name, nx, ng, fn)

Calls fn(x, cost) once per IPOPT iteration, with the scaled variables; the solver stops when it returns True.