Ipopt Documentation  
SensMeasurement.hpp
Go to the documentation of this file.
1 // Copyright 2009, 2011 Hans Pirnay
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // Date : 2009-05-16
6 
7 #ifndef __AS_MEASUREMENT_HPP__
8 #define __AS_MEASUREMENT_HPP__
9 
10 #include "IpReferenced.hpp"
11 #include "IpDenseVector.hpp"
12 #include "IpIteratesVector.hpp"
13 
14 namespace Ipopt
15 {
16 
18 {
24 public:
25 
27  { }
28 
29  virtual ~Measurement()
30  { }
31 
37  virtual std::vector<Index> GetInitialEqConstraints() = 0;
38 
44  Index measurement_number
45  ) = 0;
46 
48  virtual void SetSolution(
49  Index measurement_number,
51  ) = 0;
52 };
53 
54 }
55 
56 #endif
Measurement()
This class provides an abstraction for the measurements of the states coming in and the solutions of ...
virtual std::vector< Index > GetInitialEqConstraints()=0
This function returns a std::vector holding the indices in IteratesVector of the equations that are t...
virtual void SetSolution(Index measurement_number, SmartPtr< IteratesVector > sol)=0
This function does whatever the measurement machine does with the solution of the SensAlgorithm.
virtual SmartPtr< DenseVector > GetMeasurement(Index measurement_number)=0
This function returns delta_u.
Storing the reference count of all the smart pointers that currently reference it.
Template class for Smart Pointers.
Definition: IpSmartPtr.hpp:165
#define SIPOPTLIB_EXPORT
Definition: config.h:216
This file contains a base class for all exceptions and a set of macros to help with exceptions.
ipindex Index
Type of all indices of vectors, matrices etc.
Definition: IpTypes.hpp:20