OMDc  2.0.0
created from 2320578 on deploy-documentation
DataStore.hpp
1 // Copyright 2026 Lucas Mieg, Martin Moennigmann
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef __INC_OMDC_DATA_STORE__
16 #define __INC_OMDC_DATA_STORE__
17 
18 #include "OMD/DataStore.hpp"
19 
46 namespace OMDc {
47 
81 class DataStore : public OMD::DataStore
82 {
83 public:
85  const Eigen::Index p;
86 private:
88  const Eigen::Ref<const Eigen::MatrixXd> U;
90  const Eigen::MatrixXd Z;
91 public:
96  DataStore( const Eigen::Ref<const Eigen::MatrixXd> S,
97  const Eigen::Ref<const Eigen::MatrixXd> U,
98  Eigen::Index r);
113  void updateSystemMatrices(const Eigen::Ref<const Eigen::MatrixXd> L);
122  const Eigen::MatrixXd getInputMatrix() const;
140  const Eigen::VectorXd getInitialState() const;
141 };
142 
143 };
144 
145 #endif
OMD::DataStore
interface to internal representation of OMD data
Definition: DataStore.hpp:25
OMDc
Optimal Mode Decomposition for control.
Definition: DataStore.hpp:46
OMDc::DataStore::updateSystemMatrices
void updateSystemMatrices(const Eigen::Ref< const Eigen::MatrixXd > L)
recomputes internal representations for given modes
OMDc::DataStore::p
const Eigen::Index p
number of inputs
Definition: DataStore.hpp:85
OMDc::DataStore
interface to internal representation of OMDc data
Definition: DataStore.hpp:82
OMDc::DataStore::getInputMatrix
const Eigen::MatrixXd getInputMatrix() const
input matrix of linear system from internal representation
OMDc::DataStore::getInitialState
const Eigen::VectorXd getInitialState() const
computes intial state from identified system
OMD::DataStore::r
const Eigen::Index r
rank of reduced space
Definition: DataStore.hpp:30
OMD::DataStore::S
const Eigen::Ref< const Eigen::MatrixXd > S
reference to snapshots (no data is stored)
Definition: DataStore.hpp:35
OMDc::DataStore::DataStore
DataStore(const Eigen::Ref< const Eigen::MatrixXd > S, const Eigen::Ref< const Eigen::MatrixXd > U, Eigen::Index r)
standard contructor from snapshots and inputs
{}