2016-03-07 23:29:43 +08:00
|
|
|
/**
|
|
|
|
* @file LPSolver.cpp
|
|
|
|
* @brief QPS parser implementation
|
|
|
|
* @author Ivan Dario Jimenez
|
|
|
|
* @date 1/26/16
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <gtsam_unstable/linear/QP.h>
|
|
|
|
#include <fstream>
|
|
|
|
|
|
|
|
namespace gtsam {
|
|
|
|
|
|
|
|
class QPSParser {
|
|
|
|
|
|
|
|
private:
|
2016-04-27 14:04:16 +08:00
|
|
|
std::string fileName_;
|
2016-03-07 23:29:43 +08:00
|
|
|
struct MPSGrammar;
|
|
|
|
public:
|
|
|
|
|
|
|
|
QPSParser(const std::string& fileName) :
|
2016-04-27 14:04:16 +08:00
|
|
|
fileName_(findExampleDataFile(fileName)) {
|
2016-03-07 23:29:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
QP Parse();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|