Warning
This part of the documentation has not been touched for a while. It might be incomplete, reference deprecated functions or make a claim that does not apply to the latest version of PICOS any more. On the bright side, code listings are validated and still work. Watch your step!
Cheat Sheet¶
Manipulate expressions¶
Operator |
Interpretation |
---|---|
|
addition |
|
inplace addition |
|
substraction |
|
multiplication |
|
Hadamard (elementwise) product |
|
Kronecker product |
|
scalar product |
|
division |
|
exponentiation |
|
Euclidean (or Frobenius) norm |
|
slicing |
|
horizontal concatenation |
|
vertical concatenation |
|
transposition |
|
Hermitian transposition |
|
partial transposition |
|
complex conjugate |
|
real part |
|
imaginary part |
Create constraints¶
Operator |
Interpretation |
---|---|
|
less or equal |
|
larger or equal |
|
equal |
|
Löwner ordering |
|
Löwner ordering |
Create affine expressions¶
function |
short doc |
---|---|
sums a list of affine expressions |
|
diagonal matrix defined by its diagonal |
|
vector of diagonal elements of a matrix |
|
constant affine expression |
|
trace of a square affine expression |
|
partial transposition |
|
partial trace |
Create convex expressions¶
function |
short doc |
---|---|
geometric mean |
|
(generalized) |
|
trace of a p-th matrix power |
|
n-th root of determinant |
|
sum of k largest elements |
|
sum of k smallest elements |
|
sum of k largest eigenvalues |
|
sum of k smallest eigenvalues |
|
largest eigenvalue |
|
smallest eigenvalue |
Create sets¶
function |
short doc |
---|---|
a |
|
a standard simplex
|
|
a set of the form
|
Get information on a problem¶
function |
short doc |
---|---|
gets the variable object |
|
gets the value of the variable |
|
are the current variable value feasible? |
|
objective for the current variable values |
|
returns problem’s type |
Miscellaneous¶
function |
short doc |
---|---|
lists installed solvers |
|
imports data from a .cbf file |
|
writes problem to a file |