<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JMF</journal-id><journal-title-group><journal-title>Journal of Mathematical Finance</journal-title></journal-title-group><issn pub-type="epub">2162-2434</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jmf.2016.64037</article-id><article-id pub-id-type="publisher-id">JMF-70614</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Business&amp;Economics</subject><subject> Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Research on the Portfolio Optimization Model under Quantitative Constraint Based on Genetic Algorithm*
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Shunquan</surname><given-names>Zhu</given-names></name><xref ref-type="aff" rid="aff1"><sub>1</sub></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><label>1</label><addr-line>School of Finance, Guangdong University of Finance &amp;amp; Economics, Guangzhou, China</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>horaki86@gmail.com</email></corresp></author-notes><pub-date pub-type="epub"><day>16</day><month>09</month><year>2016</year></pub-date><volume>06</volume><issue>04</issue><fpage>465</fpage><lpage>470</lpage><history><date date-type="received"><day>June</day>	<month>12,</month>	<year>2016</year></date><date date-type="rev-recd"><day>Accepted:</day>	<month>September</month>	<year>13,</year>	</date><date date-type="accepted"><day>September</day>	<month>16,</month>	<year>2016</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  This paper is based on covariance and expected return, building portfolio risk optimization model. Using Genetic Algorithm and Quadratic Programming, three securities portfolio Optimization model is resolved, and we find that Genetic Algorithm having priority for Restraint Conditions is not a linear model.
 
