systems biology is an emerging academic field aiming at system - level understanding of biological systems .
recent progress in molecular biology has enabled us to gain information on the interactions among the underlying molecules from comprehensive experimental data sets . in general , a system - level understanding of a biological system can be derived from insight into four key properties : ( 1 ) the system 's structure , ( 2 ) the system dynamics , ( 3 ) the control method , and ( 4 ) the design method .
equivalently , identifying related components and their interactions , gathering qualitative and quantitative information about the system 's evolution under different circumstances , achieving the desired outputs by controlling the input with appropriate definitions of inputs and outputs of the system , and reconstructing analogous systems by eliminating the undesired properties are four essential steps in systems biology done by collaboration among engineers , biologists , and doctors .  
systems biology is a cross - cutting research area connecting control engineering , biology , and medical science , as shown in figure 2 .
it aims at understanding the bare function and integration function of the cell to reconstruct the biological systems with desired features .
control and automation play critical roles in this novel field not only by providing new technology and equipment for biologists to design and perform meticulous experiments , to take high - throughput measurements , and to analyze experimental data efficiently , but also by offering doctors new medical applications and improving the precision of medical manipulations .
the wide range of aspects which control and automation have been applied to include , but are not limited to , gene regulation [ 3 , 4 ] , drug delivery [ 2 , 5 ] , and neuron networks [ 6 , 7 ] . the equipment provided by control engineers includes , but is not limited to , nanodevices , biochips , cuvettes for electroporation , and gene guns .
biologists perform various biological experiments , such as protein synthesis and virus dna modifications , to gather measurements for model revisions and verifications , to conclude theoretical and practical results from evidence , and to help medical practice .
doctors use both theoretical and practical results from biologists to perform tissue engineering , such as organ transplants and artificial tissue construction . according to their scales
, biological systems can be divided into three levels : the molecular level ( nm ) , cellular level ( m ) , and tissue level ( cm ) , analogous to the part , individual , and group , respectively . molecular - level research focuses on how , when , where , and to what extent   a gene is expressed .
the essential goal is to sketch a complete blueprint of genes by identifying the control sequences of coding dna segments and their interactions .
cellular level research , in general , treats one cell as a plant in classical control theory and investigates the reactions of the cell to the changing environment , for instance , concentration changes of related chemicals .
state - of - the - art medical therapies are primarily based on experimental results at the cellular level .
tissue - level research mainly concerns tissue reconstruction , artificial tissue substitutes , or tissue function recovery .
in contrast , understanding biological systems at the molecular level is crucial , since species have the same basic inheritance , dna macromolecules , and follow a common rule in gene expression , the central dogma in molecular biology .
molecular level understanding of biological systems provides instrumental information about radical causes of many diseases and the genetic evidence of evolution .
it also helps biologists to gain a better understanding of molecular level interactions , draw a complete blueprint of gene networks , improve existing means , create novel means to cure genetic diseases , and to elaborate on the theory of evolution .
recent technology in gene sequencing makes it possible to conquer the difficulty in measurement at the molecular level and to identify the nucleotide sequences of a particular dna segment .
targeted sequencing is the most promising step toward maximizing the efficiency of the next - generation sequencing technology using polymerase chain reaction .
the availability of dna microarray makes it possible to accomplish tens of thousands of genetic tests for picomoles ( 10 ) of a specific dna sequence .
researchers have applied various methods to model , simulate , and control the gene regulation processes .
early attempts to model and simulate gene regulatory systems are summarized in , including direct graphs , bayesian networks , boolean networks , ordinary and partial different equations , qualitative differential equations , quantative differential equations , stochastic equations , and role - base formalisms .
other approaches include petri nets , transformational grammars [ 12 , 13 ] , and process algebra .
three important modeling methods in recent work are gene regulatory units viewed under compound control [ 4 , 1518 ] , logic network models [ 19 , 20 ] , and base - to - base molecular - level formulation [ 21 , 22 ] .
the first modeling method quantitatively describes chemical concentration variations corresponding to external environmental changes at the cellular level .
the last modeling converts dna segments to discrete vectors . in our paper , we adapt the base - to - base molecular level formulation to express state variables .
most existing models are constructed by data - driven or hypothesis - driven methods , with only partial information available .
due to the complexity of the systems and incomplete information , the mathematical models are usually formulated by modifying empirical equations or proposing heuristic equations .
although those models can disclose significant details of the system 's structure and dynamics , the inconsistency between theoretical and experimental results creates difficulties for control engineers to verify the models , develop optimal controls , and reconstruct systems with desired properties . in this paper
, we use a novel approach to build up abstract mathematical models at the molecular level in section 2.2 , based directly on biological theory . with reasonable assumptions
different from existing methods , focusing on a gene or changes in chemical concentration , we emphasize the base change in the nucleotide bases .
the cost function , a summation of costs for applying mutagens and the off - trajectory penalty , together with the system equations , formulates the optimal control problem .
section 3 shows simulation results of the optimal control problem at different scales and is followed by several important propositions .
the central dogma of molecular biology , first elaborated in   and restated in , illustrates the detailed residue - by - residue transfer of genetic sequential information . nowadays ,
it describes the genetic information flow among three kinds of biopolymers : dna , rna , and protein . in most living organisms ,
this process is usually irreversible , thus protein always acts as the sink of information flow .
a codon consists of three consecutive nucleotide bases , corresponding to one amino acid according to the genetic codes .
since there are only 20 kinds of amino acids and 64 combinations of codons , there exists redundancy in genetic codes .
we are particularly interested in mutations that happen during the process of dna replication , as dna serves as long - term genetic information storage and is the basis of genetic inheritance , the accuracy of which is particularly important to ensure the correct expression of genes .
dna molecules consist of four kinds of nucleotide acids , adenine ( a ) , thymine ( t ) , guanine ( g ) , and cytosine ( c ) , and a backbone made of sugars and phosphate . in 1953 ,
james d. watson and francis crick found the double helix structure of dna and the rule of basepairing , known as watson - crick basepairing [ 25 , 26 ] . a always pairs with t , g always pairs with c , and vice versa . in nature ,
replication errors occur at a very low rate , one error for every 10 nucleotides added .
the redundancy of information caused by the double - helix structure ensures the accuracy of dna replication .
some dna self - repair mechanisms , listed in , such as proofreading , also help to eliminate errors during the replication process .
point mutations can be further divided into transitions ( ag or ct ) and transversions ( a / gc / t ) .
transversions are theoretically expected to be twice as frequent as transitions , but transitions may be favored over transversions in coding dna because they usually result in a more conserved polypeptide sequence . in this section ,
we first give the problem statement in section 2.1 , and then we construct system equations for both deterministic and stochastic mutations in section 2.2 . at last , in section 2.3 , we formulate the optimal control problem and apply dynamic programming algorithm to solve it . 

figure 3 shows the system diagram of restoring an abnormal dna segment back to a normal sequence by applying mutagens during the process of dna replication . after we obtain a patient 's genome , we compare the coding dna segments with normal dna segments in our database to figure out the possible range of mutated segments . due to the redundancy in genetic codes ,
as long as any two dna segments can be transcribed and then translated to the same amino acid sequence , the distance reference between them is considered to be zero .
therefore , instead of having a predetermined final state or a neighborhood of a final state , our final state lies in a set where the distance reference between any sequence in this set and the desired sequence is zero .
the prescription is then determined by comparing the current measurement and every sequence in the desired set .
we treat dna sequences as state variables , the on / off controls of all available mutagens at every spot on the given dna segment as inputs , the measurements as the outputs , and one cell cycle as the step increment in our system equations .
the objective function is defined as a summation of the costs ( including risks ) of applying mutagens and the off - trajectory penalty .
the optimal control sequences are computed beforehand to let doctors make treatment plans according to the patient 's condition . in general , the optimal control sequence and the corresponding optimal trajectory are not unique because the bases mutate independently in most cases and the order of mutating different bases does not matter if the number of medical treatment sessions is not under a tight restriction .
additional measurements are taken before and after each treatment , if necessary . in deterministic cases ,
the purpose of taking additional measurements is to check the current sequence and to eliminate both internal and external disturbances .
in stochastic settings , the measurements are taken to conquer the randomness caused by both mutagens and other noises .
, our system is a discrete - time dynamic system with finite state space and output space , and a set of on / off switches as controls .
our goal is to optimally drive this system from a given initial state to a desired final set at the lowest cost .
we mainly focus on applying chemical mutagens and radiation to restore the original amino acid sequence during the process of dna replication
. other factors that may affect the gene mutation , including temperature and electroporation , are not within our consideration .
in addition , we assume that chemical mutagens or radiation target one and only one nucleotide base at any preset site , despite the technical limitation , and the results of applying chemical mutagens and radiation are independent . for simplicity , we normalize the dose of mutagens to transfer one nucleotide base to another in one step to 1 . in most cases , nucleotide bases mutate independently , therefore there is no chain effect caused by mutagens . to avoid reactions among different mutagens , we require that at most one chemical mutagen and one radiation be applied in each cell cycle . while constructing a generalized model , since the order of applying chemical mutagens and radiation does not affect the results , without loss of generality , we require they be applied in the order shown in figure 4 .
that is , chemical mutagens are always applied before the duplication process starts , radiation is always applied in the middle of the cell cycle , and the measurements are taken before every replication starts .
lastly , we assume that the measurements are always correct , and dna replication error , background mutation rate , and other random noise can be eliminated from measurements by considering them as spontaneous mutation .
denote the targeted dna segment with n nucleotide bases at kth step by a column vector x 
 k , as shown in figure 5 .
x 
 k 
  is the ith element of x 
 k. let p be the transfer matrix from x 
 k to x 
 k+1 , for all k , k   
 
 { 0 } , without mutation . then , the perfect dna replication process can be expressed as 
 proposition 1 
 p = i . 
 

