hops
LinearProgramSolution.hpp
Go to the documentation of this file.
1 #ifndef HOPS_LINEARPROGRAMSOLUTION_HPP
2 #define HOPS_LINEARPROGRAMSOLUTION_HPP
3 
4 #include <Eigen/Core>
5 #include <utility>
7 
8 namespace hops {
11  : objectiveValue(objectiveValue), optimalParameters(std::move(solution)), status(status) {}
12 
13  bool operator==(const LinearProgramSolution &rhs) const {
14  return objectiveValue == rhs.objectiveValue &&
16  status == rhs.status;
17  }
18 
19  bool operator!=(const LinearProgramSolution &rhs) const {
20  return !(rhs == *this);
21  }
22 
24  Eigen::VectorXd optimalParameters;
26  };
27 }
28 
29 #endif //HOPS_LINEARPROGRAMSOLUTION_HPP
hops::LinearProgramSolution::status
LinearProgramStatus status
Definition: LinearProgramSolution.hpp:25
hops::LinearProgramSolution::LinearProgramSolution
LinearProgramSolution(double objectiveValue, Eigen::VectorXd solution, LinearProgramStatus status)
Definition: LinearProgramSolution.hpp:10
hops::LinearProgramSolution
Definition: LinearProgramSolution.hpp:9
hops::LinearProgramSolution::optimalParameters
Eigen::VectorXd optimalParameters
Definition: LinearProgramSolution.hpp:24
hops::LinearProgramSolution::operator!=
bool operator!=(const LinearProgramSolution &rhs) const
Definition: LinearProgramSolution.hpp:19
hops::LinearProgramSolution::operator==
bool operator==(const LinearProgramSolution &rhs) const
Definition: LinearProgramSolution.hpp:13
hops
Definition: CsvReader.hpp:8
hops::LinearProgramStatus
LinearProgramStatus
Definition: LinearProgramStatus.hpp:5
hops::LinearProgramSolution::objectiveValue
double objectiveValue
Definition: LinearProgramSolution.hpp:23
LinearProgramStatus.hpp