The class FactorGraph stores a block-sparse linear-constrained quadratic program
(LCQP) of variable x=(x1...xn). The size of the problem is set up at construction of
the object.
Methods add_factor() and add_factor_constraint() are used to set up the problem.
Method solve() is used to compute the solution to the problem.
Definition at line 40 of file factor.py.
def factor.FactorGraph.__init__ |
( |
|
self, |
|
|
|
variableSize, |
|
|
|
nbVariables |
|
) |
| |
Initialize a QP sparse problem as min || A x - b || so that C x = d
where x = (x1, .., xn), and dim(xi) = variableSize and n = nbVariables
After construction, A, b, C and d are allocated and set to 0.
Definition at line 49 of file factor.py.