-
Notifications
You must be signed in to change notification settings - Fork 3
Numerical Examples
Torbjørn Cunis edited this page Apr 25, 2025
·
4 revisions
With sossol, CaΣoS can verify nonnegativity of a polynomial. Consider for example
For which
% Polynomial optimization.
% indeterminate variable
x = casos.Indeterminates('x');
% some polynomial
f = x^4 + 10*x;
% scalar decision variable
g = casos.PS.sym('g');
% define SOS problem:
% min g s.t. (f + g) is SOS
sos = struct('x',g,'f',g,'g',f+g);
% constraint is scalar SOS cone
opts = struct('Kc',struct('sos',1));
% solve by relaxation to SDP
S = casos.sossol('S','sedumi',sos,opts);
% evaluate
sol = S();
fprintf('Minimum is %g.\n', full(sol.f))TODO: add example (ROA)
- 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.