16 #ifndef SURGSIM_TESTING_MLCPIO_MLCPTESTDATA_H
17 #define SURGSIM_TESTING_MLCPIO_MLCPTESTDATA_H
43 numDegreesOfFreedom(-1)
48 problem(other.problem),
49 expectedLambda(other.expectedLambda),
50 description(other.description),
52 numDegreesOfFreedom(other.numDegreesOfFreedom)
70 return (problem.
b.rows() >= 0) ? static_cast<size_t>(problem.
b.rows()) : 0;
76 std::shared_ptr<MlcpTestData>
loadTestData(
const std::string& fileName);
78 std::string
getTestFileName(
const std::string& prefix,
int index,
const std::string& suffix);
80 #endif // SURGSIM_TESTING_MLCPIO_MLCPTESTDATA_H
int numDegreesOfFreedom
Definition: MlcpTestData.h:40
Definition: MlcpTestData.h:28
std::string description
Definition: MlcpTestData.h:38
const MlcpTestData * getTestProblem1()
Eigen::VectorXd expectedLambda
Definition: MlcpTestData.h:35
MlcpTestData & operator=(const MlcpTestData &other)
Definition: MlcpTestData.h:56
MlcpTestData(const MlcpTestData &other)
Definition: MlcpTestData.h:47
size_t getSize() const
Definition: MlcpTestData.h:68
std::shared_ptr< MlcpTestData > loadTestData(const std::string &fileName)
Definition: MlcpTestData.cpp:21
Vector b
Vector used to describe the mixed LCP problem.
Definition: MlcpProblem.h:68
std::string getTestFileName(const std::string &prefix, int index, const std::string &suffix)
Definition: MlcpTestData.cpp:31
std::vector< std::string > flags
Definition: MlcpTestData.h:39
A description of an MLCP (mixed linear complementarity problem, or mixed LCP) system to be solved...
Definition: MlcpProblem.h:57
SurgSim::Math::MlcpProblem problem
Definition: MlcpTestData.h:32
MlcpTestData()
Definition: MlcpTestData.h:42