Kabanikhin S. I., Krivorotko O. I.

Slides:



Advertisements
Similar presentations
Experiments and Variables
Advertisements

Fast Algorithms For Hierarchical Range Histogram Constructions
Optimization methods Review
PROCESS INTEGRATED DESIGN WITHIN A MODEL PREDICTIVE CONTROL FRAMEWORK Mario Francisco, Pastora Vega, Omar Pérez University of Salamanca – Spain University.
Aspects of Conditional Simulation and estimation of hydraulic conductivity in coastal aquifers" Luit Jan Slooten.
Claudia Lizet Navarro Hernández PhD Student Supervisor: Professor S.P.Banks April 2004 Monash University Australia April 2004 The University of Sheffield.
INTEGRATED DESIGN OF WASTEWATER TREATMENT PROCESSES USING MODEL PREDICTIVE CONTROL Mario Francisco, Pastora Vega University of Salamanca – Spain European.
458 Interlude (Optimization and other Numerical Methods) Fish 458, Lecture 8.
NORM BASED APPROACHES FOR AUTOMATIC TUNING OF MODEL BASED PREDICTIVE CONTROL Pastora Vega, Mario Francisco, Eladio Sanz University of Salamanca – Spain.
Population New Population Selection Crossover and Mutation Insert When the new population is full repeat Generational Algorithm.
Design of Curves and Surfaces by Multi Objective Optimization Rony Goldenthal Michel Bercovier School of Computer Science and Engineering The Hebrew University.

Maximum likelihood (ML)
Radial Basis Function Networks
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
Graph-based consensus clustering for class discovery from gene expression data Zhiwen Yum, Hau-San Wong and Hongqiang Wang Bioinformatics, 2007.
On comparison of different approaches to the stability radius calculation Olga Karelkina Department of Mathematics University of Turku MCDM 2011.
CJT 765: Structural Equation Modeling Class 7: fitting a model, fit indices, comparingmodels, statistical power.
Boltzmann Machine (BM) (§6.4) Hopfield model + hidden nodes + simulated annealing BM Architecture –a set of visible nodes: nodes can be accessed from outside.
1 Modelling the interactions between HIV and the immune system in hmans R. Ouifki and D. Mbabazi 10/21/2015AIMS.
Applying Genetic Algorithm to the Knapsack Problem Qi Su ECE 539 Spring 2001 Course Project.
SUPA Advanced Data Analysis Course, Jan 6th – 7th 2009 Advanced Data Analysis for the Physical Sciences Dr Martin Hendry Dept of Physics and Astronomy.
Evolution strategies Luis Martí DEE/PUC-Rio. ES quick overview Developed: Germany in the 1970’s Early names: I. Rechenberg, H.-P. Schwefel Typically applied.
Eurostat Weighting and Estimation. Presented by Loredana Di Consiglio Istituto Nazionale di Statistica, ISTAT.
Kanpur Genetic Algorithms Laboratory IIT Kanpur 25, July 2006 (11:00 AM) Multi-Objective Dynamic Optimization using Evolutionary Algorithms by Udaya Bhaskara.
Genetic Algorithms CSCI-2300 Introduction to Algorithms
Variational data assimilation: examination of results obtained by different combinations of numerical algorithms and splitting procedures Zahari Zlatev.
CHAPTER 10 Widrow-Hoff Learning Ming-Feng Yeh.
Evolution strategies Chapter 4. A.E. Eiben and J.E. Smith, Introduction to Evolutionary Computing Evolution Strategies ES quick overview Developed: Germany.
Chapter 2-OPTIMIZATION G.Anuradha. Contents Derivative-based Optimization –Descent Methods –The Method of Steepest Descent –Classical Newton’s Method.
Diversity Loss in General Estimation of Distribution Algorithms J. L. Shapiro PPSN (Parallel Problem Solving From Nature) ’06 BISCuit 2 nd EDA Seminar.
September 28, 2000 Improved Simultaneous Data Reconciliation, Bias Detection and Identification Using Mixed Integer Optimization Methods Presented by:
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 32.
1 Comparative Study of two Genetic Algorithms Based Task Allocation Models in Distributed Computing System Oğuzhan TAŞ 2005.
Computational Fluid Dynamics Lecture II Numerical Methods and Criteria for CFD Dr. Ugur GUVEN Professor of Aerospace Engineering.
CWR 6536 Stochastic Subsurface Hydrology Optimal Estimation of Hydrologic Parameters.
Chapter 12 Case Studies Part B. Control System Design.
MathematicalMarketing Slide 3c.1 Mathematical Tools Chapter 3: Part c – Parameter Estimation We will be discussing  Nonlinear Parameter Estimation  Maximum.
Power Magnetic Devices: A Multi-Objective Design Approach
Genetic Algorithms.
Mathematics.
Chapter 7. Classification and Prediction
Bulgarian Academy of Sciences
CJT 765: Structural Equation Modeling
A Brief Introduction of RANSAC
Bin Packing Optimization
Process modelling and optimization aid
Optimal control T. F. Edgar Spring 2012.
Going Backwards In The Procedure and Recapitulation of System Identification By Ali Pekcan 65570B.
Class Notes 19: Numerical Methods (2/2)
Unfolding Problem: A Machine Learning Approach
Modelling data and curve fitting
Estimating Networks With Jumps
Where did we stop? The Bayes decision rule guarantees an optimal classification… … But it requires the knowledge of P(ci|x) (or p(x|ci) and P(ci)) We.
Multi-Objective Optimization
Sorting … and Insertion Sort.
Genetic Algorithms CSCI-2300 Introduction to Algorithms
Adaptive Perturbation Theory: QM and Field Theory
6.5 Taylor Series Linearization
5.2 Least-Squares Fit to a Straight Line
○ Hisashi Shimosaka (Doshisha University)
Boltzmann Machine (BM) (§6.4)
The loss function, the normal equation,
Mathematical Foundations of BME Reza Shadmehr
Artificial Intelligence CIS 342
Unfolding with system identification
Chapter 4 . Trajectory planning and Inverse kinematics
Numerical Modeling Ramaz Botchorishvili
Pivoting, Perturbation Analysis, Scaling and Equilibration
Presentation transcript:

