hops
SbmlModel.hpp
Go to the documentation of this file.
1 #ifndef HOPS_SBMLMODEL_HPP
2 #define HOPS_SBMLMODEL_HPP
3 
4 #include <string>
5 #include <vector>
6 
7 namespace hops {
8  template<typename MatrixType, typename VectorType>
9  class SbmlModel {
10  public:
11 
13  return constraintMatrix;
14  }
15 
16  void setConstraintMatrix(MatrixType newConstraintMatrix) {
17  SbmlModel::constraintMatrix = newConstraintMatrix;
18  }
19 
21  return constraintVector;
22  }
23 
24  void setConstraintVector(VectorType newConstraintVector) {
25  SbmlModel::constraintVector = newConstraintVector;
26  }
27 
29  return lowerBounds;
30  }
31 
32  void setLowerBounds(VectorType newLowerBounds) {
33  SbmlModel::lowerBounds = newLowerBounds;
34  }
35 
37  return upperBounds;
38  }
39 
40  void setUpperBounds(VectorType newUpperBounds) {
41  SbmlModel::upperBounds = newUpperBounds;
42  }
43 
44  [[nodiscard]] const std::vector<std::string> &getParameterNames() const {
45  return parameterNames;
46  }
47 
48  void setParameterNames(const std::vector<std::string> &newParameterNames) {
49  SbmlModel::parameterNames = newParameterNames;
50  }
51 
53  return stoichiometry;
54  }
55 
56  void setStoichiometry(MatrixType stoichiometry) {
57  SbmlModel::stoichiometry = stoichiometry;
58  }
59 
60 
61  private:
62  MatrixType stoichiometry;
63  MatrixType constraintMatrix;
64  VectorType constraintVector;
65  VectorType lowerBounds;
66  VectorType upperBounds;
67  std::vector<std::string> parameterNames;
68  };
69 }
70 #endif //HOPS_SBMLMODEL_HPP
hops::SbmlModel::getConstraintMatrix
MatrixType getConstraintMatrix() const
Definition: SbmlModel.hpp:12
hops::MatrixType
Eigen::MatrixXd MatrixType
Definition: MatrixType.hpp:7
hops::SbmlModel
Definition: SbmlModel.hpp:9
hops::SbmlModel::setUpperBounds
void setUpperBounds(VectorType newUpperBounds)
Definition: SbmlModel.hpp:40
hops::SbmlModel::getConstraintVector
VectorType getConstraintVector() const
Definition: SbmlModel.hpp:20
hops::SbmlModel::setConstraintVector
void setConstraintVector(VectorType newConstraintVector)
Definition: SbmlModel.hpp:24
hops::SbmlModel::getLowerBounds
VectorType getLowerBounds() const
Definition: SbmlModel.hpp:28
hops::SbmlModel::getUpperBounds
VectorType getUpperBounds() const
Definition: SbmlModel.hpp:36
hops::SbmlModel::getStoichiometry
MatrixType getStoichiometry() const
Definition: SbmlModel.hpp:52
hops::SbmlModel::setParameterNames
void setParameterNames(const std::vector< std::string > &newParameterNames)
Definition: SbmlModel.hpp:48
hops::SbmlModel::getParameterNames
const std::vector< std::string > & getParameterNames() const
Definition: SbmlModel.hpp:44
hops::SbmlModel::setLowerBounds
void setLowerBounds(VectorType newLowerBounds)
Definition: SbmlModel.hpp:32
hops
Definition: CsvReader.hpp:8
hops::SbmlModel::setStoichiometry
void setStoichiometry(MatrixType stoichiometry)
Definition: SbmlModel.hpp:56
hops::VectorType
Eigen::VectorXd VectorType
Definition: VectorType.hpp:7
hops::SbmlModel::setConstraintMatrix
void setConstraintMatrix(MatrixType newConstraintMatrix)
Definition: SbmlModel.hpp:16