-
Notifications
You must be signed in to change notification settings - Fork 3
Polynomial Functions
This page is under construction.
The class casos.Function provides functions of which the input and/or output are polynomial expressions.
casos.Function('f',{p1 ... pN},{q1 ... qM})
creates a function named 'f' mapping the M outputs to N inputs. Outputs may be any expressions of types casadi.DM, casadi.SX, casos.PD, or casos.PS whereas inputs must be symbolic expressions of types casadi.SX or casos.PS.
casos.Function('f',{p1 ... pN},{q1 ... qM},{'a1' ... 'aN'},{'b1' ... 'bM'})
creates a function named 'f' as described above but also assigns names to input and outputs.
Suppose f is a casos.Function object.
[s1,...,sM] = f(r1,...,rN)
calls the function f with arguments r1 through rN assigned to its inputs and returns the output values s1 through sM.
If the function f has named inputs and outputs, the following call syntax is also possible.
out = f('a1',r1,...,'aN',rN)
calls the function f with arguments r1 through rN assigned to inputs with names 'a1' through 'aN', respectively. In this case, the functionn call returns a structure with fields out.b1 through out.bM with corresponding output values.
It is important to note that polynomial themselves are not functions but mathematical objects. As such, CaΣoS' polynomial data types can be part of optimization problems. For evaluating a polynomial as function, the polynomial should first be converted to a CasADi function.
- Getting started
- Available conic solvers
- Convex and nonconvex sum-of-squares optimization
- Supported vector, matrix, and polynomial cones
- Some practical tipps for sum-of-squares
- Transitioning from other toolboxes
- Example code snippets
If you use CaΣoS, please cite us.