Kabanikhin S. I., Krivorotko O. I. XIII International Asian School-seminar “Problems of complex system’s optimization” Yermolenko D.V., Kabanikhin S. I., Krivorotko O. I. NUMERICAL METHODS FOR SOLVING OPTIMIZATION PROBLEMS FOR THE MATHEMATICAL MODEL OF HIV DYNAMICS Novosibirsk, 2017

Motivation HIV was discovered independently in 1983 in France and in the USA HIV in the world There are 31-35 million HIV-infected people in the world As of 01.01.2017, there were > 1.5 million people HIV infected in Russia Ineffective, non-optimal treatment Standard Treatment Plan 1

A brief historical overview A.S. Perelson, P.W. Nelson, 1999 Research of different HIV models. Solution of direct problems. Derivation and investigation of stable states B.M. Adams, H.T. Banks et al., 2005 Definition of two parameters for HIV model, derivation of the suboptimal control of treatment G. Bocharov et al., 2015 Determination of treatment functions for mathematical models of HIV dynamics, which consist of 4 equations K. Hattaf∗, M. Rachik et al, 2009 Determination of optimal treatment control for mathematical models of Tuberculosis F. Castiglione∗, B. Piccoli et al, 2007 Determination of optimal treatment control for mathematical models of infectious disease Objective: find the numerical solution of the parameters identification problem for the mathematical model of HIV dynamics and select the optimal control of treatment for a single particular patient.

Mathematical model of HIV dynamic with treatment B.M. Adams, H.T. Banks et al., 2005 𝑻 𝟏 Uninfected CD4 Т-lymphocytes 𝑻 𝟏 ∗ Infected CD4 Т-lymphocytes 𝑻 𝟐 Uninfected macrophages 𝑻 𝟐 ∗ Infected macrophages 𝑽 Free virus 𝑬 Immune effectors (CD-cells)

Mathematical model of HIV dynamic with treatment B.M. Adams, H.T. Banks et al., 2005 is a treatment parameter 𝑻 𝟏 Uninfected CD4 Т-lymphocytes 𝑻 𝟏 ∗ Infected CD4 Т-lymphocytes 𝑻 𝟐 Uninfected macrophages 𝑻 𝟐 ∗ Infected macrophages 𝑽 Free virus 𝑬 Immune effectors (CD-cells)

Mathematical model of HIV dynamic with treatment B.M. Adams, H.T. Banks et al., 2005 19 parameters 𝑻 𝟏 Uninfected CD4 Т-lymphocytes 𝑻 𝟏 ∗ Infected CD4 Т-lymphocytes 𝑻 𝟐 Uninfected macrophages 𝑻 𝟐 ∗ Infected macrophages 𝑽 Free virus 𝑬 Immune effectors (CD-cells)

Mathematical model of HIV dynamic with treatment B.M. Adams, H.T. Banks et al., 2005 19 parameters D.S. Callaway, A.S. Perelson. HIV-1 infection and low steady state viral loads, Bull. Math. Biol. V. 64 (2001) P. 29–64. Modifiable parameters 𝒌 𝟏 Infection rate of CD4 T-lymphocytes 𝒌 𝟐 Infection rate of macrophages 𝝀 𝟏 Target cell CD4 T-lymphocytes production (source) rate 𝝀 𝟐 Target cell macrophages production (source) rate 𝑻 𝟏 Uninfected CD4 Т-lymphocytes 𝑻 𝟏 ∗ Infected CD4 Т-lymphocytes 𝑻 𝟐 Uninfected macrophages 𝑻 𝟐 ∗ Infected macrophages 𝑽 Free virus 𝑬 Immune effectors (CD-cells)

