Ipopt  3.11.9
SensAlgorithm.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-06
6 
7 #ifndef __SENSALGORITHM_HPP__
8 #define __SENSALGORITHM_HPP__
9 
10 #include "IpAlgStrategy.hpp"
11 #include "SensStepCalc.hpp"
12 #include "SensMeasurement.hpp"
13 #include "SensSchurDriver.hpp"
14 #include "SensUtils.hpp"
15 
16 namespace Ipopt
17 {
18 
20  {
24  public:
25 
26  SensAlgorithm(std::vector< SmartPtr<SchurDriver> >& driver_vec,
28  SmartPtr<Measurement> measurement,
29  Index n_sens_steps);
30 
31  virtual ~SensAlgorithm();
32 
33  virtual bool InitializeImpl(const OptionsList& options,
34  const std::string& prefix);
35 
40 
41  private:
42 
43  std::vector< SmartPtr<SchurDriver> > driver_vec_;
46  Index n_sens_steps_; // I think it is useful to state this number explicitly in the constructor and here.
47 
48  };
49 }
50 
51 #endif
SensSchurDriver.hpp
Ipopt::SensAlgorithm::sens_step_calc_
SmartPtr< SensitivityStepCalculator > sens_step_calc_
Definition: SensAlgorithm.hpp:44
SensUtils.hpp
Ipopt::SensAlgorithm::driver_vec_
std::vector< SmartPtr< SchurDriver > > driver_vec_
Definition: SensAlgorithm.hpp:43
Ipopt::SensAlgorithm::n_sens_steps_
Index n_sens_steps_
Definition: SensAlgorithm.hpp:46
Ipopt
Definition: matlabjournal.hpp:14
Ipopt::Index
int Index
Type of all indices of vectors, matrices etc.
Definition: IpTypes.hpp:19
Ipopt::SmartPtr
Template class for Smart Pointers.
Definition: IpSmartPtr.hpp:183
Ipopt::SensAlgorithm
Definition: SensAlgorithm.hpp:20
Ipopt::SensAlgorithm::measurement_
SmartPtr< Measurement > measurement_
Definition: SensAlgorithm.hpp:45
Ipopt::SensAlgorithm::SensAlgorithm
SensAlgorithm(std::vector< SmartPtr< SchurDriver > > &driver_vec, SmartPtr< SensitivityStepCalculator > sens_step_calc, SmartPtr< Measurement > measurement, Index n_sens_steps)
This is the interface for the actual controller.
Ipopt::SensAlgorithm::Run
SensAlgorithmExitStatus Run()
Main loop: Wait for new measurement, Get new step, maybe deal with bounds, see to it that everything ...
Ipopt::SensAlgorithm::~SensAlgorithm
virtual ~SensAlgorithm()
Ipopt::AlgorithmStrategyObject
This is the base class for all algorithm strategy objects.
Definition: IpAlgStrategy.hpp:36
IpAlgStrategy.hpp
SensStepCalc.hpp
Ipopt::SensAlgorithmExitStatus
SensAlgorithmExitStatus
This header file provides some definitions used throughout the program.
Definition: SensUtils.hpp:22
Ipopt::OptionsList
This class stores a list of user set options.
Definition: IpOptionsList.hpp:33
SensMeasurement.hpp
Ipopt::SensAlgorithm::InitializeImpl
virtual bool InitializeImpl(const OptionsList &options, const std::string &prefix)
Implementation of the initialization method that has to be overloaded by for each derived class.