Go to the documentation of this file. 1 #ifndef HOPS_LINEARPROGRAMCLPIMPL_HPP
2 #define HOPS_LINEARPROGRAMCLPIMPL_HPP
9 #include <coin/ClpSimplex.hpp>
12 class LinearProgramClpImpl :
public LinearProgram {
20 LinearProgramSolution
solve(
const Eigen::VectorXd &objective)
const override;
28 std::tuple<Eigen::MatrixXd, Eigen::VectorXd>
32 mutable ClpSimplex model;
36 #else //HOPS_CLP_FOUND
42 throw std::runtime_error(
"HOPS did not find CLP during compilation.");
46 throw std::runtime_error(
"HOPS did not find CLP during compilation.");
50 throw std::runtime_error(
"HOPS did not find CLP during compilation.");
54 throw std::runtime_error(
"HOPS did not find CLP during compilation.");
58 throw std::runtime_error(
"HOPS did not find CLP during compilation.");
61 std::tuple<Eigen::MatrixXd, Eigen::VectorXd>
63 throw std::runtime_error(
"HOPS did not find CLP during compilation.");
68 #endif //HOPS_CLP_FOUND
69 #endif //HOPS_LINEARPROGRAMCLPIMPL_HPP
std::tuple< Eigen::MatrixXd, Eigen::VectorXd > removeRedundantConstraints(double) override
Removes redundant constraints and returns system matrices. Changes to the system matrices are reflect...
Definition: LinearProgramClpImpl.hpp:49
Definition: LinearProgram.hpp:9
Eigen::VectorXd b
Definition: LinearProgram.hpp:54
Definition: LinearProgramSolution.hpp:9
LinearProgramSolution computeChebyshevCenter() const override
Definition: LinearProgramClpImpl.hpp:53
Definition: LinearProgramClpImpl.hpp:39
std::vector< long > computeUnconstrainedDimensions() const override
Definition: LinearProgramClpImpl.hpp:57
LinearProgramSolution solve(const Eigen::VectorXd &) const override
Definition: LinearProgramClpImpl.hpp:45
LinearProgramClpImpl(const Eigen::MatrixXd &A, const Eigen::VectorXd &b)
Definition: LinearProgramClpImpl.hpp:41
Eigen::MatrixXd A
Definition: LinearProgram.hpp:53
Definition: CsvReader.hpp:8
std::tuple< Eigen::MatrixXd, Eigen::VectorXd > addBoxConstraintsToUnconstrainedDimensions(double, double) override
Adds box constraints to unconstrained dimensions and returns system matrices. Changes to the system m...
Definition: LinearProgramClpImpl.hpp:62