OMDc  1.0.0
created from 0b26fa0 on deploy-documentation
Functor.hpp
1 // Copyright 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_FUNCTOR__
16 #define __INC_OMDC_FUNCTOR__
17 
18 #include "DataStore.hpp"
19 
20 #include <functional>
21 
22 namespace OMDc
23 {
26  {
27  private:
29  DataStore &_DS;
30  public:
33  inline const Eigen::Index costDim() {return 1;};
41  int cost(Eigen::VectorXd& fvec, const Eigen::MatrixXd& L) const;
46  double derivative(Eigen::MatrixXd& dF,const Eigen::MatrixXd& L) const;
47  };
48 };
49 
50 #endif
interface to internal representation of OMDc data
Definition: DataStore.hpp:58
Functor for linesearch along geodesic.
Definition: Functor.hpp:26
double derivative(Eigen::MatrixXd &dF, const Eigen::MatrixXd &L) const
componentwise derivative w.r.t. given modes
LineSearchFunctor(DataStore &DS)
standard constructor
const Eigen::Index costDim()
dimension of the cost function vector
Definition: Functor.hpp:33
int cost(Eigen::VectorXd &fvec, const Eigen::MatrixXd &L) const
evaluates cost function at bases
Optimal Mode Decomposition for control.
Definition: DataStore.hpp:43

Automatic Control and Systems Theory, Ruhr-Univeristy Bochum