<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "https://jats.nlm.nih.gov/publishing/1.3/JATS-journalpublishing1-3.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.3" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="publisher-id">jcse</journal-id><journal-title-group><journal-title>Journal of Computational Science and Engineering</journal-title></journal-title-group><issn>1710-4068</issn><publisher><publisher-name>Advancersin</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">jcse-v6-a05</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group></article-categories><title-group><article-title>Solving Methods To A Class of Nonlinear lp Problem Based on Quantum Genetic Algorithm</article-title></title-group><contrib-group><contrib contrib-type="author"><name name-style="western"><surname>Zhao</surname><given-names>Jianqiang</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author"><name name-style="western"><surname>Chen</surname><given-names>Bike</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author"><name name-style="western"><surname>Dai</surname><given-names>Qingsong</given-names></name><xref ref-type="aff" rid="aff-2"/></contrib></contrib-group><aff id="aff-1">School of Mathematic and Physical Science ,Xuzhou institute of technology</aff><aff id="aff-2">Xuzhou institute of technology ,Xuzhou, Jiang Su 221111,China</aff><pub-date publication-format="electronic" date-type="pub" iso-8601-date="2013-05-10"><day>10</day><month>05</month><year>2013</year></pub-date><volume>6</volume><fpage>255</fpage><lpage>259</lpage><permissions><copyright-statement>2013 © The American Computational Science Society.</copyright-statement><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><ali:license_ref xmlns:ali="http://www.niso.org/schemas/ali/1.0/" start_date="2021-11-26">https://creativecommons.org/licenses/by/4.0/</ali:license_ref><license-p>This article is licensed under the Creative Commons Attribution 4.0 International license (CC BY 4.0), which permits sharing and adaptation, including commercial reuse, subject to attribution, a link to the license and an indication of changes. Third-party material separately credited with different terms is governed by the license or rights notice stated for that material.</license-p></license></permissions><self-uri content-type="fulltext" xlink:href="https://www.advancersin.org/jcse/articles/jcse-v6-a05/index.html"/><self-uri content-type="pdf" xlink:href="https://www.advancersin.org/jcse/articles/jcse-v6-a05/jcse-v6-a05.pdf"/><abstract><p>This paper constructs a new intelligent algorithm for solving nonlinear problems which is Quantum Genetic hair. In this paper ,it gives the specific steps and associated quantum genetic algorithm code Validated by an example .The results show quantum genetic algorithm for solving nonlinear problem is very effective and practical.</p></abstract><kwd-group><kwd>Nonlinear problems</kwd><kwd>Quantum genetic algorithm</kwd><kwd>Intelligent algorithm</kwd></kwd-group></article-meta></front><body>
    <sec>
      <title>Introduction</title>
      <p>We often encounter the following issues difficult to deal with, in automatic control, system identification, filtering design engineering practice and scien tific research and other fields.</p>
      <p>min ( ) ( ) ( 0) . . ( ) 0 ( 1, 2, , ) n m p i x R i j f x f x p s t g x j s         ,</p>
      <p>（ ）</p>
      <p>Where ( ), {1, 2, , } i f x i I m    is continuously differentiable function, and at least one non linear. At present, there are many results for solving this problem. Literature [1] ta kes advantage of multi objective planning and maximum entropy</p>
    </sec>
    <sec>
      <title>methods to study on this function,</title>
      <p>assuming 0 1 p   ;</p>
      <p>Also assuming 0 1 p   , literature [2] [3] [4] use the adjustable entropy method to study on such issues, since the variable is not restricted; Using adjustable interval extension of the entropy function and relevant regional delete testing principles ,Literature [5] solves such problems.</p>
      <p>In recent years, with the development of</p>
      <p>(2013) 255 -</p>
      <p>© The American Computational Science Society. All rights reserved.</p>
      <p>computer technology, some group s have appeared intelligent optimization algorithm , f or example the literature [6] [7] . Among them, the literature [6] us es particle swarm algorithm to solv e nonlinear norm minimization problem . However, this method has a drawback that solution accuracy is not high.</p>
      <p>In this paper, we use quantum genetic intelligent algorithm to solve the above problems , assuming</p>
      <p>p  . The advantages of this algorithm is s peed and high accuracy. Simulation results show that the algorithm in solving such problems is practical and effective.</p>
      <p>2.</p>
      <p>Quantum Genetic Algorithm</p>
      <p>2.1 Quantum Algorithm</p>
      <p>Quantum computing us es quantum states as the basic unit of information, mak ing full use of quantum superposition, entanglement and interference and other characteristics. It solves the classical calculation NP hard problems by quantum parallel computing.</p>
      <p>In 1994,</p>
      <p>S HOR presented the first quantum algorithm for solving the prime factorization o f large numbers of classical computational problems . The algorithm can be used for public key systems RSA. In 1996 ,</p>
      <p>Grover proposed quantum random database search algorithm .</p>
      <p>The algorithm can be realized in a quantum computer database for failure to add in teger N</p>
      <p>magnitude speed up the search . Since then, quantum computing rapidly become s a research hotspot.</p>
      <p>. . Genetic Algorithms</p>
      <p>Genetic algorithm is the computing model which simulat ing Darwinian theory of evolution by natural s election and Mendel genetics of biological evolution .</p>
      <p>It is a n optimal solution search methods</p>
      <p>by simulating natural evolutionary process . Genetic algorithms are not constrained by n ature of the problem, optimization criteria, etc. It uses objective func tion to globally adaptive search u nder the guidance of the probability . It is able to solve complex problems .</p>
      <p>T raditional optimization</p>
    </sec>
    <sec>
      <title>methods are difficult to solve</title>
      <p>these problems .</p>
      <p>However, this method is prone to premature population, slow convergence</p>
      <p>.3</p>
      <p>Quantum Genetic Algorithm</p>
      <p>Since p arallel processing capabilities of quantum algorithm can compensate for the shortcomings of GA ,</p>
      <p>m any s cholar have suggested combining the two algorithms and get quantum genetic algorithm .</p>
      <p>Quantum genetic algorithm [7][ ] uses the probability amplitude expressed qubit chromosome coding , Using quantum superposition state revolving door on the role as the evolution operator</p>
      <p>b ased on the principle of quantum evolution .</p>
      <p>Quantum genetic algorithm has better population diversi ty and parallel computing capabilities.</p>
      <p>2.4</p>
      <p>Quantum genetic algorithm steps (combined herein example)</p>
      <p>Step1 ： Quantum Coding</p>
      <p>Coded quantum genetic algorithm combines quantum algorithm and genetic algorithm encoding.</p>
      <p>Using genetic algorithm binary coding, each component can be an independent variable to represent quantum genes, such as available:</p>
      <p>1 2 1 2 i i ik i i ik              </p>
      <p>.</p>
      <p>Each gene consists of a number of quantum bits qubits, each qubit has two states. Respectively, with a certain probability that | | ij  and | | ij  are taken to 0 state and the 1 state. For the existence of multi state problem encoding, each individual available quantum quantum encoded form as follows:</p>
      <p>(2013) 255 -</p>
      <p>© The American Computational Science Society. All rights reserved.</p>
      <p>11 12 1 21 22 2 1 2 11 12 1 21 22 2 1 2 t t t t t t t t t t k k n n nk j t t t t t t t t t k k n n nk q                                 </p>
      <p>.</p>
      <p>Quantum code is corresponding to initial population in the spec ific example of solving. In the initialization,</p>
      <p>let 1/ 2 ij ij     ， Binary encoding length of each variable is k. To numerical examples in this article, let k=20 .</p>
      <p>Step2 ： Finding the fitness value of the population</p>
      <p>In the design of the fitness function, we make ( ) f x  as fitness function. After the above test population into the fitness function, we can find the fitness function values.</p>
      <p>Step3 ： Quantum revolving door</p>
      <p>In quantum genetic algorithm, we usually use the revolving door to quantum information to operate. The process is as follows:</p>
      <p>' ' cos( ) sin( ) sin( ) cos( ) i i i i i i i i                                   ,</p>
      <p>  ’s amplitude affects the convergence rate.If the amplitude is too large, it will lead to precocious.   ’s symb ol affects the quantum rotation direction, specifically as follows:</p>
      <p>Fig.</p>
    </sec>
    <sec>
      <title>1 Quantum plot revolving door</title>
      <p>When the quantum bit is in the first and third quadrant, i   is set to positive (negative),in order to increase the value "1" (" 0") the probability; When the quantum bit is in the second, and fourth quadrant, i   is set to negative (positive),in order to increase the value "0" ("1") the probability.</p>
      <p>Table 1 -</p>
    </sec>
    <sec>
      <title>1 Rotation angle selection strategy</title>
      <p>i x</p>
      <p>i best</p>
      <p>    i i f x f best </p>
      <p>i  </p>
      <p>false</p>
      <p>true</p>
      <p>false</p>
      <p>0.01 </p>
      <p>true</p>
      <p>0.01 </p>
      <p>false</p>
      <p>0.01 </p>
      <p>true</p>
      <p>0.01 </p>
      <p>false</p>
      <p>true</p>
      <p>Table - Rotation angle selection strategy</p>
      <p>  , i i s  </p>
      <p>i i   </p>
      <p>i i   </p>
      <p>i  </p>
      <p>i  </p>
      <p>+1</p>
      <p>-</p>
      <p>+1</p>
      <p>-</p>
      <p>+1</p>
      <p>+1</p>
      <p>-</p>
      <p>+1</p>
      <p>+1</p>
      <p>+1</p>
      <p>-</p>
      <p>+1</p>
      <p>Where i x is the current bit i chromosome; i b e s t is a current optimal chromosome bit i; ( ) i f x is the fitness function;   , i i s   is the angle of rotation direction ； i   is the rotational angular size. According to the choice of strategy of table 1, we will present the individual's fitness value ( ) i f x</p>
      <p>and populations to adapt to the current best individual value ( ) i f b e s t Compare. If     i i f x f b e s t  , We will adjust the current individual corresponding qubits, making probability amplitude for   , i i   favor i x</p>
      <p>appeared toward the direction of evolution; If     i i f x f b e s t  , We will adjust the current individual corresponding qubits, making probability amplitude for   , i i   favor i b e s t</p>
      <p>appeared toward the direction of evolution.</p>
      <p>3.</p>
      <p>M atlab program design for Quantum gen etic algorithm</p>
      <p>The following, we design quantum genetic algorithm procedures for solving equations (1). Part</p>
      <p>(2013) 255 -</p>
      <p>© The American Computational Science Society. All rights reserved.</p>
      <p>of the code is as follows:</p>
      <p>） Initialing population and the parameters of</p>
      <p>( ) Q t</p>
      <p>.</p>
      <p>MAXGEN=200;</p>
      <p>sizepop=40;</p>
      <p>lenchrom=[20 , 20];</p>
      <p>chrom=Initpop</p>
      <p>(sizepop*2,sum(lenchrom));</p>
      <p>） Testing each individual of</p>
      <p>( ) Q t</p>
      <p>Binary=collapse</p>
      <p>(chrom)</p>
      <p>） Evaluatin g the fitness of each individual of</p>
      <p>( ) Q t</p>
      <p>[fitness,</p>
      <p>X]=fitnessfunction</p>
      <p>(binary,</p>
      <p>chrom);</p>
      <p>） Let the best individual goals as the next generation evolution</p>
      <p>[best.</p>
      <p>fitness bestindex]=max(fitness);</p>
      <p>） While （ i&lt;=MAXGEN ） do</p>
      <p>Initialing popul ation and the parameters of</p>
      <p>( ) Q t</p>
      <p>(Program code above)</p>
      <p>Evaluating the fitness of each individual of</p>
      <p>( ) Q t</p>
      <p>（ Program code above ）</p>
      <p>Updating quantum gate populations, get the next generation population   Q t </p>
      <p>C hrom</p>
      <p>=</p>
      <p>Qgate</p>
      <p>(</p>
      <p>chrom,</p>
      <p>fitness,</p>
      <p>best,</p>
      <p>binary);</p>
      <p>Recording the best individual and the corresponding fitness value</p>
      <p>If new</p>
      <p>best</p>
      <p>fitness&gt;best.</p>
      <p>fitness</p>
      <p>best</p>
      <p>fitness=new</p>
      <p>best</p>
      <p>fitness;</p>
      <p>best</p>
      <p>binary=binary(new</p>
      <p>best</p>
      <p>index,:);</p>
      <p>best</p>
      <p>chrom=chrom(2*newbes tindex - 1:2*new</p>
      <p>best</p>
      <p>index);</p>
      <p>best</p>
      <p>X=X(new</p>
      <p>best</p>
      <p>index)</p>
      <p>E nd</p>
      <p>Update iteration ： t t  </p>
      <p>i=i+1</p>
      <p>end w hile</p>
      <p>） Returning l a s t Q (last generation) in the best fitness value</p>
      <p>4.</p>
      <p>Numerical examples</p>
      <p>For the</p>
      <p>numerical examples in the</p>
      <p>literature [ ] , we let 1,0.3,3 p  :</p>
      <p>min ( ) ( ) ( 0) . . ( ) 0 ( 1, 2, , ) n p m i x R i j f x f x p s t g x j s        </p>
      <p>,</p>
      <p>where ：</p>
      <p>    1 1 2 2 2 2 3 1 2 1 2 1 1 2 2 1 2 ( ) cos , ( ) sin ( ) 1 f x x f x x f x x x x x g x x x g x x x             </p>
      <p>.</p>
      <p>The results ：</p>
      <p>Table 2 0.3 p </p>
      <p>Iterations</p>
      <p>x</p>
      <p>x</p>
      <p>F</p>
      <p>- 0.607462</p>
      <p>0.546705</p>
      <p>1.765</p>
      <p>- 0.621243</p>
      <p>0.532316</p>
      <p>1.75722</p>
      <p>- 0.623721</p>
      <p>0.529703</p>
      <p>1.75444</p>
      <p>- 0.623709</p>
      <p>0.529715</p>
      <p>1.75417</p>
      <p>Table 3</p>
      <p>p </p>
      <p>Iterations</p>
      <p>x</p>
      <p>x</p>
      <p>F</p>
      <p>- 0.682328</p>
      <p>0.465571</p>
      <p>1.22504</p>
      <p>- 0.682328</p>
      <p>0.465571</p>
      <p>1.22504</p>
      <p>- 0.682328</p>
      <p>0.465571</p>
      <p>1.22504</p>
      <p>(2013) 255 -</p>
      <p>© The American Computational Science Society. All rights reserved.</p>
      <p>Table 4</p>
      <p>p </p>
      <p>Iterations</p>
      <p>x</p>
      <p>x</p>
      <p>F</p>
      <p>- 0.71377</p>
      <p>0.50</p>
      <p>0.550252</p>
      <p>- 0.71377</p>
      <p>0.509468</p>
      <p>0.550252</p>
      <p>- 0.71377</p>
      <p>0.509468</p>
      <p>0.550252</p>
      <p>5.</p>
    </sec>
    <sec>
      <title>Conclusions</title>
      <p>The above example shows that quantum genetic algorithm is better to solve nonlinear lp problems.</p>
      <p>The above results</p>
      <p>are within the scope of the precise ,</p>
      <p>compared wi th the literature [6]. So,</p>
      <p>Quantum Genetic intelligent algorithm is a better way for solving nonlinear problems.</p>
    </sec>
    <sec>
      <title>Acknowledgment</title>
      <p>This work was supported by the National Natural Science Foundation of China (No ： 11001129) and Xuzhou institute of technology rese arch funds(No ： XKY2010201) .</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref-001">
        <mixed-citation>[1] X.H. Wang, X.Z. Qin, Computational Mathematics, 3 (1996) 305-308.</mixed-citation>
      </ref>
      <ref id="ref-002">
        <mixed-citation>[2] R.P. Wang, Pure and Applied Mathematics Mathe- Matics, 4 (2004) 372-375.</mixed-citation>
      </ref>
      <ref id="ref-003">
        <mixed-citation>[3] J.Q. Zhao, S.B. Li, Operations Research and Management, 5 (2011) 46-50.</mixed-citation>
      </ref>
      <ref id="ref-004">
        <mixed-citation>[4] J.Q. Zhao, Journal of Xuzhou Institute of Technology, 5 (2012) 43-45.</mixed-citation>
      </ref>
      <ref id="ref-005">
        <mixed-citation>[5] S.B. Li, Nanjing University Mathematical, 2 (2007) 376-385.</mixed-citation>
      </ref>
      <ref id="ref-006">
        <mixed-citation>[6] L. Wang, Control and Decision, 2 (2005) 156-160.</mixed-citation>
      </ref>
      <ref id="ref-007">
        <mixed-citation>[7] G.X. Zhang, W.D. Jin, Journalof Southwest Jiaotong University, 6 (2003) 717-722.</mixed-citation>
      </ref>
      <ref id="ref-008">
        <mixed-citation>[8] Y.G. Cai, Systems Engineering Theory and Practice, 10 (2012) 2198-2206.</mixed-citation>
      </ref>
      <ref id="ref-009">
        <mixed-citation>[9] N. Li, R.M. Wang, Henan Science, 12 (2012) 1742-1745.</mixed-citation>
      </ref>
    </ref-list>
  </back>
  <floats-group>
    <fig id="fig-001" position="float">
      <graphic xlink:href="figures/fig-001.png"/>
    </fig>
  </floats-group>
</article>