</p></abstract><kwd-group><kwd>Portfolio Optimization Decision Making</kwd><kwd> Quadratic Programming</kwd><kwd> Genetic Algorithm</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Background</title><p>The number of securities transactions is generally limited in the capital market. For example, the minimum number of regular trading stocks is 100 shares, and trading less than 100 shares is not accepted in Shanghai Stock Exchange and Shenzhen Stock Exchange. On the other hand, for various considerations, investment institutions and investors often set certain requirements for funds allocation, and portfolio needs to meet these requirements. In order to adapt the need for capital market and practical operation, it is necessary to research portfolio decision problem under risk constraint. But it is difficult to express the portfolio optimization model under numeric constraint from existing literature [<xref ref-type="bibr" rid="scirp.70614-ref1">1</xref>] - [<xref ref-type="bibr" rid="scirp.70614-ref5">5</xref>] .</p></sec><sec id="s2"><title>2. Build the Portfolio Optimization Model under Numeric Constraint [<xref ref-type="bibr" rid="scirp.70614-ref6">6</xref>]</title><p>Consider investment institution (e.g. Fund Company) or investors invest in n kinds of risky assets. We denote the expected returns and portfolio weights of risky assets by the vectors<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x3.png" xlink:type="simple"/></inline-formula>,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x4.png" xlink:type="simple"/></inline-formula>. The variance-covariance matrix of the risky assets’ returns matrix is<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x5.png" xlink:type="simple"/></inline-formula>, it is positive definite.<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x6.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x7.png" xlink:type="simple"/></inline-formula>represents all components of the column vector,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x8.png" xlink:type="simple"/></inline-formula>. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x9.png" xlink:type="simple"/></inline-formula>represents all components of the column vector is 1. The efficient portfolio decision model under number constraint is denoted by</p><disp-formula id="scirp.70614-formula1"><graphic  xlink:href="http://html.scirp.org/file/1-1490447x10.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.70614-formula2"><graphic  xlink:href="http://html.scirp.org/file/1-1490447x11.png"  xlink:type="simple"/></disp-formula><p>However, it is difficult to obtain the optimal analytical expression for this problem, so we try to solve this problem by genetic algorithms.</p></sec><sec id="s3"><title>3. Use Genetic Algorithms to Solve Portfolio Decision Model under Numeric Constraint [<xref ref-type="bibr" rid="scirp.70614-ref7">7</xref>]</title><sec id="s3_1"><title>3.1. Initialization</title><p>1) Determine population size M, crossover probability p<sub>c</sub>, mutation probability p<sub>m</sub>, maximum evolution generation maxgen, the vector of upper and lower bounds <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x12.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x13.png" xlink:type="simple"/></inline-formula>,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x14.png" xlink:type="simple"/></inline-formula>.</p><p>2) Use real-code, each chromosome contains n gene loci which represent insecurities, the genevaluation represents the proportion in securities portfolio.</p><p>3) It is easy to know the following super geometry contains feasible set from the constraints. Consider<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x15.png" xlink:type="simple"/></inline-formula>, where U(0,1) re- presents a random number that should be uniformly distributed between (0,1), then</p><p>normalize <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x16.png" xlink:type="simple"/></inline-formula> denoted by<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x17.png" xlink:type="simple"/></inline-formula>, and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x18.png" xlink:type="simple"/></inline-formula>.</p><p>If the result does not satisfy the constraint, reject it. Then we need to use the third step to generate a new chromosome, if the chromosome is feasible, we can accept it as a member of population, then we use the notation <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x19.png" xlink:type="simple"/></inline-formula> to denote M feasible chromosome after finite sampling. Consider the code of x is v, and denoted by <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x19.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x20.png" xlink:type="simple"/></inline-formula></p><p>4) Calculate the fitness value of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x21.png" xlink:type="simple"/></inline-formula>, which is the target value <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x22.png" xlink:type="simple"/></inline-formula>. It is better to reorder the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x23.png" xlink:type="simple"/></inline-formula> according to the target value, and denote the first row chromosome as<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x24.png" xlink:type="simple"/></inline-formula>. If we find a better chromosome in the future evolution, use this and replace<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x25.png" xlink:type="simple"/></inline-formula>.</p><p>5) Set k = 0.</p></sec><sec id="s3_2"><title>3.2. Selection</title><p>1) According to the principle that the more adaptable the chromosomes are, the more chance they would be selected to reproduce. Breeding probabilities for each <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x26.png" xlink:type="simple"/></inline-formula> are based on the adaptability</p><disp-formula id="scirp.70614-formula3"><graphic  xlink:href="http://html.scirp.org/file/1-1490447x27.png"  xlink:type="simple"/></disp-formula><p>j = 1means that the chromosome is the best, j = M explains the chromosome is the worst.</p><p>2) Calculate the cumulative probability <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x28.png" xlink:type="simple"/></inline-formula> for each chromosome.</p><disp-formula id="scirp.70614-formula4"><graphic  xlink:href="http://html.scirp.org/file/1-1490447x29.png"  xlink:type="simple"/></disp-formula><p>3) Generate a random number r in<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x30.png" xlink:type="simple"/></inline-formula>. If <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x31.png" xlink:type="simple"/></inline-formula> chose the jth chromosome. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x32.png" xlink:type="simple"/></inline-formula></p><p>4) Repeat step 2 and 3 for m times in total, then we can obtain m replicated chromosomes denoted by <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x33.png" xlink:type="simple"/></inline-formula></p></sec><sec id="s3_3"><title>3.3. Hybridization</title><p>1) Define <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x34.png" xlink:type="simple"/></inline-formula> as the probability of hybridization in advance, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x35.png" xlink:type="simple"/></inline-formula>is the parent of hybridization. Repeat the following step from j = 1 to M: Generate a random number denoted by r in [0, 1]. Chose <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x36.png" xlink:type="simple"/></inline-formula> as a parent if<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x37.png" xlink:type="simple"/></inline-formula>.</p><p>2) We use the notation <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x38.png" xlink:type="simple"/></inline-formula> to denote the parents, and group them randomly such as <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x38.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x39.png" xlink:type="simple"/></inline-formula> hybridization is performed on all groups. To perform the operation on<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x38.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x40.png" xlink:type="simple"/></inline-formula>, generate a random number c from (0,1) firstly, and then perform the hybridization as the following form between <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x38.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x40.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x41.png" xlink:type="simple"/></inline-formula> to produce two offspring:</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x42.png" xlink:type="simple"/></inline-formula>; <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x43.png" xlink:type="simple"/></inline-formula></p><p>3) We can use hybridization on the other group as the same way.</p></sec><sec id="s3_4"><title>3.4. Mutation</title><p>1) First, define the mutation probability p<sub>m</sub>. For the individuals through crossover operation mutate from j = 1 to M, repeat the following step: generate a random number r from [0,1], if<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x44.png" xlink:type="simple"/></inline-formula>, select it as mutation parent.</p><p>2) Generate random integer i and j from [1,n], random r<sub>1</sub> and r<sub>2</sub> are generated from (0,1), the mutation result value r that is the valuation of a<sub>ij</sub>, a<sub>ij</sub> represents the gene which is number I on the chromosome a<sub>ij</sub>. Similarly, a<sub>ij</sub> represents the gene which is number j on the chromosome a<sub>ij</sub>. If the constraints are not satisfied, refuse the result. Follow step 2 to generate a new chromosome, if this one is feasible, accept it as a population member. It will generate s new mutated individuals after finite sampling.</p><p>3) Consider s new individuals by mutation operation and L-s new individuals that are not selected from hybridization in step 2, calculate their valuation. And then put them back simultaneously. There are M-L remaining individuals by choosing operation. All of them consist of a new generation denoted by<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x45.png" xlink:type="simple"/></inline-formula>.</p><p>4) Termination test</p><p>If reach the maximum number of evolution, evolution is terminated, otherwise set k = k + 1, turn to the selection operation.</p></sec></sec><sec id="s4"><title>4. The Example of the Risk on Optimal Portfolio by Genetic Algorithms and Analysis</title><p>Obtain three monthly securities’ returns from financial database [<xref ref-type="bibr" rid="scirp.70614-ref8">8</xref>] by downloading and sorting (as shown in <xref ref-type="table" rid="table1">Table 1</xref>).</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Historical data of returns for three securities</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Serial number</th><th align="center" valign="middle"  colspan="3"  >Historical data</th></tr></thead><tr><td align="center" valign="middle" >Stock 1</td><td align="center" valign="middle" >Stock 2</td><td align="center" valign="middle" >Bond</td></tr><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0.07</td><td align="center" valign="middle" >0.06</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >0.04</td><td align="center" valign="middle" >0.13</td><td align="center" valign="middle" >0.07</td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" >0.13</td><td align="center" valign="middle" >0.14</td><td align="center" valign="middle" >0.05</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >0.19</td><td align="center" valign="middle" >0.43</td><td align="center" valign="middle" >0.04</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >−0.15</td><td align="center" valign="middle" >0.67</td><td align="center" valign="middle" >0.07</td></tr><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >−0.27</td><td align="center" valign="middle" >0.64</td><td align="center" valign="middle" >0.08</td></tr><tr><td align="center" valign="middle" >7</td><td align="center" valign="middle" >0.37</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0.06</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >0.24</td><td align="center" valign="middle" >−0.22</td><td align="center" valign="middle" >0.04</td></tr><tr><td align="center" valign="middle" >9</td><td align="center" valign="middle" >−0.07</td><td align="center" valign="middle" >0.18</td><td align="center" valign="middle" >0.05</td></tr><tr><td align="center" valign="middle" >10</td><td align="center" valign="middle" >0.07</td><td align="center" valign="middle" >0.31</td><td align="center" valign="middle" >0.07</td></tr><tr><td align="center" valign="middle" >11</td><td align="center" valign="middle" >0.19</td><td align="center" valign="middle" >0.59</td><td align="center" valign="middle" >0.1</td></tr><tr><td align="center" valign="middle" >12</td><td align="center" valign="middle" >0.33</td><td align="center" valign="middle" >0.99</td><td align="center" valign="middle" >0.11</td></tr><tr><td align="center" valign="middle" >13</td><td align="center" valign="middle" >−0.05</td><td align="center" valign="middle" >−0.25</td><td align="center" valign="middle" >0.15</td></tr><tr><td align="center" valign="middle" >14</td><td align="center" valign="middle" >0.22</td><td align="center" valign="middle" >0.04</td><td align="center" valign="middle" >0.11</td></tr><tr><td align="center" valign="middle" >15</td><td align="center" valign="middle" >0.23</td><td align="center" valign="middle" >−0.11</td><td align="center" valign="middle" >0.09</td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >0.06</td><td align="center" valign="middle" >−0.15</td><td align="center" valign="middle" >0.1</td></tr><tr><td align="center" valign="middle" >17</td><td align="center" valign="middle" >0.32</td><td align="center" valign="middle" >−0.12</td><td align="center" valign="middle" >0.08</td></tr><tr><td align="center" valign="middle" >18</td><td align="center" valign="middle" >0.19</td><td align="center" valign="middle" >0.16</td><td align="center" valign="middle" >0.06</td></tr><tr><td align="center" valign="middle" >19</td><td align="center" valign="middle" >0.05</td><td align="center" valign="middle" >0.22</td><td align="center" valign="middle" >0.05</td></tr><tr><td align="center" valign="middle" >20</td><td align="center" valign="middle" >0.17</td><td align="center" valign="middle" >−0.02</td><td align="center" valign="middle" >0.07</td></tr></tbody></table></table-wrap><p>Calculate covariance matrix for three securities with function corvar() in Excel</p><disp-formula id="scirp.70614-formula5"><graphic  xlink:href="http://html.scirp.org/file/1-1490447x46.png"  xlink:type="simple"/></disp-formula><p>Calculate expected return on three securities, denoted by R, with function average,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-1490447x47.png" xlink:type="simple"/></inline-formula>.</p><p>Consider the minimum expected return on the three securities is 0.13, calculate the optimal proportion and lowest risk under the condition of no short sale.</p><p>We use genetic function GA in Matlab, the program is as follows.</p><p>The M file by Genetic Algorithm denoted by tzga.m</p><p>Obj = @tzfitness;</p><p>Nvars = 3; % Number of variables</p><p>A = [−0.1130, −0.1850, −0.0755];</p><p>b = [−0.13]; Aeq = [1,1,1]; beq = [<xref ref-type="bibr" rid="scirp.70614-ref1">1</xref>] ;</p><p>LB = [0 0 0]; % Lower bound</p><p>UB = [1 1 1]; % Upper bound</p><p>% Constraint Function = @tzconstraint;</p><p>[x,fval] = ga(Obj,nvars,A,b,Aeq,beq,LB,UB,[<xref ref-type="bibr" rid="scirp.70614-ref"></xref>])</p><p>The function by genetic algorithm denoted by tzfitness.m</p><p>function y =tzfitness(x)</p><disp-formula id="scirp.70614-formula6"><graphic  xlink:href="http://html.scirp.org/file/1-1490447x48.png"  xlink:type="simple"/></disp-formula><p>The results are running as the above program in Matlab as follows:</p><p>&gt;&gt; tzga</p><p>x = 0.5044 0.3245 0.1718</p><p>fval = 0.0143</p><p>Compare the above results and the results get by quadratic programming with Matlab function quadprog() [<xref ref-type="bibr" rid="scirp.70614-ref9">9</xref>] and Excel Solver tool, calculate them and show them in <xref ref-type="table" rid="table2">Table 2</xref>.</p><p>As shown in <xref ref-type="table" rid="table2">Table 2</xref>, the results of Portfolio Optimization Model with three methods are close. But the function qudprog() in Matlab and solver tool in excel are only</p><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Results of calculation of the three methods</title></caption><table><tbody><thead><tr><th align="center" valign="middle" ></th><th align="center" valign="middle" >The result of Genetic Algorithm with function ga() in Matlab,</th><th align="center" valign="middle" >The result of quadratic programming with function quadprog() in Matlab</th><th align="center" valign="middle" >The result with solver tool for quadratic programming in excel</th></tr></thead><tr><td align="center" valign="middle" >Optimal proportion （x1, x2, x3）</td><td align="center" valign="middle" >(0.5044, 0.3245, 0.1718)</td><td align="center" valign="middle" >(0.5063, 0.3243, 0.1694)</td><td align="center" valign="middle" >(0.5063, 0.3243, 0.1693)</td></tr><tr><td align="center" valign="middle" >The lowest risk of portfolio</td><td align="center" valign="middle" >0.0143</td><td align="center" valign="middle" >0.0143</td><td align="center" valign="middle" >0.0151</td></tr></tbody></table></table-wrap><p>adapted to linear and quadratic programming model. In addition to Quadratic Programming under liner, genetic algorithm can solve quadratic programming under nonlinear constraint, even to the complex model in which the objective function is a Nonlinear model that is not quadratic programming and the constraint is nonlinear, genetic algorithm also can solve it. Therefore, the advantages of genetic algorithms are incomparable in modeling complex social and economic life.</p></sec><sec id="s5"><title>5. Overview</title><p>In order to make the portfolio optimization problems close to reality, we often need to study the portfolio optimization problem under numeric constraint. This paper is based on this model to calculate the optimal portion by code; selection, crossover and mutation are adapted to portfolio decisions successfully, and optimal solution can be obtained. In order to prove the reliability of the genetic algorithm, we use quadratic programming with function quadprog() in Matlab and solver tool for quadratic programming in excel to solve this problem. This paper shows that the genetic algorithm is better than quadratic programming, because the genetic algorithm can solve non-quadratic programming problems. It is foreseeable that in the future genetic algorithms will be used widely for practical application in portfolio optimization.</p></sec><sec id="s6"><title>Cite this paper</title><p>Zhu, S.Q. (2016) Research on the Portfolio Optimization Model under Quantitative Constraint Based on Genetic Algorithm. Journal of Mathematical Finance, 6, 465-470. http://dx.doi.org/10.4236/jmf.2016.64037</p><p>*This paper is supported by Guangdong Provincial Scientific Plan Project (Soft Science, No.: 2015-A070704058), Guangdong Provincial Universities’ Social Science Fund Project (No.: 2015WTSCX031), The Natural Science Foundation of Guangdong (No.: 2015A030313629), The Graduate Student Education Innovation Projects in Guangdong (No. 2-2015), and the National Natural Science Foundation of China.</p></sec></body><back><ref-list><title>References</title><ref id="scirp.70614-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Markowitz, H. (1952) Portfolio Selection. Journal of Finance, 7, 77-91.  
http://dx.doi.org/10.1111/j.1540-6261.1952.tb01525.x</mixed-citation></ref><ref id="scirp.70614-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Sharpe, W.F. (1963) A Simplified Model for Portfolio Analysis. Management Science, 1, 277-293. http://dx.doi.org/10.1287/mnsc.9.2.277</mixed-citation></ref><ref id="scirp.70614-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Sharpe, W.F. (1967) A Linear Programming Algorithm for Mutual Fund Portfolio Selection. Management Science, 3, 499-510. http://dx.doi.org/10.1287/mnsc.13.7.499</mixed-citation></ref><ref id="scirp.70614-ref4"><label>4</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Sharpe</surname><given-names> W.F. </given-names></name>,<etal>et al</etal>. (<year>1967</year>)<article-title>A Portfolio Analysis</article-title><source> Journal of Finance and Quantitative Analysis</source><volume> 6</volume>,<fpage> 76</fpage>-<lpage>84</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.70614-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Zhu, S.Q. (2012) Investment. Theory. Application. Experiment. Tsinghua University Press, Beijing, 1.</mixed-citation></ref><ref id="scirp.70614-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Zhang, W.G. (2007) Modern Portfolio Theory—Model, Methods and Application. Science Press, Beijing, 3.</mixed-citation></ref><ref id="scirp.70614-ref7"><label>7</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Lin</surname><given-names> D. </given-names></name>,<etal>et al</etal>. (<year>2005</year>)<article-title>Improved Portfolio Investment Model with Genetic Algorithm</article-title><source> Systems Engineering</source><volume> 8</volume>,<fpage> 68</fpage>-<lpage>72</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.70614-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Zhu, S.W. (2007) Financial Database. Tsinghua University Press, Beijing, 12.</mixed-citation></ref><ref id="scirp.70614-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Guo, R.S. (2007) Analytical Optimization Design Example Based on Matlab. China Machine Press, Beijing, 7.</mixed-citation></ref></ref-list></back></article>