opengen.functions package

Submodules

opengen.functions.fabs module

opengen.functions.fabs.fabs(u)

opengen.functions.fmax module

opengen.functions.fmax.fmax(u, v)

opengen.functions.fmin module

opengen.functions.fmin.fmin(u, v)

opengen.functions.is_numeric module

opengen.functions.is_numeric.is_numeric(u)

opengen.functions.is_symbolic module

opengen.functions.is_symbolic.is_symbolic(u)

opengen.functions.norm2 module

opengen.functions.norm2.norm2(u)

opengen.functions.norm2_squared module

opengen.functions.norm2_squared.norm2_squared(u)

opengen.functions.rosenbrock module

opengen.functions.rosenbrock.rosenbrock(u_, p_)

Rosenbrock functions with parameters <code>p = [a, b]</code>

opengen.functions.sign module

opengen.functions.sign.sign(u)

opengen.functions.sq_dist_to_soc module

class opengen.functions.sq_dist_to_soc.SqDistSOC(name, opts={})

Bases: Callback

__init__(name, opts={})

Copy constructor (throws an error)

Callback(self) Callback(self, Callback obj)


Callback(self)

Default constructor.



Callback(self, Callback obj)

Copy constructor (throws an error)


eval(arg)

Evaluate numerically, using temporary matrices and work vectors.

eval(self, [DM] arg) -> [DM]

This signature is not thread-safe. For guaranteed thread-safety, use eval_buffer

get_forward(*args)

Return function that calculates forward derivatives forward(nfwd) returns a

get_forward(self, int nfwd, str name, [str] inames, [str] onames, dict opts) -> Function

cached instance if available, and calls Function get_forward(casadi_int nfwd) if no cached version is available.

get_n_in()

Get the number of inputs This function is called during construction.

get_n_in(self) -> int

get_n_out()

Get the number of outputs This function is called during construction.

get_n_out(self) -> int

has_forward(*args)

Return function that calculates forward derivatives forward(nfwd) returns a

has_forward(self, int nfwd) -> bool

cached instance if available, and calls Function get_forward(casadi_int nfwd) if no cached version is available.

has_jacobian(*_args)

Return Jacobian of all input elements with respect to all output elements.

has_jacobian(self) -> bool

init()

Initialize the object This function is called after the object construction

init(self)

(for the whole class hierarchy) is complete, but before the finalization step. It is called recursively for the whole class hierarchy, starting with the lowest level.

Module contents