37 lines
930 B
C++
37 lines
930 B
C++
/**
|
|
* @file LPState.h
|
|
* @brief This struct holds the state of QPSolver at each iteration
|
|
* @author Ivan Dario Jimenez
|
|
* @date 1/24/16
|
|
*/
|
|
|
|
#include <gtsam/linear/VectorValues.h>
|
|
#include "InequalityFactorGraph.h"
|
|
|
|
namespace gtsam {
|
|
|
|
// TODO: comment
|
|
struct LPState {
|
|
// TODO: comment member variables
|
|
VectorValues values;
|
|
VectorValues duals;
|
|
InequalityFactorGraph workingSet;
|
|
bool converged;
|
|
size_t iterations;
|
|
|
|
/// default constructor
|
|
LPState() :
|
|
values(), duals(), workingSet(), converged(false), iterations(0) {
|
|
}
|
|
|
|
/// constructor with initial values
|
|
LPState(const VectorValues& initialValues, const VectorValues& initialDuals,
|
|
const InequalityFactorGraph& initialWorkingSet, bool _converged,
|
|
size_t _iterations) :
|
|
values(initialValues), duals(initialDuals), workingSet(initialWorkingSet), converged(
|
|
_converged), iterations(_iterations) {
|
|
}
|
|
};
|
|
|
|
}
|