proofas no mutation occurs , x 
 k+1 is completely complementary to x 
 k by watson - crick base pairing rule , and x 
 k+2 is completely complementary to x 
 k+1 .
therefore , x 
 k+2 is exactly the same as x 
 k. thus , 
 ( 2)xk+2=pxk+1=p2xkp2=i . 

since every base mutates independently , every element of x 
 k+1 
  only depends on the corresponding element of x 
 k 
 , thus p is diagonal .
in addition , x 
 k+1  x 
 k , we conclude p = i . 
  as no mutation occurs , x 
 k+1 is completely complementary to x 
 k by watson - crick base pairing rule , and x 
 k+2 is completely complementary to x 
 k+1 .
therefore , x 
 k+2 is exactly the same as x 
 k. thus , 
 ( 2)xk+2=pxk+1=p2xkp2=i . 

since every base mutates independently , every element of x 
 k+1 
  only depends on the corresponding element of x 
 k 
 , thus p is diagonal .
in addition , x 
 k+1  x 
 k , we conclude p = i . based on proposition 1 , we assign values to nucleotide bases set { a , g , c , t , o } , where o is an artificial nonsense base .
define an equivalence relationship between { a , g , c , t , o } and { 1,2 , 2 , 1,0 } , that is , { a , g , c , t , o}{1,2 , 2 , 1,0 } , with 
 ( 3)xki={1,if  a,2,if  g,2,if  c,1,if  t,0,if  o. 
 
 proposition 2{1,2 , 2 , 1,0 } is a field under proper definitions of addition and multiplication . 
 
{ 1,2 , 2 , 1,0 } is a field under proper definitions of addition and multiplication .  

proofdefining the addition table and multiplication table as in tables 1 and 2 , we check if the set { 1,2 , 2 , 1,0 } satisfies the definition of field . 
  defining the addition table and multiplication table as in tables 1 and 2
, we check if the set { 1,2 , 2 , 1,0 } satisfies the definition of field . 

commutativity of addition and multiplicationsatisfied as tables 1 and 2 are symmetric according to the diagonal . 
 
additive and multiplicative inversesadditive inverses pair : 11 , 22 , 00.multiplicative inverses pair : 11 , 22 , 11 . 
 
we conclude { 0,1 , 2 , 2 , 1 } is a field under addition and multiplication defined by tables 1 and 2 . from now on ,
we use  to denote the field { 0,1 , 2 , 2 , 1}. and x 
 k   
  is the state vector representing a dna segment with n nucleotide bases , where  
  is the set of -valued vectors of dimension n.   we start with the simplest form of mutations , point mutation .
suppose there is a point mutation , we write it mathematically as 
 ( 4)xk+1=(i+s)xk+w , 
 where x 
 k+1 , x 
 k   , and i reduces to 1 as only one base is involved .
the corresponding values of s and w , obtained by reverse engineering with all possible pairs of x 
 k and x 
 k+1 , are listed in table 3 . here
, s represents the mutation from four normal nucleotide bases , and w corresponds to mutation from nonsense base , that is , w  0 only if x 
 k = 0 . rewriting ( 4 ) by collecting all values of s and w in table 3 , we get 
 ( 5a)xk+1=(i+j=04ukjsj)xk+j=04ckjwj 
 ( 5b)=(i+uks)xk+ckw , 
 where { s 
 0 , s 
 1 , s 
 2 , s 
 3 , s 
 4 } = { w 
 0 , w 
 1 , w 
 2 , w 
 3 , w 
 4 } = { 0,1 , 2 , 2 , 1 } , u 
 k 
 , c 
 k 
   { 0,1 } , representing the on / off controls , u 
 k = [ u 
 k 
 u 
 k 
 u 
 k 
 u 
 k 
 u 
 k 
 ] , c 
 k = [ c 
 k 
 c 
 k 
 c 
 k 
 c 
 k 
 c 
 k 
 ] , and s = w = [ 0 1 2  2  1 ] . in ( 5a ) , s 
 j and w 
 j are constants for all k and j. u 
 k 
  and c 
 k 
 , the inputs of the system , are the on / off controls for chemical mutagens or radiation .
clearly , j=0 
 c 
 k 
  = 1 only if x 
 k = 0 .
equation ( 5b ) is a simplified version of ( 5a ) as we put u 
 k 
 , s 
 j , c 
 k 
 , w 
 j into vector form u 
 k , s , c 
 k , w. s and w serve as vector basis for base - to - base deterministic model .
u 
 k and c 
 k are now multi - input controls ; each of them contains 5 on / off controls , corresponding to all possible transfer patterns . for a particular k , at most one of u 

k 
 s and c 
 k 
 s can be 1 , as stated in proposition 3 .
this is consistent with the fact that every state can be transferred to only one of the five states in the state space  with corresponding mutagens available . 

proposition 3it is always 1  1 transfer when mutation occurs , that is , one nucleotide base can only transfer to another one , thereforeif x 
 k = 0 and c 
 k = 0 , or c 
 k = [ 1 0 0 0 0 ] , then x 
 k+1 = 0,if x 
 k  0 , then c 
 k = 0 and u 
 k is either 0 or a unit row vector , if x 
 k = 0 , then u 
 k = 0 and c 
 k is either 0 or a unit row vector , 
 u 
 k + c 
 k is either 0 or a unit row vector , for all k   
   { 0}. 

  it is always 1  1 transfer when mutation occurs , that is , one nucleotide base can only transfer to another one , thereforeif x 
 k = 0 and c 
 k = 0 , or c 
 k = [ 1 0 0 0 0 ] , then x 
 k+1 = 0,if x 
 k  0 , then c 
 k = 0 and u 
 k is either 0 or a unit row vector , if x 
 k = 0 , then u 
 k = 0 and c 
 k is either 0 or a unit row vector , 
 u 
 k + c 
 k is either 0 or a unit row vector , for all k   
   { 0}. 
  if x 
 k = 0 and c 
 k = 0 , or c 
 k = [ 1 0 0 0 0 ] , then x 
 k+1 = 0 , if x 
 k  0 , then c 
 k = 0 and u 
 k is either 0 or a unit row vector , if x 
 k = 0 , then u 
 k = 0 and c 
 k is either 0 or a unit row vector , 
 u 
 k + c 
 k is either 0 or a unit row vector , for all k   
   { 0}. now , suppose for some reason we need to take an addition , measurement in the middle of the cell cycle , after the completion of the kth duplication and before the start of the ( k + 1)th .
we name this kind of measurement an intermediate state , and denote by it x 
 k. then , we have 
 ( 6)xk+1=(i+s )  xk+w , 
 where the values of s and w , listed in table 4 , are obtained in the same way as getting s and w in table 3 . comparing tables 3 and 4
, we find the collection of s and s , w and w , form the same set , respectively .
thus , we continue using s and w when rewriting ( 6 ) in the form of ( 5a ) and ( 5b ) , that is , 
 ( 7)xk+1=(i+vks)xk+ckw , 
 where v 
 k , c 
 k are the counterparts of u 
 k , c 
 k , respectively , and s , w are the same as in ( 5b ) .
similar to proposition 3 , we get proposition 4 . 
 proposition 4 
 v 
 k and c 
 k in ( 7 )
need to satisfy the following conditions.if x 
 k = 0 and c 
 k = 0 , or c 
 k = [ 1 0 0 0 0 ] , then x 
 k+1 = 0.if x 
 k  0 , then c 
 k = 0 and v 
 k is either 0 or a unit row vector.if x 
 k = 0 , then v 
 k = 0 and c 
 k is either 0 or a unit row vector . 

v 
 k + c 
 k is either 0 or a unit row vector , for all k   
   { 0}. 

 
 v 
 k and c 
 k in ( 7 ) need to satisfy the following conditions.if x 
 k = 0 and c 
 k = 0 , or c 
 k = [ 1 0 0 0 0 ] , then x 
 k+1 = 0.if x 
 k  0 , then c 
 k = 0 and v 
 k is either 0 or a unit row vector.if x 
 k = 0 , then v 
 k = 0 and c 
 k is either 0 or a unit row vector . 

v 
 k + c 
 k is either 0 or a unit row vector , for all k   
   { 0}. 
  if x 
 k = 0 and c 
 k = 0 , or c 
 k = [ 1 0 0 0 0 ] , then x 
 k+1 = 0 .
if x 
 k  0 , then c 
 k = 0 and v 
 k is either 0 or a unit row vector . if x 
 k = 0 , then v 
 k = 0 and c 
 k is either 0 or a unit row vector . 

v 
 k + c 
 k is either 0 or a unit row vector , for all k   
   { 0}. now take , both chemical mutagens and radiative rays under our consideration and apply them in the order as shown in figure 4 .
then , we can express our system equation as 
 ( 8a)xk=(i+uksmutations  caused  by  chemicalmutagens  from  normal  bases)xk  + ckwmutations  caused  by  chemicalmutagens  from  o , 
 ( 8b)xk+1=(i+vksmutations  caused  by  radiativerays  from  normal  bases)xk  + ckwmutations  caused  by  radiativerays  from  o , 
 ( 8c )  yk = xk , 
 where u 
 k and v 
 k are the inputs of the system and y 
 k is the measurement .
obviously , ( 8a ) is modified from ( 5b ) and ( 8b ) from ( 7 ) . the two - step mutation and the intermediate state
x 
 k  avoid the case x 
 k is changed to different bases by radiation and chemical mutagens simultaneously , which causes confusion .
substituting ( 8a ) and ( 8b ) , we get 
 ( 9a)xk+1=(i+vks)(i+uks)xk+(i+vks)ckw+ckw , 
 ( 9b)yk = xk . 

obviously , proposition 3 still holds for u 
 k and c 
 k , and proposition 4 holds for v 
 k and c 
 k for ( 9a ) . for point mutations
, we have 20 on / off controls in total for every step k , 10 for chemical mutagens as described before , and the rest for radiation . in general ,
now , we show how to extend our model to large - scale systems .  
suppose we have a coding dna segment with length n , then x 
 k   
 . since a coding dna segment usually contains integer number of codons , which is made of three consecutive bases , n is a multiple of 3 .
let x 
 k 
  denote the ith component of x 
 k. this notation is consistent with the one in section 2.2.1 .
initiated by the base - to - base deterministic model from section 2.2.1 , we write our system equation for large - scale system as 
 ( 10 )  xk=(i+i=1nukiskimutations  caused  by  chemicalmutagens  from  normal  bases)xk  + ikckiwkimutations  caused  by  chemicalmutagens  from  o , xk+1=(i+i=1nvkiqkimutations  caused  by  radiative  raysfrom  normal  bases)xk  + ikbkirkimutations  caused  by  radiativerays  from  o ,  yk = xk , 
 where u 
 k 
 , v 
 k 
 , c 
 k 
 , b 
 k 
  are on / off controls of the ith element ,  s 
 k 
 , q 
 k 
  are n  n square matrices corresponding to the mutations between normal bases or from normal bases by chemicals and radiation , respectively , w 
 k 
 , r 
 k 
  are n - dimensional column vectors representing mutations from nonsense bases by chemicals and radiation , respectively , and  
 k = { i : x 
 k 
  = 0,1 
i  n } ,  
 k = { i : x 
 k 
  = 0,1  i  n}. 
 s 
 k 
  and q 
 k 
  are diagonal matrices since each base mutates independently .
the values in the first four rows of tables 3 and 4 correspond to the diagonal elements of s 
 k 
  and q 
 k 
 , respectively .
the last rows of tables 3 and 4 are assigned to w 
 k 
  and r 
 k 
 , n - dimensional vectors , at nonsense base 's spots for x 
 k. define  = { s 
 j 
 e 
 i 
 e 
 i 
 , i , j , 0  j  4,1  i  n } , a collection of n 
n matrices , where s 
 j is the same as in ( 5a ) and ( 5b ) , e 
 i is the unit column vector of length n with ith component equal to 1 and all other components equal to 0 , and e 
 i 
 e 
 i 
  is the square matrix with only the ith element on the diagonal equals to 1 , and 0 otherwise .
then , s 
 k 
 , q 
 k 
  can be written as linear combinations of all elements from  , with the coefficient of each element either 0 or 1 corresponding to the on / off control u 
 k 
  and v 
 k 
 , respectively .
similarly , define  = { w 
 j 
 e 
 i , i , j , 0  j  4,1  i  n } , where w 
 j is the same as ( 5a ) and ( 5b ) .
w 
 k 
 , r 
 k 
  can be written as linear combinations of all components from  , with coefficient of every component either 0 or 1 corresponding to the on / off control c 
 k 
  and c 
 k 
 , respectively .
therefore , instead of using step - varying s 
 k 
 , s 
 k 
 , w 
 k 
 , r 
 k 
 , we find matrix basis for those four square matrices to make the controls to be the only variables depending on k , as we did for single - base cases .
then , we can , write ( 10 ) as 
 ( 11a)xk=(i+i=1n  j=04uk(i , j)sjeieit)xk+ik  j=04ck(i , j)wjei , 
 ( 11b)xk+1=(i+i=1n  j=04vk(i , j)sjeieit)xk+ik  j=04ck(i , j)wjei , 
 ( 11c)yk = xk , 
 where u 
 k 
 , v 
 k 
 , c 
 k 
 , c 
 k 
   { 0,1}. as shown in ( 11a ) , ( 11b ) , and ( 11c ) , multisites mutations contain 20n controls in total for every step k , where n is the number of nucleotide bases on the targeted gene .
similar to point mutations , every single site has 20 controls in each step , 10 for chemical mutagens and 10 for radiation . we can view u 
 k , v 
 k , c 
 k ,
c 
 k as binary matrices of dimension n  5 , and u 
 k 
 , v 
 k 
 c 
 k 
 , c 
 k 
 are the corresponding element of ith row and jth column .
use u 
 k 
 , v 
 k 
 , c 
 k 
 , b 
 k 
 , binary row vectors of dimension 5 , to denote the ith row of u 
 k , v 
 k , c 
 k , c 
 k , respectively .
again , s = w = [ 0 1 2  2  1 ] . combining ( 11a ) and ( 11b ) , and writing control variables in vector forms , we get 
 ( 12)xk+1=(i+i=1nvkiseieit)(i+i=1nukiseieit)xk  + ( i+i=1nvkiseieit)ikckiwei+ikbkiwei , yk = xk . 
 
 proposition 5for large - scale deterministic system , u 
 k , v 
 k , c 
 k , c 
 k satisfy conditions below.if
e 
 i 
 x 
 k = 0 , then i   
 k.if e 
 i 
 x 
 k = 0 , c 
 k 
  = 0 or c 
 k 
  = [ 1 0 0 0 0 ] , then i   
 k.for all i   
 k , u 
 k 
  is either 0 or a row unit vector and c 
 k 
  = 0.for all i   
 k , c 
 k 
  is either 0 a row unit vector and u 
 k 
  = 0.for all i   
 k , v 
 k 
  is either 0 or a row unit vector and b 
 k 
  = 0.for all i   
 k , b 
 k 
  is either 0 or a row unit vector and v 
 k 
  = 0.for all i , k , 1  i 
n , k   
   { 0 } , u 
 k 
  +
c 
 k 
  is either 0 or a unit row vector and v 
 k 
  + b 
 k 
  is either 0 or a unit row vector . 

  for large - scale deterministic system ,
u 
 k , v 
 k , c 
 k , c 
 k satisfy conditions below.if
e 
 i 
 x 
 k = 0 , then i   
 k.if
e 
 i 
 x 
 k = 0 , c 
 k 
  = 0 or c 
 k 
  = [ 1 0 0 0 0 ] , then i   
 k.for all i   
 k , u 
 k 
  is either 0 or a row unit vector and c 
 k 
  = 0.for all i   
 k , c 
 k 
  is either 0 a row unit vector and u 
 k 
  = 0.for all i   
 k , v 
 k 
  is either 0 or a row unit vector and b 
 k 
  = 0.for all i   
 k , b 
 k 
  is either 0 or a row unit vector and v 
 k 
  = 0.for all i , k , 1  i 
n , k   
   { 0 } , u 
 k 
  +
c 
 k 
  is either 0 or a unit row vector and v 
 k 
  + b 
 k 
  is either 0 or a unit row vector . 
  if e 
 i 
 x 
 k = 0 , then i   
 k. if e 
 i 
 x 
 k = 0 , c 
 k 
  = 0 or c 
 k 
  = [ 1 0 0 0 0 ] , then i   
 k. for all i   
 k , u 
 k 
  is either 0 or a row unit vector and c 
 k 
  = 0 . for all i   
 k , c 

k 
  is either 0 a row unit vector and u 
 k 
  = 0 . for all i 
 
 k , v 
 k 
  is either 0 or a row unit vector and b 
 k 
  = 0 .
for all i   
 k , b 
 k 
  is either 0 or a row unit vector and v 
 k 
  = 0 . for all i , k ,
1  i  n , k   
   { 0 } , u 
 k 
  +
c 
 k 
  is either 0 or a unit row vector and v 
 k 
  + b 
 k 
  is either 0 or a unit row vector .
the mathematical model ( 12 ) is quite flexible and can be easily extended to many cases , such as transcription process , multiple spot mutations within one - step or broken dna strands .
our system equation can represent this phenomenon by dividing the whole system into small subsystems .
significant brokage of dna strands is simply eliminated by cell mechanism to ensure the accuracy to dna replication .
equation ( 13 ) shows the case of one single dna strand breaking into two segments by chemical mutagens  
 ( 13)(xk(1)xk(2))=(im+i=1mukiseieit00inm+i = m+1nukiseieit )  (xk(1)xk(2))+  ( ik,1imckiweiik ,  ( m+1)inckiwei),xk+1(1)=(im+i=1mvkiseieit)xk(1)+ik ,  1imbkiwei , xk+1(2)=(inm+i = m+1nvkiseieit)xk(2 )  + ik ,  ( m+1)inbkiwei . 
  in reality ,
therefore , we need to derive the model for gene - to - gene stochastic mutations
. introduce new random variables , h 
 k , l1 
 , r 
 k , l2 
 , h 
 k , l3 
 , r 
 k , l4 
   { 0,1 } , associated with probability p 
 l1,j 
 , p 
 l2,j 
 , p 
 l3,j 
 , p 
 l4,j 
 , for all i , k , 1  i 
n , k   
   { 0 } , respectively , where k is the step index , l 
 1 , l 
 2 are indices for chemical mutagens inducing mutation from normal bases and from o , respectively , l 
 3 , l 
 4 are indices for radiation inducing mutation from normal bases and from o , respectively , i is the index of dna segment , and the value of j corresponds to the transfer pattern , which can be found in tables 3 and 4 .
note different mutagens have different probability assignments , the probability assignments are only related to the type of mutagens , and the probability associated with every kind of mutagens sums up to 1 , that is , 
 ( 14)j=04pl1,j(h)=1 ,  l1 ,  1l1l,j=04pl2,j(r)=1 ,  l2 ,  1l2m,j=04pl3,j(h)=1 ,  l3 ,  1l3l,j=04pl4,j(r)=1 ,  l4 ,  1l4m. 
 the controls are u 
 k , l1 
 , c 
 k , l2 
 , v 
 k , l3 
 , b 
 k , l4 
   { 0,1 } , with the fact that 1 representing mutagen with corresponding index is applied at ith spot of dna segment at kth generation , and 0 representing mutagen with corresponding index is not applied at spot i at kth step , similar to sections 2.2.1 and 2.2.2 .
the mutagen indices l 
 1 , l 
 2 , l 
 3 , l 
 4 can be omitted in deterministic mutations since given the current state and control , the next state is unique . however , they are necessary for stochastic mutations , because there exist multiple possible states for the next stage given the control . in other words ,
the next state is determined by random variables h 
 k , l1 
 , r 
 k , l2 
 , h 
 k , l3 
 , r 
 k , l4 
 , given the values of u 
 k , l1 
 , c 
 k , l2 
 , v 
 k , l3 
 , b 
 k , l4 
 , and x 
 k. suppose we have ( l + m ) kinds of chemical mutagens available , with l kinds to induce mutations from normal bases and m kinds to induce mutations from o. and we have ( l + m ) kinds of radiation available , with l kinds to induce mutations from normal bases and m kinds to induce mutations from o. therefore , we have total ( l + m + l + m ) controls for each spot i at each step k. we can write our system equation as 
 ( 15a)xk=(i+l1=1l  i=1nuk , l1ij=04hk , l1(i , j)sjeieitmutations  caused  by  chemical  mutagens  from  normal  bases)xk  + l2=1 m  ikck , l2ij=04rk , l2(i , j)wjeimutations  caused  by  chemicalmutagens  from  o , 
 
 ( 15b)xk+1=(i+l3=1l  i=1nvk , l3ij=04hk , l3(i , j)sjeieitmutations  caused  by  radiative  rays  from  normal  bases)xk  + l4=1m  ikbk , l4ij=04rk , l4(i , j)wjeimutations  caused  by  radiative  rays  from  o , 
 ( 15c )  yk = xk . 

again , we define h 
 k , l1 
 , r 
 k , l2 
 , h 
 k , l3 
 , r 
 k , l4 
  the elements at ith row and jth column of n  5 binary matrices h 
 k , l1 , r 
 k , l2 , h 
 k , l3 , r 
 k , l4 , respectively .
h 
 k , l1 
 , r 
 k , l2 
 , h 
 k , l3 
 , r 
 k , l4 
 , and binary row vectors of dimension 5 denote the ith row of h 
 k , l1 , r 
 k , l2 , h 
 k , l3 , r 
 k , l4 , respectively
. then , we can simplify ( 15a ) , ( 15b ) , and ( 15c ) and combine ( 15a ) and ( 15b ) as 
 ( 16)xk+1=(i+l3=1l  i=1nvk , l3ihk , l3iseieit )  (i+l1=1l  i=1nuk , l1ihk , l1iseieit)xk  +  ( i+l3=1l  i=1nvk , l3ihk , l3iseieit)l2=1 m  ikck , il2rk , l2iwei  +  l4=1m  ikbk , l4irk , l4iwei , yk = xk . 
 
 proposition 6for large - scale stochastic system , u 
 k , l1 
 , h 
 k , l1 
 , c 
 k , l2 
 , r 
 k , l2 
 , v 
 k , l3 
 , h 
 k , l3 
 , b 
 k , l4 
 , r 
 k , l4 
  follow the rules below.if e 
 i 
 x 
 k = 0 , then i   
 k.if e 
 i 
 x 
 k = 0 and l2=1 
 c 
 k , l2 
  = 0 , then i   
 k.if e 
 i 
 x 
 k = 0 , l2=1 
 c 
 k , l2 
  = 1 and r 
 k , l2 
  = [ 1 0 0 0 0 ] , then i   
 k.for all i , k , l 
 1 , 1  i 
n , k   
   { 0},1  l 
 1  l , if u 
 k , l1 
  = 1 , then h 
 k , l1 
  is a unit row vector.for all i , k , l 
 2 , 1  i 
n , k   
   { 0 } , 1  l 
 2  m , if c 
 k , l2 
  = 1 , then r 
 k , l2 
  is a unit row vector.for all i , k , l 
 3 , 1  i 
n , k   
   { 0 } , 1  l 
 3  l , if v 
 k , l3 
  = 1 , then h 
 k , l3 
  is a unit row vector.for all i , k , l 
 4 , 1  i 
n , k   
   { 0 } , 1  l 
 4  m , if b 
 k , l4 
  = 1 , then rk , l4 
  is a unit row vector.for all i   
 k , l1=1 
 u 
 k , l1 
  = 0  or  1 and c 
 k , l2 
  = 0 , for all l 
 2 , 1  l 
 2 
m.for all i   
 k , l2=1 
 c 
 k , l2 
  = 0 or 1 and u 
 k , l1 
  = 0 , for all l 
 1 , 1  l 
 1  l.for all i   
 k , l3=1 
 v 
 k , l3 
  = 0 or 1 and b 
 k , l4 
  = 0 , for all  l 
 4 , 1  l 
 4  m.for all i   
 k , l4=1 
 b 
 k , l4 
  = 0 or 1 and v 
 k , l3 
  = 0 , for all l 
 3 , 1  l 
 3 
n , k   
   { 0 } , l1=1 
 u 
 k , l1 
  + l2=1 
 c 
 k , l2 
  = 0 or 1 and l3=1 
 v 
 k , l3 
  + l4=1 
 b 
 k , l4 
  = 0 or 1 . 

  for large - scale stochastic system ,
u 
 k , l1 
 , h 
 k , l1 
 , c 
 k , l2 
 , r 
 k , l2 
 , v 
 k , l3 
 , h 
 k , l3 
 , b 
 k , l4 
 , r 
 k , l4 
  follow the rules below.if e 
 i 
 x 
 k = 0 , then i   
 k.if e 
 i 
 x 
 k = 0 and l2=1 
 c 
 k , l2 
  = 0 , then i   
 k.if e 
 i 
 x 
 k = 0 , l2=1 
 c 
 k , l2 
  = 1 and r 
 k , l2 
  = [ 1 0 0 0 0 ] , then i   
 k.for all i , k , l 
 1 , 1  i 
n , k   
   { 0},1  l 
 1  l , if u 
 k , l1 
  = 1 , then h 
 k , l1 
  is a unit row vector.for all i , k , l 
 2 , 1  i 
n , k   
   { 0 } , 1  l 
 2  m , if c 
 k , l2 
  = 1 , then r 
 k , l2 
  is a unit row vector.for all i , k , l 
 3 , 1  i 
n , k   
   { 0 } , 1  l 
 3  l , if v 
 k , l3 
  = 1 , then h 
 k , l3 
  is a unit row vector.for all i , k , l 
 4 , 1  i 
n , k   
   { 0 } , 1  l 
 4  m , if b 
 k , l4 
  = 1 , then rk , l4 
  is a unit row vector.for all i   
 k , l1=1 
 u 
 k , l1 
  = 0  or  1 and c 
 k , l2 
  = 0 , for all l 
 2 , 1  l 
 2 
m.for all i   
 k , l2=1 
 c 
 k , l2 
  = 0 or 1 and u 
 k , l1 
  = 0 , for all l 
 1 , 1  l 
 1  l.for all i   
 k , l3=1 
 v 
 k , l3 
  = 0 or 1 and b 
 k , l4 
  = 0 , for all  l 
 4 , 1  l 
 4  m.for all i   
 k , l4=1 
 b 
 k , l4 
  = 0 or 1 and v 
 k , l3 
  = 0 , for all l 
 3 , 1  l 
 3  l.for all i , k , 1  i  n , k   
   { 0 } , l1=1 
 u 
 k , l1 
  + l2=1 
 c 
 k , l2 
  = 0 or 1 and l3=1 
 v 
 k , l3 
  + l4=1 
 b 
 k , l4 
  = 0 or 1 . 
  if e 
 i 
 x 
 k = 0 , then i   
 k. if e 
 i 
 x 
 k = 0 and l2=1 
 c 
 k , l2 
  = 0 , then i   
 k. if e 
 i 
 x 
 k = 0 , l2=1 
 c 
 k , l2 
  = 1 and r 
 k , l2 
  = [ 1 0 0 0 0 ] , then i   
 k. for all i , k , l 
 1 , 1  i 
n , k   
   { 0},1  l 
 1  l , if u 
 k , l1 
  = 1 , then h 
 k , l1 
  is a unit row vector . for all i , k , l 
 2 , 1  i 
n , k   
   { 0 } , 1  l 
 2  m , if c 
 k , l2 
  = 1 , then r 
 k , l2 
  is a unit row vector . for all i , k , l 
 3 , 1  i 
n , k   
   { 0 } , 1  l 
 3  l , if v 
 k , l3 
  = 1 , then h 
 k , l3 
  is a unit row vector . for all i , k , l 
 4 , 1  i 
n , k   
   { 0 } , 1  l 
 4  m , if b 
 k , l4 
  = 1 , then rk , l4 
  is a unit row vector . for all i   
 k , l1=1 
 u 
 k , l1 
  = 0  or  1 and c 
 k , l2 
  = 0 , for all l 
 2 , 1  l 
 2  m. for all i   
 k , l2=1 
 c 
 k , l2 
  = 0 or 1 and u 
 k , l1 
  = 0 , for all l 
 1 , 1  l 
 1  l. for all i   
 k , l3=1 
 v 
 k , l3 
  = 0 or 1 and b 
 k , l4 
  = 0 , for all  l 
 4 , 1  l 
 4  m. for all i   
 k , l4=1 
 b 
 k , l4 
  = 0 or 1 and v 
 k , l3 
  = 0 , for all l 
 3 , 1  l 
 3  l. for all i , k , 1  i  n , k   
   { 0 } , l1=1 
 u 
 k , l1 
  + l2=1 
 c 
 k , l2 
  = 0 or 1 and l3=1 
 v 
 k , l3 
  + l4=1 
 b 
 k , l4 
  = 0 or 1 .
we close this section with the definition of controllability to the system equations proposed above .
dna replication systems with system equations proposed as ( 9a ) , ( 9b ) , ( 12 ) , and ( 16 ) are completely controllable if and only if for all x 
 0 , x 
 2k1 , x 
 2k2 + 1   , k 
 1 , k 
 2   
   { 0 } ,  at least one path from x 
 0 to x 
 2k1 and at least one path from x 
 0 to x 
 2k2 + 1 by applying proper mutagens in the correct order , with k 
 1 , k 
 2 finite .
we first define our objective function that can be adapted to all kinds of systems proposed in section 2.2 with minor changes .
mathematically , in systems where the controllable parameters of interest are discrete , the objective function is usually a weighted sum representing the number of times that a piece of equipment is turned  on  or  off  or the number of resources needed to execute certain tasks in the frequent cases . in our case
, this summation is the total number of times that different mutagens are applied weighted by the corresponding cost ( including the risk ) .
another key factor of objective function is the off - trajectory penalty . designing a trajectory
if the measurement indicates that the current state is off the predefined trajectory , we include a distance reference between current state and desired state as penalty and change the treatment plan accordingly .
therefore , our objective function can be expressed as 
 ( 17)j0(x0)=minu , c , v , c  h , h,r , r[k=0n1l1=1li=1nl1uk , l1i+k=0n1l2=1mi=1nl2ck , l2icost  of  applying  chemical  mutagens  +  k=0n1l3=1li=1nl3vk , l3i+k=0n1l4=1mi=1nl4bk , l4icost  of  applying  radiative  rays  +  k=0nd(xk,{xkd})tracing  cost ] , 
 with x 
 0 , x 
 k 
    
 , 1  k  n , n  0  ( mod  3 ) given
. the physical meaning of u 
 k , l1 
 , c 
 k , l2 
 , v 
 k , l3 
 , b 
 k , l4 
 ,
l 
 1 , l 
 2 , l 
 3 , l 
 4 is the same as in section 2.2.3 .
 
 l1 ,  
 l2 ,  
 l3 ,  
 l4   , for all  l 
 1 , l 
 2 , l 
 3 , l 
 4 , 1  l 
 1 
1  l 
 2  m , 1  l 
 3  l , 1  l 
 4  m , are the corresponding cost of applying chemical mutagens and radiative rays indexed l 
 1 , l 
 2 , l 
 3 , l 
 4 , respectively .
{ x 
 k 
 } :  
    
     { 0 } denotes the desired set at kth stage , generated by the dna sequences representing the same amino acid sequence as  x 
 k 
 , the desired state at kth step . and d(x 
 k , { x 
 k 
 } ) is the distance reference of the current state x 
 k to the desired set { x 
 k 
 } at kth step .
the final penalty , the distance reference from the final state to the desired set at k = n , is included in the last term . in general ,  
 l2 ,  
 l4   
 l1 ,  
 l3 , for all l 
 1 , l 
 2 , l 
 3 , l 
 4 , 1  l 
 1 
l , 1  l 
 2  m , 1  l 
 3  l ,
1  l 
 4  m , because physically o is a set of nonsense bases and more details are necessary to convert an o back to normal bases , for instance , the cost to identify the exact element in the set o. our goal is to drive our system optimally from initial state x 
 0 to the desired final set { x 
 n 
 } by applying a sequence of mutagens indexed with { l 
 1 , l 
 2 , l 
 3 , l 
 4 } , at problematic positions i , and in a correct order k. in ( 17 ) , the first four terms inside the expectation do not depend on random variables h 
 k , l1 
 , r 
 k , l2 
 , h 
 k , l3 
 , and r 
 k , l4 
 , for all i , k , l 
 1 , l 
 2 , l 
 3 , l 
 4 as the treatment plan is computed based on the initial state x 
 0 . given y 
 k ,
the last term inside expectation , k=0 
 d(x 
 k , { x 
 k 
 } ) , is the only term in summation that depends on the distribution of the random variables .
the constraint of the optimal control problem , in general , is the system equation .
we choose multidimensional stochastic system equation as the generalized constraints as it can be degenerated to one - dimensional and multidimensional deterministic cases by proper modifications .
therefore , we can rewrite our objective function and formulate our optimal control problem as 
 ( 18)j0(x0)=min{u , c , v , c}0,1,  ,n1[k=0n1l1=1li=1nl1uk , l1i+k=0n1l2=1mi=1nl2ck , l2i  +  k=0n1l3=1li=1nl3vk , l3i+k=0n1l4=1mi=1nl4bk , l4i  +  k=0n{h , r , h,r}0,1,  ,n1[d(xk,{xkd } ) ] ] , 
 subject to 
 ( 19)xk+1=(i+l3=1li=1nvk , l3ihk , l3iseieit )  (i+l1=1li=1nuk , l1ihk , l1iseieit)xk  + ( i+l3=1li=1nvk , l3ihk , l3iseieit)l2=1mikck , l2irk , l2iwei  +  l4=1mikbk , l4irk , l4iwei , yk = xk . 
 we need to choose a proper distance reference to quantitatively describe the relationship between dna segments of same length .
we first define the distance reference between codons , and the distance reference between dna segments is a weighted sum of distance reference between every pair of codons .
the distance reference between codons , d( 
 1 ,  
 2 ) ,  
 1 ,  
 2   
 , needs to fulfill the biological requirements as below .
mathematically , d :  
    
     { 0 } , d( 
 1 ,  
 2 )  0 .
symmetry : the distance reference from codon  
 1 to codon  
 2 equals the distance reference from codon  
 2 to codon  
 1 , that is , d( 
 1 ,  
 2 ) = d( 
 2 ,  
 1 ) .
the distance reference between two codons corresponding to different amino acids should reveal the chemical and physical differences between two amino acids .
the distance reference from stop codons to all other codons is much larger than those between other codons as early termination of amino acid sequences is more harmful than other forms of mutations . 

all the existing metric defined on the finite field can not achieve all the requirements above .
the second requirement violates the identity of indiscernible , that is , d( 
 1 ,  
 2 ) = 0 if and only if  
 1 =  
 2 .
the redundancy in genetic codes implies d( 
 1 ,  
 2 ) = 0 if those two amino acids ,  
 1 and  
 2 , are translated into the same amino acids .
in addition , the triangular inequality is not necessarily true , according to the underlying physical meanings .
we take the assumption that the stop codons are of the same distance reference from and to all other codons .
we ignore codons containing o since their chemical and physical properties can not be found in literature . from table 5 , we can see all codons are divided into different sets with each set corresponding to one amino acid . the size and
this implies that the costs of driving one codon to the desired final set generated by the desired final state might be different from the costs of driving the complementary codon to the desired final set generated by the complementary of desired final state .
more discussions about this issue are presented in section 3 . the distance reference between any two codons
can be defined by a weighted sum of the differences between physical and chemical properties or other reasonable functions . and
the distance reference between two dna sequences is defined as the sum of distance reference between the corresponding pair of codons .
an example of the distance function can be expressed as 
 ( 20)d(1,2)=polarity  polarity(1,2 )  + ph  ph(1,2)+size  size(1,2),polarity(1,2 )  = { 0if  1,2  are  both  polar  or  non - polar,1if  one  of  1,2  is  polar , and  the  other  non - polar , ph(1,2 )  = |ph  value  of  1ph  value  of  2|,size(1,2 )  = { 0,if  1,2  are  both  tiny , small , or  normal,1,if  one  of  1,2  is  tiny , and  the  other  small,2,if  one  of  1,2  is  tiny , and  the  other  normal,3,if  one  of  1,2  is  small , and  the  other  normal , 
 where  
 1 ,  
 2 are two amino acids . 

d( 
 1 ,  
 2 ) is then assigned to d( 
 1 ,  
 2 ) with  
 1 ,  
 2 corresponding to amino acids  
 1 ,  
 2 , respectively . since the generalized optimal control problem in ( 18 ) and ( 19 ) is a multistage problem that can be broken down into simpler steps at different time points .
for dynamic programming , the optimal control policy is constructed backward . and bellman 's principle of optimality states that the optimal policy for x 
 0 to { x 
 n 
 } is also the optimal policy for the tail problem , from x 
 q to { x 
 n 
 } .
the tail problem is defined as 
 ( 21)jq(xq)=min{u , c , v , c}q , q+1, 
,n1{k = qn1l1=1li=1nl1uk , l1i+k = qn1l2=1mi=1nl2ck , l2i  +  k = qn1l3=1li=1nl3vk , l3i+k = qn1l4=1mi=1nl4bk , l4i  +  k = qn{h , r , h,r}q , q+1,  ,n1[d(xk,{xkd})]}. 
 the iterative update equation to find optimal policy can be expressed by ( 22 ) , according to the dynamic programming algorithm in .
( 22)jn(xn)=d(xn,{xnd}),jq(xq)=minuq , cq , vq , cq  hq , rq , hq,rq[l1=1li=1nl1uq , l1i+l2=1mi=1nl2cq , l2i+l3=1li=1nl3vq , l3i  +  l4=1mi=1nl4cq , l4i+d(xq,{xqd})+jq+1(xq+1)]=minuq , cq , vq , cq{l1=1li=1nl1uq , l1i+l2=1mi=1nl2cq , l2i+l3=1li=1nl3vq , l3i  +  l4=1mi=1nl4cq , l4i  + hq , rq , hq,rq[d(xq,{xqd})+jq+1(xq+1 ) ] } ,  q=0,1,  ,n1 . 

in the following examples , we consider applying chemical mutagens only because the randomness of applying radiation is much larger and more difficult to control . we also omit the mutations between a normal base and o because of high - cost  
 l2 and the unavailable chemical and physical properties for codons containing o. the distance reference between codons used in sections 3.2 and 3.3 is computed by ( 20 ) with  
 polarity = 8 ,  
 ph = 3 ,  
 size = 1 ,  
 1 = 2 ,  
 2 = 5 and  
 3 = 3 .
we only keep the final penalty but omit the off - trajectory penalty along the trajectory .
we define the distance reference between bases as 
 ( 23)d(1,2)={0,if  xn = xnd,,if  xnxnd , 
 with  
 1 ,  
 2   
 {0 } , where  
 {0 } denotes the set  excluding the element 0 .
our optimal control problem for point mutations is 
 ( 24)j0(x0)=minuk , l1 ,  0kn ,  1l1l{k=0n1  l1=1ll1uk , l1 } , 
 subject to 
 ( 25)xk+1=(i+l1=1luk , l1s)xk , xn = xnd , 
 with x 
 0 given , x 
 k 
 
 {0}. suppose that there are 12 kinds of mutagens ( l 
 1 = 12 ) , each corresponding to a specific transfer pattern as in table 6 , all available controls and the respective costs can be immediately listed as in tables 7 and 8 .  
the elements along the antidiagonal of table 7 , u 
 at , u 
 gc , u 
 cg , and u 
 ta , are artificially added , because the complementary transfers naturally happen and no mutagen is necessary .
thus , the costs along the antidiagonal of table 8 are all zero , that is ,  
 at =  
 gc =  
 cg =  
 tc = 0 . the equivalence relationship between subscription in two nucleotide bases and subscription in integer l 
 1( 
 1 
  

2 ) : { a , t , g , c }  { a , t , g , c }  { integers  from  1  to  12 } is defined by table 6 .   under the above assumptions , we can write update equation for optimal policy explicitly as 
 ( 26)jq(xq)=minuq , l1{xq+jq+1(),{a , t , g , c}{0}}. 
 
 proposition 7for the same x 
 n 
 ,  jq()jq+1( ) , for all q , 0  q  n  1 , for all   { a , t , g , c } , where  denotes the complementary base of . if , in addition , the system is completely controllable , m , s.t .
j 
 m( ) is the global minimum and for all q  m , jq()=jm( ) if m  q 1  ( mod 2 ) , and j 
 q( ) = j 
 m( ) if m  q  0  ( mod 2 ) . in our example , m  n  6 . 
  for the same
x 
 n 
 ,  jq()jq+1( ) , for all q , 0  q  n  1 , for all   { a , t , g , c } , where  denotes the complementary base of . if , in addition , the system is completely controllable , m , s.t .
j 
 m( ) is the global minimum and for all q  m , jq()=jm( ) if m  q 1  ( mod 2 ) , and j 
 q( ) = j 
 m( ) if m  q  0  ( mod 2 ) . in our example ,
proofthis first part is due to the zero cost for the transfers between complementary bases in the consecutive steps . for any 0  q  n  1
, the relationship between minimal costs in consecutive steps is shown in ( 26 ) . since   { a ,
t , g , c } , +jq+1( ) is one of the four elements in the set from which the j 
 q( ) is picked .
moreover , =0 . therefore , jq+1( ) is one of the four elements in the set . since j 
 q( ) is the minimum picking for a set containing jq+1( ) ,
we conclude that jq()jq+1().the m value in our example is proved by brute force method , that is , j 
 n6( ) is a guaranteed global minimum . for completely controllable systems
the existence of m implies that for without limitation in the number of steps , we can reach the global optimal in n  m steps , 6 steps in our example.suppose that q = m , j 
 m( ) is the global minimum , thus jm-1()jm( ) .
jm-1( ) is also a global minimum.by backward induction , suppose for q = q 
 1 , the statement is true , that is , jq1 - 1()=jq1( ) is the global optimal either from xq1 - 1= or x 
 q1 =  to x 
 n 
 .
obviously , for q = q 
 1  1 , the statement is still true .
therefore , jq()=jq-2()=jq-1( ) ,  {a , t , g , c } , for all q , 2  q  m. 
  this first part is due to the zero cost for the transfers between complementary bases in the consecutive steps .  
for any 0  q  n  1 , the relationship between minimal costs in consecutive steps is shown in ( 26 ) . since   { a ,
t , g , c } , +jq+1( ) is one of the four elements in the set from which the j 
 q( ) is picked .
since j 
 q( ) is the minimum picking for a set containing jq+1( ) , we conclude that jq()jq+1( ) .
the m value in our example is proved by brute force method , that is , j 
 n6( ) is a guaranteed global minimum . for completely controllable systems , this m always exists .
the existence of m implies that for without limitation in the number of steps , we can reach the global optimal in n  m steps , 6 steps in our example .
suppose that q = m , j 
 m( ) is the global minimum , thus jm-1()jm( ) .
suppose for q = q 
 1 , the statement is true , that is , jq1 - 1()=jq1( ) is the global optimal either from xq1 - 1= or x 
 q1 =  to x 
 n 
 . obviously , for q = q 
 1  1 , the statement is still true .
therefore , jq()=jq-2()=jq-1( ) ,  {a , t , g , c } , for all q , 2  q  m. in the proof of global minimum that can be reached in the finite step in proposition 7 , we also discover proposition 8 . here , j 
 q(x 
 q , x 
 n 
 ) denotes the optimal cost from x 
 q to x 
 n 
 . 

proposition 8given two single base mutation optimal control problems , with the same fixed n , with and desired final states complementary to each other . if j 
 m( , x 
 n 
 ) is the global minimum , then jm(,xnd ) is also the global minimum , that is , the global minimum of both systems is reach at the same stage m. moreover , for all q , 0  q  m , 
 ( 27)jq(,xnd)=jq(,xnd ) ,  ,xnd{a , t , g , c}. 

  given two single base mutation optimal control problems , with the same fixed n , with and desired final states complementary to each other .
if j 
 m( , x 
 n 
 ) is the global minimum , then jm(,xnd ) is also the global minimum , that is , the global minimum of both systems is reach at the same stage m. moreover , for all q , 0  q  m , 
 ( 27)jq(,xnd)=jq(,xnd ) ,  ,xnd{a , t , g , c}. 
 
 physically , proposition 8 states that the optimal can be achieve at the same step from a pair of complementary bases to another pair of complementary bases at the same cost . however
, this fact is true only for base - to - base deterministic mutations , because the distance reference is well defined by ( 23 ) .  
since we apply mutagens before the replication starts , u 
 aa actually transfer a to t and then to a by replication . for simplicity
, we just use the kth and ( k + 1)th step states as subscripts to represent the corresponding control and cost .
therefore ,  
 ac ,  
 ca ,  
 gt ,  
 tg is smaller than other mutagens , except artificial ones . if we use  to denote the costs of mutagens as listed in table 9 , then  
 ( 28)=[5.216.602.3306.158.9503.824.6109.177.2400.645.0910.28]=[aaagacatgagggcgtcacgcccttatgtctt][1230450670890101112 ] . 
 
 running the dynamic programming for every pair of ( x 
 q , x 
 n 
 )  { a , t , g , c }  { a , t , g , c } , n = 9 . here , we sightly modify our notation .
we use j 
 q(x 
 q , x 
 n 
 ) to denote the optimal cost from x 
 q to x 
 n 
 . then ,  
 ( 29)jq=[jq(a , a)jq(a , g)jq(a , c)jq(a ,
t)jq(g , a)jq(g , g)jq(g , c)jq(g , t)jq(c , a)jq(c , g)jq(c , c)jq(c , t)jq(t , a)jq(t , g)jq(c , c)jq(t , t ) ] . 
 

the path to reach the optimal cost is denoted by 
 ( 30)pq=[pq(a , a)pq(a , g)pq(a , c)pq(a , t)pq(g , a)pq(g , g)pq(g , c)pq(g , t)pq(c , a)pq(c , g)pq(c , c)pq(c , t)pq(t , a)pq(t , g)pq(t , c)pq(t , t ) ] , 
 
 where p 
 q(x 
 q , x 
 n 
 ) is the ( q + 1)th state from x 
 q to x 
 n 
 , that is , x 
 q+1 = p 
 q(x 
 q , x 
 n 
 ) . the simulation results are shown as below , including optimal costs for all possible transfer pairs ( x 
 q , x 
 n 
 )  { a , t , g , c }  { a , t , g , c } , j 
 q , 0  q  8 , graphical representation in figure 6 , and optimal path p 
 q , 0  q  7 .
( 31)j0=[5.215.090.6406.156.7903.823.8206.796.1500.645.095.21],j1=[00.645.095.213.8206.796.156.156.7903.825.215.090.640],j2=[5.215.090.6406.156.7903.823.8206.796.1500.645.095.21],j3=[00.645.095.213.8206.796.156.156.7903.825.215.090.640],j4=[5.215.090.6406.156.7903.823.8206.796.1500.645.095.21],j5=[00.645.095.213.8206.796.156.156.7903.825.215.090.640],j6=[5.215.090.6406.156.7903.823.8207.886.1500.645.095.21],j7=[00.645.095.213.8208.486.156.157.8803.825.215.090.640],j8=[5.216.602.3306.158.9503.824.6109.177.2400.645.0910.28 ] , 
 
 ( 32)p0=[a , tttta , ca , ccc , tggggaa , ga , ca],p1=[ttta , tc , tca , ca , cggggaa , ca , ga],p2=[a , tttta , ca , ccc , tggggaa , ga , ca],p3=[ttta , tc , tca , ca , cggggaa , ca , ga],p4=[a , tttta , ca , ccc , tggggaa , ga , ca],p5=[ttta , tc , tcaa , cggggaa , ca , ga],p6=[a , tttta , cacc , tggtgaa , ga , ca],p7=[tttatcaagtggacga ] . 
 
 for simplicity
, we use 1 to represent a , 2 to g , 3 to c , and 4 to t in graphical interpretation . from figure 6
, we can see clearly that the optimal cost decreases as q decreases in the first few steps , and then optimal cost remains at the global minimum .
this phenomenon obeys proposition 7 . in this example , global optimal is reached at m = 5 for all pairs of initial and final states as j 
 7  j 
 5 = j 
 3 and j 
 6  j 
 4 = j 
 2 .
so , the global minimum is achieved before we reach n  5 = 4 in this particular case .
this also implies that with n free we can reach desired final state in 4 steps from given initial state . observing closely to j 
 q , 0  q  5 ,
j 
 q1 equals to j 
 q by exchanging the first and the last columns , and the second and the third columns , which is consistent with proposition 8 .
or we can exchange the first and the last rows , and the second and the third rows of j 
 q to obtain j 
 q1 .
j 
 q1 and j 
 q2 are the same for q 
 1 , q 
 2  m = 5 for q 
 1  q 
 2 = 0 ( mod 2 ) .
the optimal trajectories are generated from p 
 q(x 
 q , x 
 n 
 ) .
for example , given x 
 2 = t , and the final state x 
 9 
  = g , we want to generate the optimal trajectories .  

x 
 3 = p 
 2(t , g ) = a , g.   if x 
 3 = a , x 
 4 = p 
 3(a , g ) = t ; if x 
 3 = g , x 
 4 = p 
 3(a , g ) = c. if x 
 4 = t , x 
 5 = p 
 4(t , g ) = a , g ; if x 
 4 = c , x 
 5 = p 
 4(c , g ) = g. if x 
 5 = a , x 
 6 = p 
 5(a , g ) = t ; if x 
 5 = g , x 
 6 = p 
 5(g , g ) = c.   if x 
 6 = t , x 
 7 = p 
 6(t , g ) = a , g ; if x 
 6 = c , x 
 7 = p 
 6(c , g ) = g. if x 
 7 = a ,
x 
 8 = p 
 7(a , g ) = t ; if x 
 7 = g , x 
 8 = p 
 7(g , g ) = c. so , the optimal routes are 
 tatatattgutgg ; 
 tatattgutggcg ; 
 tattgutggcgcg ; 
 ttgutggcgcgcg .  
 consequently , the optimal cost is j 
 2(t , g ) = 0.64 =  
 tg .  
optimal trajectories for other pairs of initial and final states can be obtained in the same manner .  
it takes less than 1 second to generate optimal trajectories for all pairs of initial and final states with n = 9 on a regular desktop .
since we have already proven by the brute force method that the global optimal can be achieved with m  6 , the computation time can be further reduced by taking n = 6 with all the results necessary for this example . for codon - to - codon deterministic mutations ,
we formulate our optimal control problem as 
 ( 33)j0(x0)=minuk , l1i ,  0kn,1l1l ,  1i3{k=0n1l1=1li=13l1uk , l1i+d(xn,{xnd } )  } , 
 subject to 
 ( 34)xk+1=(i+l1=1li=13uk , l1iseieit)xk , 
 with x 
 0 , x 
 n 
    
 {0 } 
  given , x 
 k   
 {0 } 
 , for all k , 0  k  n , and d( 
 1 ,  
 2 ) ,  
 1 ,  
 2   
 {0 } 
  as defined in section 2.3 .  
if we take the same assumption on available mutagens as in section 3.1 , then we can write update equation for optimal control policy explicitly as 
 ( 35)jq(xq)=minuq , l1i ,  1l1l ,  1i3{xq11+jq+1([1xq2xq3 ] ) ,  xq22+jq+1([xq12xq3]),xq33+jq+1([xq1xq23 ] ) ,  1,2,3{a , t , g , c}{0 } } , 
 with x 
 q 
   { a , t , g , c} 
 {0 } , 1  i  3 denotes the ith element of x 
 q   
 {0 } 
 , and xqi denotes the complementary base of x 
 q 
 .
the optimal control sequences depend on the numerical values of  
 l1s and d( 
 1 ,  
 2 ) ,  
 1 ,  
 2   
 {0 } 
 . though we do not have real values of  
 l1s and d( 
 1 ,  
 2 )
, we can always obtain simulation results to compare the result differences by assigning different numerical values to those parameters .
therefore , we use three different assignments of  
 l1s and the same d( 
 1 ,  
 2 ) to generate our simulation results . those three assignments of  
 l1s are  , 5 , and 0.5 , respectively , with  the same as assigned in section 3.1 .
in every particular example , it takes approximately 2 seconds on a regular desktop to generate the optimal path table for all pairs of initial and final states with n = 19 , and the dynamic programming algorithm ensures that the optimal control for tail problems is generated at the same time .
the graphical interpretation of three assignments are shown in figures 7 , 8 , and 9 , respectively .
the x - axis and y - axis denote x 
 q and x 
 n 
 , respectively . for a codon [  
 1   
 2   
 3 ] ,  
 1 ,  
 2 ,  
 3  { a , t , g , c} 
 {0 } , its index is calculated by 
 ( 36)42(11)+4(21)+3,where  
 i = 1 if a ,  
 i = 2 if g ,  
 i = 3 if c , and  
 i = 4 if t , 1  i  3 , for the simplicity of graphical interpretation .
thus , there are 64 pairs of initial and final desired states , and there are 64  21 pairs of initial state and final desired set .
j 
 q is calculated following the same procedure as in base - to - base deterministic cases . the value of optimal cost can be read directly from graphical interpretation , and the optimal path can be generated from path matrix p 
 q , similar to base - to - base deterministic case . both j 
 q and p 
 q , for  all 
q ,  0  q  n , are of 64  64 dimension . from the graphical interpretation and table 10 , we find that the value of q where the global minimum is reached at the first time decreases as  
 l1 decreases .
and j 
 0 is more similar to j 
 18 with  = 5 than with  =  or  = 0.5. this implies that if d( 
 1 ,  
 2 ) are the deterministic term in our objective function , then the treatment plan is made to drive the final state as close to the desired set as possible ; if the costs of applying mutagens is the deterministic term in the objective function , then the treatment plan tends to stay in the original state and applies less mutagens ; if they are of equal weight , then the treatment plan deals with this tradeoff .
moreover , no matter how the numerical values of final penalty and the costs of applying mutagens changes in our objective function as shown in ( 33 ) , there is always a m , m  n  18 , j 
 m(x 
 m ) is global minimum .
proposition 7 can be extended to codon - to - codon deterministic mutations as stated in proposition 9 . 

proposition 9given an optimal control problem with objective function in the form of ( 33 ) , constraints in the form of ( 34 ) , and all available chemical mutagens and their corresponding transfer pairs and costs as listed in tables 6 , 7 , and 8 , jq()jq+1( ) ,  {0}3 . if , in addition , the system is completely controllable , m , s.t .
j 
 m( ) is the global minimum and for all q  m , jq()=jm( ) if m  q  1  ( mod 2 ) , and j 
 q( ) = j 
 m( ) if m  q  0  (  mod  2 ) . in our example , m  n  18
. 
  given an optimal control problem with objective function in the form of ( 33 ) , constraints in the form of ( 34 ) , and all available chemical mutagens and their corresponding transfer pairs and costs as listed in tables 6 , 7 , and 8 , jq()jq+1( ) ,  {0}3 . if , in addition , the system is completely controllable , m , s.t .
j 
 m( ) is the global minimum and for all q  m , jq()=jm( ) if m  q  1  ( mod 2 ) , and j 
 q( ) = j 
 m( ) if m  q  0  (  mod  2 ) . in our example , m  n  18
n  18 here since the rest is similar to the proof of proposition 7 .
the objective function in ( 33 ) can be written as the summation of three separate single - base mutation systems and the distance reference between final states and the final desired set , that is ,  ( 37)jq(xq)=minn1,n2,n302nn1+n2+n33n1{jn1(xn1)(xq1,1)  optimal  costs  of  base - to - basedeterministic  optimal  controlproblem  formed  by  the  1st  base  + jn2(xn2)(xq2,2)optimal  costs  of  base - to - base  deterministic  optimal  controlproblem  formed  by - the  2nd  base  +  jn3(xn3)(xq3,3)optimal  costs  of  base - to - basedeterministic  optimal  control  problemformed  by  the  3rd  base  + d([123],{xnd } ) } , 
 where n  q = ( n  n 
 1 ) + ( n  n 
 2 ) + ( n  n 
 3).according to proposition 7 , j 
 n6(x 
 n6 ) is guaranteed to be the global optimal for single - base mutations . therefore , optimal costs corresponding to three single - base mutation systems , j 
 n1(x 
 n1)(x 
 q 
 ,  
 1 ) , j 
 n2(x 
 n2)(x 
 q 
 ,  
 2 ) , j 
 n3(x 
 n3)(x 
 q 
 ,  
 3 ) are guaranteed to reach their own global optimal at n 
 1 = n 
 2 = n 
 3 = n  6 with all possible combinations of  
 1 ,  
 2 ,  
 3  { a , t , g , c}. therefore , q = n  18 is a guaranteed global optimal . 
 
n  18 here since the rest is similar to the proof of proposition 7 .   the objective function in ( 33 ) can be written as the summation of three separate single - base mutation systems and the distance reference between final states and the final desired set , that is ,  ( 37)jq(xq)=minn1,n2,n302nn1+n2+n33n1{jn1(xn1)(xq1,1)  optimal  costs  of  base - to - basedeterministic  optimal  controlproblem  formed  by  the  1st  base  + jn2(xn2)(xq2,2)optimal  costs  of  base - to - base  deterministic  optimal  controlproblem  formed  by - the  2nd  base  +  jn3(xn3)(xq3,3)optimal  costs  of  base - to - basedeterministic  optimal  control  problemformed  by  the  3rd  base  + d([123],{xnd } ) } , 
 where n  q = ( n  n 
 1 ) + ( n  n 
 2 ) + ( n  n 
 3 ) . according to proposition 7 ,
j 
 n6(x 
 n6 ) is guaranteed to be the global optimal for single - base mutations .
therefore , optimal costs corresponding to three single - base mutation systems , j 
 n1(x 
 n1)(x 
 q 
 ,  
 1 ) , j 
 n2(x 
 n2)(x 
 q 
 ,  
 2 ) , j 
 n3(x 
 n3)(x 
 q 
 ,  
 3 ) are guaranteed to reach their own global optimal at n 
 1 = n 
 2 = n 
 3 = n  6 with all possible combinations of  
 1 ,  
 2 ,  
 3  { a , t , g , c}. therefore , q = n  18 is a guaranteed global optimal . indeed ,
the m value where the first global optimal is reached at earlier stage as listed in table 10 .  
graphically , the indices of complementary codons  
 1 = [  
 1   
 2   
 3 ] and 2=[1    2  3]t sum up to 65 , that is ,  
 ( 38 )  ( 16(11)+4(21)+3 )  + ( 16(11)+4(21)+3 )  = ( 16(11)+4(21)+3 )  + ( 16((51)1)+4((52)1)+(53 ) )  = 65 . 
 
 therefore , j 
 q and j 
 q1 , 1  q  m are symmetric about the plane x = 32.5 , j 
 q2 and j 
 q , 2  q  m are the same , as shown in figures 7 , 8 , and 9
. however , proposition 8 can not be extended to codon - to - codon deterministic case due to the redundancy of genetic codes , that is , the set of codons translated to the same amino acid varies from one amino acid to another as shown in table 5 .
the simulation results show that the costs , a pair of complementary codons , to two final desired set generated by a pair of complementary final desired codons are different , that is , jq(xq,{xnd})jq(xq,{xnd } ) , in general , for any q. graphically , the optimal cost profile j 
 q is not symmetric about the plane y = 32.5 for j 
 q1 , 1  q  m. therefore , the doctors need to pick the strand with lower cost to make the treatment plan .
this also implies that in large - scale cases , for instance , a gene containing hundreds of nucleotide bases , the doctors should make the treatment plan based on the strand the total cost of which is lower than the other .
the optimal control problem of codon - to - codon stochastic mutations can be written as 
 ( 39)j0(x0)=minuk , l1i ,  0kn11l1l ,  1i3{k=0n1l1=1li=13l1uk , l1i  + hk , l1i ,  0kn11l1l ,  1i3[d(xn,{xnd } ) ] } , 
 subject to 
 ( 40)xk+1=ixk+l1=1li=13uk , l1ihk , l1iseieitxk , 
 with x 
 0 , x 
 n 
    
 {0 } 
  given , x 
 k
the major difference between deterministic and stochastic systems is that we impose the random binary vector , h 
 k , l1 
 , in our system equation ( 40 ) .
we denote the probability associated with h 
 k , l1 
  to be p 
 l1,12 
  with  
 1 ,  
 2  { a , t , g , c}. the equivalence relationship between j and  
 1 
  
 2 can be found in table 3 .
again , we assume that we have l 
 1 = 12 kinds of mutagens , each corresponding to one major transfer pattern , associated with probability assignments , as listed in table 11 .  
then , we can write updated formula for optimal control policy explicitly as 
 ( 41)jq(xq)=minuq , l1i ,  1l1l ,  1i3{xq11+hq , l1(xq11)1[jq+1([xq2xq3 ] ) ] ,  xq22+hq , l1(xq22)2[jq+1([xq1xq3 ] ) ] ,  xq33+hq , l1(xq33)3[jq+1([xq1xq2 ] ) ] ,  1,2,3{a , t , g , c}{0 } } 
 where 
 ( 42)hq , l1(xq11)1[jq+1([xq2xq3])]=pl1(xq11 ) ,  xq1a(h)[jq+1([axq2xq3 ] ) ]  + pl1(xq11 ) ,  xq1g(h)[jq+1([gxq2xq3 ] ) ]  + pl1(xq11 ) ,  xq1c(h)[jq+1([cxq2xq3 ] ) ]  + pl1(xq11 ) ,  xq1t(h)[jq+1([txq2xq3 ] ) ] , 
 
 where x 
 q 
   { a , t , g , c} 
 {0 } , 0  q  n  1 , 1  i  3 denotes the ith element of x 
 q   
 {0 } 
 , xqi denotes the complementary base of x 
 q 
 , and l 
 1 :  
 1 
  
 2  { a , t , g , c }  { a , t , g , c }  { integers  from  1  to  12 } , the mapping from major transfer pattern  
 1   
 2 to mutagen index , as shown in table 11 .
the mathematical expression of hq , l1(xq22)2[jq+1([xq1    xq3]t ) ] and hq , l1(xq33)3[jq+1([xq1xq2]t ) ] is similar to hq ,
l1(xq11)1[jq+1([  xq2  xq3]t ) ] as shown above . in order to run the simulation ,
we assign numerical values to probabilities in table 11 , as illustrated in table 12 .   as in section 3.2 , we use three different assignments for  
 l1s ,  , 5 , and 0.5 , respectively . the optimal cost profile j 
 q with selected q values , for every pair of ( x 
 q , x 
 n 
 )
, is graphically interpreted in figures 10 , 11 , and 12 , respectively , with n = 29 , with computation time of approximately 7 seconds on a regular desktop .
the profile of j 
 0 is more similar to j 
 29 when  
 l1s are assigned 5 than  or 0.5. this implies in codon - to - codon stochastic mutations ; the optimal control sequence behaves as codon - to - codon deterministic cases , that is , the system tends to getting as close as possible to the final desired set if  
 l1s are much smaller than d( 
 1 ,  
 2 ) , and the system tends to remain in the same state with minor mutations when  
 l1s are relatively larger than d( 
 1 ,  
 2 ) ,  
 1 ,  
 2   
 {0 } 
 . and jq()jq+1( ) ,    
 {0 } 
  is still valid in codon - to - codon stochastic case .
however , for stochastic cases , we can not reach a global minimum because of the randomness caused by mutagens . since , in usual cases , there exists no stationary global minimum
, we need to define error tolerance  , that is , if |jq()-jq-1()| with the same { x 
 n 
 } , then we can stop at j 
 q(x 
 q ) .
however , we can still observe figures 10 , 11 , and 12 to conclude that j 
 0 and j 
 2 are almost of the same shape in all three different parameter assignments .
higher dimensional optimal control problems , gene - to - gene stochastic mutations , can be solved as a series of cascade codon - to - codon stochastic problems .
in this paper , we present a mathematical model to deal with mutations in the process of dna replication in the view of control systems . different from the existing models , our model is constructed directly from the basic biological theories , the central dogma in molecular biology , and the complementary base pair for dna molecules with double helix structure .
it precisely describes how the induced mutations affect the targeted dna segments at molecular level .
it provides instrumental information of molecule interactions in gene mutation for biologists and doctors to gain a better understanding of cellular and tissue level systems ' behavior .
though we emphasize that we target at induced mutations during the process of dna replication in our work , this model can be extended to other biological processes at molecular level , such as transcription process and dna brokage . in our optimal control problem ,
the objective function includes two factors : the risk / cost of applying mutagens and the off - trajectory penalty . under optimal control policy ,
the summation of those two factors are minimized , by dynamic programming , to propose a low - risk treatment plan .
we define the distance reference following the chemical and physical properties of amino acids , representing the penalty .
our objective is to drive the system from given initial state to the final desired set generated by the final desired state at the lowest cost .
we define the final desired set since redundancy in genetic codes gives us additional options of final desired state to further lower the cost .
we also discuss three different small - scale system , and show the simulation results of examples .
the optimal control problems of base - to - base deterministic mutations and codon - to - codon deterministic mutations are of theoretical importance . as shown in the propositions , the global optimal
if the step limit is larger than the number of steps that global optimal can achieve , then we have some flexibility in our treatment plan .
in addition , there exist multiple optimal paths with the same total cost , given the initial state and the final desired set .
the optimal control problem of codon - to - codon stochastic mutations is of practical importance , since codon is the basic component forming long dna sequences .
the step limit n is decided by doctors according to patients ' conditions , and the treatment plan is made according to the initial state , the final desired set , and the step limit . since the doctors constantly take measurement to see the result of treatments at current stage , the treatment plan is updated accordingly . solving codon - to - codon
stochastic optimal control problem is a key step to realize the optimal control to gene - to - gene stochastic mutations in the real world .
the optimal control sequences generated by dynamic programming make it possible for biologists and doctors to mutate certain sections of genes on purpose in laboratory , at a relative low cost and low risk , which is an essential step to identify the functional units , to examine the interactions among different segments , and to find healthy , harmful , and lethal nucleotide sequences .
all those results are beneficial in gene network construction . in addition , the fundamental details of gene mutations at molecular level help biologists to elaborate on the biological theories at the cellular and tissue levels , such as the theory of evolution . moreover , by our method , biologists can distinguish the harmful and beneficial mutations and induce beneficial mutations during the evolution process in a proper way , which greatly helps to save rare species in danger .
furthermore , our solution to the optimal control problem proposed provides a new medical intervention to genetic diseases .
compared to the existing gene therapy , treatments by mutagens are safer by avoiding the side effect of virus infection .
calculation errors , the mispairings in the process of two single - stranded dna segments , can be corrected at lowest cost by applying a correct mutagen sequence .
further work can be done by extending codon - to - codon stochastic optimal control problem to gene - to - gene stochastic mutations . the distance reference between dna segment with equal length
can be defined as a weighted sum of the distance references between codons . since certain combinations of amino acids
this goal can be achieved by either defining a preset trajectory or eliminating high - risk sequences in the state space .
under this situation , the spontaneous mutations can be modeled as an additional random factor in our state updating equations , and another random noises should be added to the output equation .
 we propose a molecular - level control system view of the gene mutations in 
 dna replication from the finite field concept . by treating dna sequences as state variables , 
 chemical mutagens and radiation as control inputs , one cell cycle as a step increment , and the 
 measurements of the resulting dna sequence as outputs , we derive system equations for both 
 deterministic and stochastic discrete - time , finite - state systems of different scales . defining the 
 cost function as a summation of the costs of applying mutagens and the off - trajectory penalty , 
 we solve the deterministic and stochastic optimal control problems by dynamic programming 
 algorithm . 
 in addition , given that the system is completely controllable , we find that the 
 global optimum of both base - to - base and codon - to - codon deterministic mutations can always 
 be achieved within a finite number of steps . 
1. Introduction
2. System Equations and Generalized Optimal Control Problem Formulation
3. Results and Discussion
4. Conclusion 