Inverse problem 𝑑𝑈 𝑑𝑡 =𝑃 𝑈 𝑡 , 𝑝,𝜀 , 𝑡∈ 0,𝑇 𝑈 0 = 𝑈 0 (𝟏) Here 𝑈= 𝑇 1 , 𝑇 2 , 𝑇 1 ∗ , 𝑇 2 ∗ ,𝑉,𝐸 𝑇 𝑝= 𝑘 1 , 𝑘 2 , 𝜆 1 , 𝜆 2 𝑇 𝑈 0 = 5∗ 10 5 , 4800, 5000, 10, 10 4 ,15 𝑇 We investigate the model without treatment 𝜺=𝟎. Partition of domain (𝟎, 𝑻): 𝑡 𝑗 =𝑗 ℎ 𝑡 , 𝑗=0,…, 𝑁 𝑡 , ℎ 𝑡 = 𝑇 𝑁 𝑡 , 𝑇=100, 𝑁 𝑡 =10000 Additional measurements of concentrations at fixed times 𝒕 𝒌 , 𝒌=𝟏,…,𝑲: 𝑇 1 𝑡 𝑘 + 𝑇 1 ∗ 𝑡 𝑘 = Φ 1 𝑡 𝑘 , 𝑉 𝑡 𝑘 = Φ 2 𝑡 𝑘 , 𝐸 𝑡 𝑘 = Φ 3 𝑡 𝑘 , (𝟐) The inverse problem (1) - (2) is determine by the vector of parameters p, if we know the measurements of the concentration (2) at fixed times: min 𝑝 𝐽 1 (𝑝) = 𝑘=1 𝐾 (( 𝑇 1 𝑡 𝑘 ;𝑝 + 𝑇 1 ∗ 𝑡 𝑘 ;𝑝 )− Φ 1 𝑡 𝑘 ) 2 + (𝑉 𝑡 𝑘 ;𝑝 − Φ 2 𝑡 𝑘 ) 2 + (𝐸 𝑡 𝑘 ;𝑝 − Φ 3 𝑡 𝑘 ) 2

The stability of the inverse problem Using the linearization and discretization algorithm, one can obtain a linearized inverse problem: 𝑨𝒒=𝚽 𝑨 𝒒+𝜹𝒒 =𝚽+𝜹𝚽. where 𝒒 – vector of model parameters, 𝚽 – additional information, 𝑨 – linearized matrix of inverse problem. We have an estimate for the relative error of the solution: 𝜹𝒒 𝒒 ≤𝑪𝒐𝒏𝒅 𝑨 𝜹𝚽 𝚽 , 𝑪𝒐𝒏𝒅 𝑨 = 𝝈 𝒎𝒂𝒙 𝝈 𝒎𝒊𝒏 .

The stability of the inverse problem Using the linearization and discretization algorithm, one can obtain a linearized inverse problem: 𝑨𝒒=𝚽 𝑨 𝒒+𝜹𝒒 =𝚽+𝜹𝚽. where 𝒒 – vector of model parameters, 𝚽 – additional information, 𝑨 – linearized matrix of inverse problem. We have an estimate for the relative error of the solution: 𝜹𝒒 𝒒 ≤𝑪𝒐𝒏𝒅 𝑨 𝜹𝚽 𝚽 , 𝑪𝒐𝒏𝒅 𝑨 = 𝝈 𝒎𝒂𝒙 𝝈 𝒎𝒊𝒏 . 𝒒 𝒆𝒙 = 𝝀 𝟏 𝒆𝒙 , 𝝀 𝟐 𝒆𝒙 , 𝒌 𝟏 𝒆𝒙 , 𝒌 𝟐 𝒆𝒙 𝑻 =( 𝟏𝟎 𝟒 , 𝟑𝟏.𝟗𝟖, 𝟖⋅ 𝟏𝟎 −𝟕 , 𝟖⋅ 𝟏𝟎 −𝟒 , 𝟏𝟎 −𝟒 ); 𝒒 𝟎 = 𝝀 𝟏 𝟎 , 𝝀 𝟐 𝟎 , 𝒌 𝟏 𝟎 , 𝒌 𝟐 𝟎 𝑻 =( 𝟒⋅𝟏𝟎 𝟒 , 𝟒𝟎, 𝟔⋅ 𝟏𝟎 −𝟕 , 𝟑⋅ 𝟏𝟎 −𝟒 ); 𝜎 1 ≈9.9⋅ 10 48 𝜎 2 ≈5.1⋅ 10 48 𝜎 3 ≈3.3⋅ 10 48 𝜎 4 ≈7.5⋅ 10 46 𝑪𝒐𝒏𝒅 𝑨 = 𝝈 𝟏 𝝈 𝟒 =𝟏.𝟑𝟐⋅ 𝟏𝟎 𝟐

1. CHOOSING THE INITIAL POPULATION: Genetic algorithm for solving an optimization problem min J(q) 1. CHOOSING THE INITIAL POPULATION: Choose arbitrary values of 𝑁 vectors of parameters 𝑞 𝑖 . For each 𝑞 𝑖 we count the misfit function 𝐽( 𝑞 𝑖 ).

1. CHOOSING THE INITIAL POPULATION: Genetic algorithm for solving an optimization problem min J(q) 1. CHOOSING THE INITIAL POPULATION: Choose arbitrary values of N vectors of parameters 𝑞 𝑖 . For each 𝑞 𝑖 we count the misfit function 𝐽( 𝑞 𝑖 ). 2. SELECTION: Choose 𝑁 pairs of parents. The probability that 𝑖-th member of the population fall into a pair can be calculated as follows 𝑷 𝒊 = 𝑱( 𝒒 𝒊 ) 𝒋=𝟏 𝑵 𝑱( 𝒒 𝒋 ) .

