2016-01-25 08:44:43 +08:00
|
|
|
/**
|
|
|
|
* @file LPState.h
|
|
|
|
* @brief This struct holds the state of QPSolver at each iteration
|
|
|
|
* @author Ivan Dario Jimenez
|
|
|
|
* @date 1/24/16
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace gtsam {
|
|
|
|
|
|
|
|
struct LPState {
|
|
|
|
VectorValues values;
|
|
|
|
VectorValues duals;
|
|
|
|
InequalityFactorGraph workingSet;
|
|
|
|
bool converged;
|
|
|
|
size_t iterations;
|
|
|
|
|
|
|
|
/// default constructor
|
|
|
|
LPState() :
|
2016-01-25 08:58:42 +08:00
|
|
|
values(), duals(), workingSet(), converged(false), iterations(0) {
|
2016-01-25 08:44:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/// constructor with initial values
|
|
|
|
LPState(const VectorValues& initialValues, const VectorValues& initialDuals,
|
2016-01-25 08:58:42 +08:00
|
|
|
const InequalityFactorGraph& initialWorkingSet, bool _converged,
|
|
|
|
size_t _iterations) :
|
|
|
|
values(initialValues), duals(initialDuals), workingSet(initialWorkingSet), converged(
|
|
|
|
_converged), iterations(_iterations) {
|
2016-01-25 08:44:43 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2016-01-25 08:58:42 +08:00
|
|
|
}
|