The Conley-Morse Graphs Software
m_inf.h
Go to the documentation of this file.
1/////////////////////////////////////////////////////////////////////////////
2///
3/// @file m_inf.h
4///
5/// The time-t map for an infectious disease model.
6/// This map defines a sample time-t map for an ODE.
7///
8/// @author Pawel Pilarczyk
9///
10/////////////////////////////////////////////////////////////////////////////
11
12// Copyright (C) 1997-2014 by Pawel Pilarczyk.
13//
14// This file is part of my research software package. This is free software:
15// you can redistribute it and/or modify it under the terms of the GNU
16// General Public License as published by the Free Software Foundation,
17// either version 3 of the License, or (at your option) any later version.
18//
19// This software is distributed in the hope that it will be useful,
20// but WITHOUT ANY WARRANTY; without even the implied warranty of
21// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22// GNU General Public License for more details.
23//
24// You should have received a copy of the GNU General Public License
25// along with this software; see the file "license.txt". If not,
26// please, see <https://www.gnu.org/licenses/>.
27
28// Started on March 13, 2013. Last revision: March 13, 2013.
29
30
31#ifndef _CMGRAPHS_INF_H_
32#define _CMGRAPHS_INF_H_
33
34
35// include local header files
36#include "maptype.h"
37#include "odetimet.h"
38
39
40// --------------------------------------------------
41// ----------------- the time-t map -----------------
42// --------------------------------------------------
43
44/// This class defines the time-t map for the equations.
45class MapInf: public MapOdeTimeT
46{
47public:
48 /// The constructor of a map object.
49 MapInf ();
50
51}; /* class MapInf */
52
53// --------------------------------------------------
54
55// Following (7) from the notes from Oct 13, 2013.
58#ifdef _CAPD29_
59 "var:i1,v1,i2,v2,"
60 "pa,pb,pc,pd,pe,pf,pg,ph,pi,pj,pk,pl,pm,pn,po,pp;fun:"
61#else
62 "par:pa,pb,pc,pd,pe,pf,pg,ph,pi,pj,pk,pl,pm,pn,po,pp;"
63 "var:i1,v1,i2,v2;fun:"
64#endif
65// "((pe*((pa-i1)-((1-pm)*v1))*i1)-((pg+pi+pc)*i1))+(pd*i2),"
66// "(((po*(pa-i1))-(pm*pe*v1*i1))-((pg+pk+po+pc)*v1))+(pd*v2),"
67// "((pf*((pb-i2)-((1-pn)*v2))*i2)-((ph+pj+pd)*i2))+(pc*i1),"
68// "(((pp*(pb-i2))-(pn*pf*v2*i2))-((ph+pl+pp+pd)*v2))+(pc*v1);",
69 "((pe*((pa-i1)-((1-pm)*v1))*i1)-((pg+pi+pc)*i1))+("
71 "pc"
72#else
73 "pd"
74#endif
75 "*i2),"
76 "(((po*(pa-i1))-(pm*pe*v1*i1))-((pg+pk+po+pc)*v1))+("
78 "pc"
79#else
80 "pd"
81#endif
82 "*v2),"
83 "(("
84#ifdef BETA1_EQ_BETA2
85 "pe"
86#else
87 "pf"
88#endif
89 "*((pb-i2)-((1-pn)*v2))*i2)-((ph+pj+"
91 "pc"
92#else
93 "pd"
94#endif
95 ")*i2))+(pc*i1),"
96 "(((pp*(pb-i2))-(pn*"
97#ifdef BETA1_EQ_BETA2
98 "pe"
99#else
100 "pf"
101#endif
102 "*v2*i2))-((ph+pl+pp+"
103#ifdef ALPHA1_EQ_ALPHA2
104 "pc"
105#else
106 "pd"
107#endif
108 ")*v2))+(pc*v1);",
109 3, 1.0/128, 10)
110{
111 return;
112} /* MapInf::MapInf */
113
114
115#endif // _CMGRAPHS_INF_H_
116
This class defines the time-t map for the equations.
Definition: m_inf.h:46
MapInf()
The constructor of a map object.
Definition: m_inf.h:56
This class defines a map for the nonlinear density dependent overcompensatory Leslie population model...
Definition: odetimet.h:82
An abstract map type.
A generic method for computing a time-t map for ODEs.
#define ALPHA1_EQ_ALPHA2
Definition: p_inf.h:97
#define BETA1_EQ_BETA2
Definition: p_inf.h:98