1. CHOOSING THE INITIAL POPULATION: Genetic algorithm for solving an optimization problem min J(q) 1. CHOOSING THE INITIAL POPULATION: Choose arbitrary values of 𝑁 vectors of parameters 𝑞 𝑖 . For each 𝑞 𝑖 we count the misfit function 𝐽( 𝑞 𝑖 ). 2. SELECTION: Choose 𝑁 pairs of parents. The probability that 𝑖-th member of the population fall into a pair can be calculated as follows 𝑷 𝒊 = 𝑱( 𝒒 𝒊 ) 𝒋=𝟏 𝑵 𝑱( 𝒒 𝒋 ) . 3. CROSSING: 𝑄 is random integer number from [1,𝐾], 𝑅 is a random integer (1 or 2). 𝒒 𝟏 𝒊 ,… 𝒒 𝒔 𝒊 ,| 𝒒 𝒔+𝟏 𝒊 …, 𝒒 𝑲 𝒊 + 𝒒 𝟏 𝒋 ,… 𝒒 𝒔 𝒋 ,| 𝒒 𝒔+𝟏 𝒋 …, 𝒒 𝑲 𝒋 𝑸=𝒔, 𝑹=𝟏 𝑸=𝒔, 𝑹=𝟐 𝒒 𝟏 𝒊 ,… 𝒒 𝒔 𝒊 ,| 𝒒 𝒔+𝟏 𝒋 …, 𝒒 𝑲 𝒋 𝒒 𝟏 𝒋 ,… 𝒒 𝒔 𝒋 ,| 𝒒 𝒔+𝟏 𝒊 …, 𝒒 𝑲 𝒊

1. CHOOSING THE INITIAL POPULATION: Genetic algorithm for solving an optimization problem min J(q) 1. CHOOSING THE INITIAL POPULATION: Choose arbitrary values of 𝑁 vectors of parameters 𝑞 𝑖 . For each 𝑞 𝑖 we count the misfit function 𝐽( 𝑞 𝑖 ). 2. SELECTION: Choose 𝑁 pairs of parents. The probability that 𝑖-th member of the population fall into a pair can be calculated as follows 𝑷 𝒊 = 𝑱( 𝒒 𝒊 ) 𝒋=𝟏 𝑵 𝑱( 𝒒 𝒋 ) . 3. CROSSING: 𝑄 is random integer number from [1,𝐾], 𝑅 is a random integer (1 or 2). 𝒒 𝟏 𝒊 ,… 𝒒 𝒔 𝒊 ,| 𝒒 𝒔+𝟏 𝒊 …, 𝒒 𝑲 𝒊 + 𝒒 𝟏 𝒋 ,… 𝒒 𝒔 𝒋 ,| 𝒒 𝒔+𝟏 𝒋 …, 𝒒 𝑲 𝒋 𝑸=𝒔, 𝑹=𝟏 𝑸=𝒔, 𝑹=𝟐 𝒒 𝟏 𝒊 ,… 𝒒 𝒔 𝒊 ,| 𝒒 𝒔+𝟏 𝒋 …, 𝒒 𝑲 𝒋 𝒒 𝟏 𝒋 ,… 𝒒 𝒔 𝒋 ,| 𝒒 𝒔+𝟏 𝒊 …, 𝒒 𝑲 𝒊 4. MUTATION: Make random changes in the posterity, i.e. Choose a random volume of descendants, to which the mutation will be applied. Then we choose random item numbers of descendants that will mutate. For each mutating descendant we choose random volume of mutating elements. Then we choose random item numbers of mutating element and replace each element to a new random value from the allowable period.

1. CHOOSING THE INITIAL POPULATION: Genetic algorithm for solving an optimization problem min J(q) 1. CHOOSING THE INITIAL POPULATION: Choose arbitrary values of 𝑁 vectors of parameters 𝑞 𝑖 . For each 𝑞 𝑖 we count the misfit function 𝐽( 𝑞 𝑖 ). 2. SELECTION: Choose 𝑁 pairs of parents. The probability that 𝑖-th member of the population fall into a pair can be calculated as follows 𝑷 𝒊 = 𝑱( 𝒒 𝒊 ) 𝒋=𝟏 𝑵 𝑱( 𝒒 𝒋 ) . 5. FORMATION OF A NEW GENERATION: Choose the member that has the lowest value of the functional 𝐽( 𝑞 𝑖 ). Choose a few "lucky ones" , who have bigger values of 𝐽, but they will bring diversity in subsequent generations. 3. CROSSING: 𝑄 is random integer number from [1,𝐾], 𝑅 is a random integer (1 or 2). 𝒒 𝟏 𝒊 ,… 𝒒 𝒔 𝒊 ,| 𝒒 𝒔+𝟏 𝒊 …, 𝒒 𝑲 𝒊 + 𝒒 𝟏 𝒋 ,… 𝒒 𝒔 𝒋 ,| 𝒒 𝒔+𝟏 𝒋 …, 𝒒 𝑲 𝒋 𝑸=𝒔, 𝑹=𝟏 𝑸=𝒔, 𝑹=𝟐 𝒒 𝟏 𝒊 ,… 𝒒 𝒔 𝒊 ,| 𝒒 𝒔+𝟏 𝒋 …, 𝒒 𝑲 𝒋 𝒒 𝟏 𝒋 ,… 𝒒 𝒔 𝒋 ,| 𝒒 𝒔+𝟏 𝒊 …, 𝒒 𝑲 𝒊 4. MUTATION: Make random changes in the posterity, i.e. Choose a random volume of descendants, to which the mutation will be applied. Then we choose random item numbers of descendants that will mutate. For each mutating descendant we choose random volume of mutating elements. Then we choose random item numbers of mutating element and replace each element to a new random value from the allowable period.

