The solversdp struct. More...
#include <borderbasix/solversdp.h>
Public Types | |
| typedef std::pair< int, int > | Pair |
| typedef std::map< Pair, double > | Matrix |
| Matrix type of the SDP solver. More... | |
| typedef std::vector< double > | Vector |
| typedef std::map< int, int >::iterator | dim_iterator |
| Iterator on the matrix sequence. More... | |
| typedef std::map< Pair, Matrix >::iterator | mat_iterator |
| Iterator on the matrix sequence. More... | |
| typedef std::map< int, double >::iterator | obj_iterator |
| Iterator on the coefficients of the objectiv function. More... | |
Public Member Functions | |
| solversdp () | |
| int & | dim () |
| dimension of the first block More... | |
| int & | dim (int i) |
| dimension of the ith block More... | |
| int | nb_block () const |
| number of blocks More... | |
| dim_iterator | dim_begin () |
| dim_iterator | dim_end () |
| int & | prec () |
| int | prec () const |
| mat_iterator | begin () |
| begining of the matrix sequence More... | |
| mat_iterator | end () |
| end of the matrix sequence More... | |
| double & | coeff (int i, int j, int k) |
| double & | coeff (int i, int b, int j, int k) |
| int & | nentries (int i) |
| number of entries asociated to each matrix More... | |
| virtual void | run ()=0 |
| int | obj_size () |
| double & | obj_coeff (int i) |
| obj_iterator | obj_begin () |
| obj_iterator | obj_end () |
| void | clear () |
Public Attributes | |
| Vector | output |
| double | fminprimal |
| double | fmindual |
The solversdp struct.
Interface class to a SDP solver.
Input:
Output:
The matrices are represented as map from pairs of indices to double. The list of matrices is also represented by a map from int to Matrix. The dimension of the matrices is given or assigned with the method dim().
| typedef std::map<int, int>::iterator solversdp::dim_iterator |
Iterator on the matrix sequence.
| typedef std::map<Pair, Matrix>::iterator solversdp::mat_iterator |
Iterator on the matrix sequence.
| typedef std::map<Pair,double> solversdp::Matrix |
Matrix type of the SDP solver.
| typedef std::map<int, double>::iterator solversdp::obj_iterator |
Iterator on the coefficients of the objectiv function.
| typedef std::pair<int,int> solversdp::Pair |
| typedef std::vector<double> solversdp::Vector |
|
inline |
|
inline |
begining of the matrix sequence
|
inline |
|
inline |
|
inline |
|
inline |
dimension of the first block
|
inline |
dimension of the ith block
|
inline |
|
inline |
|
inline |
end of the matrix sequence
|
inline |
number of blocks
|
inline |
number of entries asociated to each matrix
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in solversdp_mosek, solversdp_csdp, solversdp_gmp, and solversdp_sdpa.
| double solversdp::fmindual |
| double solversdp::fminprimal |
| Vector solversdp::output |