roadrunner  2.6.0
Fast simulator for SBML models
FixedPointIteration.h
1 //
2 // Created by Ciaran on 26/02/2021.
3 //
4 
5 #ifndef ROADRUNNER_FIXEDPOINTITERATION_H
6 #define ROADRUNNER_FIXEDPOINTITERATION_H
7 
8 #include "KinsolSteadyStateSolver.h"
9 #include <kinsol/kinsol.h> /* access to KINSOL func., consts. */
10 #include <nvector/nvector_serial.h> /* access to serial N_Vector */
11 #include <sundials/sundials_types.h> /* defs. of realtype, sunindextype */
12 
13 namespace rr {
14 
18  class RR_DECLSPEC FixedPointIteration : public KinsolSteadyStateSolver {
19 
20  public:
22 
23  explicit FixedPointIteration(ExecutableModel* executableModel) ;
24 
25  ~FixedPointIteration() noexcept override;
30  std::string getName() const override;
31 
36  std::string getDescription() const override;
37 
42  std::string getHint() const override;
43 
44  double solve() override;
45 
46  public:
47 
48  void createKinsol() override;
49 
50  void freeKinsol() override;
51 
52  void updateKinsol() override;
53 
54  void resetSettings() override;
55 
56  };
57 
58 }
59 
60 
61 #endif //ROADRUNNER_FIXEDPOINTITERATION_H
Base class for all code generation systems; allows compiling and evaluating the model.
Definition: rrExecutableModel.h:118
Implementation of the fixed point iteration form of the kinsol steady state solver.
Definition: FixedPointIteration.h:18
base class to steady state solvers from the Sundials package.
Definition: KinsolSteadyStateSolver.h:44
KinsolSteadyStateSolver()=default
The default constructor for constructing without a model.