1. CHOOSING THE INITIAL POPULATION: Genetic algorithm for solving an optimization problem min J(q) 1. CHOOSING THE INITIAL POPULATION: Choose arbitrary values of 𝑁 vectors of parameters 𝑞 𝑖 . For each 𝑞 𝑖 we count the misfit function 𝐽( 𝑞 𝑖 ). 6. CHECK THE EXIT CONDITIONS: The lowest value of the misfit function 𝐽 𝑞 𝑖 less then ∆= 10 −3 . The smallest value of the misfit function from population changes less than 10 −8 within 500 consecutive iterations. 2. SELECTION: Choose 𝑁 pairs of parents. The probability that 𝑖-th member of the population fall into a pair can be calculated as follows 𝑷 𝒊 = 𝑱( 𝒒 𝒊 ) 𝒋=𝟏 𝑵 𝑱( 𝒒 𝒋 ) . 5. FORMATION OF A NEW GENERATION: Choose the member that has the lowest value of the functional 𝐽( 𝑞 𝑖 ). Choose a few "lucky ones" , who have bigger values of 𝐽, but they will bring diversity in subsequent generations. 3. CROSSING: 𝑄 is random integer number from [1,𝐾], 𝑅 is a random integer (1 or 2). 𝒒 𝟏 𝒊 ,… 𝒒 𝒔 𝒊 ,| 𝒒 𝒔+𝟏 𝒊 …, 𝒒 𝑲 𝒊 + 𝒒 𝟏 𝒋 ,… 𝒒 𝒔 𝒋 ,| 𝒒 𝒔+𝟏 𝒋 …, 𝒒 𝑲 𝒋 𝑸=𝒔, 𝑹=𝟏 𝑸=𝒔, 𝑹=𝟐 𝒒 𝟏 𝒊 ,… 𝒒 𝒔 𝒊 ,| 𝒒 𝒔+𝟏 𝒋 …, 𝒒 𝑲 𝒋 𝒒 𝟏 𝒋 ,… 𝒒 𝒔 𝒋 ,| 𝒒 𝒔+𝟏 𝒊 …, 𝒒 𝑲 𝒊 4. MUTATION: Make random changes in the posterity, i.e. Choose a random volume of descendants, to which the mutation will be applied. Then we choose random item numbers of descendants that will mutate. For each mutating descendant we choose random volume of mutating elements. Then we choose random item numbers of mutating element and replace each element to a new random value from the allowable period.

1. CHOOSING THE INITIAL POPULATION: Genetic algorithm for solving an optimization problem min J(q) STOP 1. CHOOSING THE INITIAL POPULATION: Choose arbitrary values of 𝑁 vectors of parameters 𝑞 𝑖 . For each 𝑞 𝑖 we count the misfit function 𝐽( 𝑞 𝑖 ). YES 6. CHECK THE EXIT CONDITIONS: The lowest value of the misfit function 𝐽 𝑞 𝑖 less then ∆= 10 −3 . The smallest value of the misfit function from population changes less than 10 −8 within 500 consecutive iterations. 2. SELECTION: Choose 𝑁 pairs of parents. The probability that 𝑖-th member of the population fall into a pair can be calculated as follows 𝑷 𝒊 = 𝑱( 𝒒 𝒊 ) 𝒋=𝟏 𝑵 𝑱( 𝒒 𝒋 ) . NO 5. FORMATION OF A NEW GENERATION: Choose the member that has the lowest value of the functional 𝐽( 𝑞 𝑖 ). Choose a few "lucky ones" , who have bigger values of 𝐽, but they will bring diversity in subsequent generations. 3. CROSSING: 𝑄 is random integer number from [1,𝐾], 𝑅 is a random integer (1 or 2). 𝒒 𝟏 𝒊 ,… 𝒒 𝒔 𝒊 ,| 𝒒 𝒔+𝟏 𝒊 …, 𝒒 𝑲 𝒊 + 𝒒 𝟏 𝒋 ,… 𝒒 𝒔 𝒋 ,| 𝒒 𝒔+𝟏 𝒋 …, 𝒒 𝑲 𝒋 𝑸=𝒔, 𝑹=𝟏 𝑸=𝒔, 𝑹=𝟐 𝒒 𝟏 𝒊 ,… 𝒒 𝒔 𝒊 ,| 𝒒 𝒔+𝟏 𝒋 …, 𝒒 𝑲 𝒋 𝒒 𝟏 𝒋 ,… 𝒒 𝒔 𝒋 ,| 𝒒 𝒔+𝟏 𝒊 …, 𝒒 𝑲 𝒊 4. MUTATION: Make random changes in the posterity, i.e. Choose a random volume of descendants, to which the mutation will be applied. Then we choose random item numbers of descendants that will mutate. For each mutating descendant we choose random volume of mutating elements. Then we choose random item numbers of mutating element and replace each element to a new random value from the allowable period.

Numerical solving of an inverse problem (1)-(2) by genetic algorithm 𝑇=100 days, 𝑁 𝑡 =10000, ℎ 𝑡 =0,01 𝑇 1 (0)=50000, 𝑇 2 (0)=4800, 𝑇 1 ∗ (0)=5000, 𝑇 2 ∗ (0)=10, 𝑉(0)=10000, 𝐸(0)=15 We generate a synthetic data using standard set of parameters for infected patient. 14 measurements (once a week)

Numerical solution of an inverse problem (1)-(2) 𝑇=100 days, 𝑁 𝑡 =10000, ℎ 𝑡 =0.01 Initial conditions: 𝑇 1 =50000, 𝑇 2 =4800, 𝑇 1 ∗ =5000, 𝑇 2 ∗ =10, 𝑉=10000, 𝐸=15 Measurements for an inverse problem: 𝑇 1 𝑡 𝑘 + 𝑇 1 ∗ 𝑡 𝑘 = Φ 1 𝑡 𝑘 , 𝑉 𝑡 𝑘 = Φ 2 𝑡 𝑘 , 𝐸 𝑡 𝑘 = Φ 3 𝑡 𝑘 , 𝑘=1,…,14 Exact values Approximate values Relative accuracy error 𝝀 𝟏 𝒄𝒆𝒍𝒍𝒔 𝒎𝒍∙𝒅𝒂𝒚 10 4 1.0015∙ 10 4 0.00149 𝝀 𝟐 𝒄𝒆𝒍𝒍𝒔 𝒎𝒍∙𝒅𝒂𝒚 31.98 32.7881 0.02527 𝒌 𝟏 𝒎𝒍 𝒗𝒊𝒓𝒊𝒐𝒏𝒔∙𝒅𝒂𝒚 8∙ 10 −7 7.9802∙ 10 −7 0.00248 𝒌 𝟐 𝒎𝒍 𝒗𝒊𝒓𝒊𝒐𝒏𝒔∙𝒅𝒂𝒚 10 −4 1.1693∙ 10 −4 0.16933

Fitting curves with measurements Pictures are shown that relative accuracy error of four parameters identification is sufficiently small for getting such a good mathematical model that have a solution close to additional measurements of CD4 T-lymphocytes ( 𝑻 𝟏 + 𝑻 𝟏 ∗ ), immune effectors 𝑬 and free viruses 𝑽.

Fitting curves with noised measurements We add Gaussian noise in data of about 10 % Exact parameters, 𝒒 𝒆𝒙 Approximate parameters, 𝒒 Relative error 𝒒 𝒆𝒙 𝒊 − 𝒒 𝒊 𝒒 𝒆𝒙 𝒊 𝝀 𝟏 𝒄𝒆𝒍𝒍𝒔 𝒎𝒍⋅𝒅𝒂𝒚𝒔 10 4 0.0989⋅10 4 0.0107 𝝀 𝟐 𝒄𝒆𝒍𝒍𝒔 𝒎𝒍⋅𝒅𝒂𝒚𝒔 31.98 43.7049 0.3666 𝒌 𝟏 𝒎𝒍 𝒗𝒊𝒓𝒊𝒐𝒏𝒔⋅𝒅𝒂𝒚𝒔 8⋅ 10 −7 7.9949⋅ 10 −7 0.0006 𝒌 𝟐 𝒎𝒍 𝒗𝒊𝒓𝒊𝒐𝒏𝒔⋅𝒅𝒂𝒚𝒔 10 −4 0.5024⋅10 −4 0.4976

Pontryagin’s Maximum Principle for optimal treatment control 𝑑 𝑈 𝑖 𝑑𝑡 = 𝑃 𝑖 𝑈 𝑡 ,𝜀 𝑡 , 𝑖=1,…,6 𝑈 𝑖 0 = 𝑈 𝑖0 𝑡∈(0, 𝑇) (1) Here 𝑈= 𝑇 1 , 𝑇 2 , 𝑇 1 ∗ , 𝑇 2 ∗ , 𝑉, 𝐸 𝑇 . 𝐽 𝜀 𝑡 = 0 𝑇 𝑄⋅𝑉 𝑡 +𝑅⋅ 𝜀 2 𝑡 𝑑𝑡 ⟶ min 𝜀(𝑡) (2) Here 𝑄, 𝑅 – weight constants Pontryagin’s Maximum Principle* convert (1) – (2) into a problem : 𝐻=𝑄⋅𝑉 𝑡 +𝑅⋅ 𝜀 2 𝑡 + 𝑖=1 6 𝜉 𝑖 ⋅ 𝑃 𝑖 ⟶ min 𝜀(𝑡) 𝑑 𝜉 𝑖 𝑑𝑡 =− 𝜕𝐻 𝜕 𝑈 𝑖 , 𝑖=1,…,6 𝜉 𝑖 𝑇 =0. Here ξ i satisfies the adjoint problem : *L. S. Pontryagin, V. G. Boltyanskii et. all, The Mathematical Theory of Optimal Processes, Wiley, New York, 1962.

Off treatment (ε = 0) steady states for model and initial conditions 𝐄 𝑸 𝟏 : 𝑇 1 = 10 6 , 𝑇 2 =3198, 𝑇 1 ∗ =0, 𝑇 2 ∗ =0, 𝑉=0, 𝐸=10. (Unstable) 𝐄 𝑸 𝟐 : 𝑇 1 =664938, 𝑇 2 =50, 𝑇 1 ∗ =1207, 𝑇 2 ∗ =11, 𝑉=6299, 𝐸=207658. (Unstable) 𝐄 𝑸 𝟑 : 𝑇 1 =163573, 𝑇 2 =5, 𝑇 1 ∗ =11945 𝑇 2 ∗ =46, 𝑉=63919, 𝐸=24. (Stable) 𝐄 𝑸 𝟒 : 𝑇 1 =967839, 𝑇 2 =621, 𝑇 1 ∗ =76, 𝑇 2 ∗ =6, 𝑉=415, 𝐸=353108. (Stable) 𝑬 𝑸 𝟏 represents the uninfected patient, without virus; 𝑬 𝑸 𝟐 represents the infected patient with sufficiently good immunity; 𝑬 𝑸 𝟑 - a dangerously high viral load is present; 𝑬 𝑸 𝟒 a strong immune response has developed.

Off treatment (ε = 0) steady states for model and initial conditions When the system is in state 𝑬 𝑸 𝟏 , introduction of a small amount of virus causes the system to converge to 𝑬 𝑸 3 . 𝐄 𝑸 𝟏 : 𝑇 1 = 10 6 , 𝑇 2 =3198, 𝑇 1 ∗ =0, 𝑇 2 ∗ =0, 𝑉=0, 𝐸=10. (Unstable) 𝐄 𝑸 𝟐 : 𝑇 1 =664938, 𝑇 2 =50, 𝑇 1 ∗ =1207, 𝑇 2 ∗ =11, 𝑉=6299, 𝐸=207658. (Unstable) 𝐄 𝑸 𝟑 : 𝑇 1 =163573, 𝑇 2 =5, 𝑇 1 ∗ =11945 𝑇 2 ∗ =46, 𝑉=63919, 𝐸=24. (Stable) 𝐄 𝑸 𝟒 : 𝑇 1 =967839, 𝑇 2 =621, 𝑇 1 ∗ =76, 𝑇 2 ∗ =6, 𝑉=415, 𝐸=353108. (Stable) 𝑻 𝟏 𝑻 𝟐 𝑻 𝟏 ∗ 𝑻 𝟐 ∗ 𝑬 𝑸 𝟏 represents the uninfected patient, without virus; 𝑬 𝑸 𝟐 represents the infected patient with sufficiently good immunity; 𝑬 𝑸 𝟑 - a dangerously high viral load is present; 𝑬 𝑸 𝟒 a strong immune response has developed. 𝑽 𝑬

Off treatment (ε = 0) steady states for model and initial conditions When the system is in state 𝑬 𝑸 𝟏 , introduction of a small amount of virus causes the system to converge to 𝑬 𝑸 3 . 𝐄 𝑸 𝟏 : 𝑇 1 = 10 6 , 𝑇 2 =3198, 𝑇 1 ∗ =0, 𝑇 2 ∗ =0, 𝑉=0, 𝐸=10. (Unstable) 𝐄 𝑸 𝟐 : 𝑇 1 =664938, 𝑇 2 =50, 𝑇 1 ∗ =1207, 𝑇 2 ∗ =11, 𝑉=6299, 𝐸=207658. (Unstable) 𝐄 𝑸 𝟑 : 𝑇 1 =163573, 𝑇 2 =5, 𝑇 1 ∗ =11945 𝑇 2 ∗ =46, 𝑉=63919, 𝐸=24. (Stable) 𝐄 𝑸 𝟒 : 𝑇 1 =967839, 𝑇 2 =621, 𝑇 1 ∗ =76, 𝑇 2 ∗ =6, 𝑉=415, 𝐸=353108. (Stable) 𝑻 𝟏 𝑻 𝟐 𝑻 𝟏 ∗ 𝑻 𝟐 ∗ 𝑬 𝑸 𝟏 represents the uninfected patient, without virus; 𝑬 𝑸 𝟐 represents the infected patient with sufficiently good immunity; 𝑬 𝑸 𝟑 - a dangerously high viral load is present; 𝑬 𝑸 𝟒 a strong immune response has developed. 𝑽 𝑬 Initial conditions for optimal control problem (perturbed state 𝑬 𝑸 𝟏 ): 𝑻 𝟏 = 𝟏𝟎 𝟔 , 𝑻 𝟐 =𝟑𝟏𝟗𝟖, 𝑻 𝟏 ∗ =𝟎, 𝑻 𝟐 ∗ =𝟎, 𝑽=𝟏, 𝑬=𝟏𝟎.

Optimal treatment (inverse problem 2) 𝑇=100 days, 𝑁 𝑡 =10000 Initial conditions: 𝑇 1 (0)= 10 6 , 𝑇 2 (0)=3198, 𝑇 1 ∗ 0 = 10 −4 , 𝑇 2 ∗ (0)= 10 −4 , 𝑉(0)=1, 𝐸(0)=10 Misfit function: 𝐽 𝜀 = 0 𝑇 𝑅𝑉 𝑡 +𝑄 𝜀 2 𝑡 𝑑𝑡 ⟶𝑚𝑖𝑛 𝑅=0.1, 𝑄=10000 The optimal control problem convert to minimizing of Hamiltonian: 𝐻=𝑄⋅𝑉 𝑡 +𝑅⋅ 𝜀 2 (𝑡) 𝑖=1 6 𝜉 𝑖 ⋅ 𝑃 𝑖 ⟶ min 𝜀(𝑡) Here 𝜉 𝑖 satisfies the adjoint problem : 𝑑 𝜉 𝑖 𝑑𝑡 =− 𝜕𝐻 𝜕 𝑈 𝑖 , 𝑖=1,…,6 𝜉 𝑖 𝑇 =0

𝑻 𝟏 ∗ , infected CD4 T-lymphocytes 𝑻 𝟐 ∗ , infected macrophages Mathematical modeling with full treatment (blue line) and with optimal treatment (red line) 𝑽, free virus 𝑻 𝟏 ∗ , infected CD4 T-lymphocytes 𝑻 𝟐 ∗ , infected macrophages 𝑬, immune effectors 𝑻 𝟏 , uninfected CD4 T-lymphocytes 𝑻 𝟐 , uninfected macrophages

Optimal treatment (inverse problem 2) 𝑇=90 days, 𝑁 𝑡 =9000 𝜀= 𝜀 1 ,𝜀 2 ,𝜀 3 𝑇 , 𝜀 𝑖 ∈{0, 0.1, 0.2,0.3,0.4,0.5,0.6,0.7, 0.8} Initial conditions: 𝑇 1 = 10 6 , 𝑇 2 =3198, 𝑇 1 ∗ = 10 −4 , 𝑇 2 ∗ = 10 −4 , 𝑉=1, 𝐸=10 Misfit function: 𝐽 2 𝜀 = 0 𝑇 𝑅𝑉 𝑡 +𝑄 𝜀 2 𝑡 𝑑𝑡 ⟶𝑚𝑖𝑛 The optimal treatment control obtained by brute-force search: 𝜺 𝟏 0.6 𝜺 𝟐 0.7 𝜺 𝟑

𝑻 𝟏 ∗ , infected CD4 T-lymphocytes 𝑻 𝟐 ∗ , infected macrophages Mathematical modeling with full treatment (blue line) and with optimal treatment (red line) 𝑽, free virus 𝑻 𝟏 ∗ , infected CD4 T-lymphocytes 𝑻 𝟐 ∗ , infected macrophages 𝑬, immune effectors 𝑻 𝟏 , uninfected CD4 T-lymphocytes 𝑻 𝟐 , uninfected macrophages

Thank you for attention!

Model parameters

Transition from the state 𝑬 𝑸 𝟏 to 𝑬 𝑸 𝟑 𝑻 𝟏 𝑻 𝟐 𝑻 𝟏 ∗ 𝑻 𝟐 ∗ 𝑽 𝑬

Transition from the state 𝑬 𝑸 𝟏 to 𝑬 𝑸 𝟑 𝑻 𝟏 𝑻 𝟐 𝑻 𝟏 ∗ 𝑬 𝑸 𝟏 Initial state 𝑬 𝑸 𝟑 Final state 𝑻 𝟏 𝟏𝟎𝟎𝟎𝟎𝟎𝟎 𝟏𝟔𝟑𝟓𝟕𝟑 𝟏𝟔𝟑𝟏𝟓𝟗.𝟐𝟏 𝑻 𝟐 𝟑𝟏𝟗𝟖 𝟓 𝟓.𝟎𝟐𝟔 𝑻 𝟏 ∗ 𝟎 𝟏𝟏𝟗𝟒𝟓 𝟏𝟏𝟖𝟔𝟔.𝟐 𝑻 𝟐 ∗ 𝟒𝟔 𝟒𝟓.𝟓𝟖 𝑽 𝟏 𝟔𝟑𝟗𝟏𝟗 𝟔𝟑𝟓𝟎𝟖.𝟒𝟐 𝑬 𝟏𝟎 𝟐𝟒 𝟐𝟑.𝟓𝟕 𝑻 𝟐 ∗ 𝑽 𝑬