x = ga(fitnessfcn,nvars,A,b,Aeq,beq,LB,UB,nonlcon) subjects
the minimization to the constraints defined in nonlcon.
The function nonlcon accepts x and
returns the vectors C and Ceq, representing
the nonlinear inequalities and equalities respectively. ga minimizes
the fitnessfcn such that C(x)≤0 and Ceq(x)=0.
(Set LB=[] and UB=[] if no bounds exist.)
所以 x = ga(fitnessfcn,nvars,A,b,Aeq,beq,LB,UB,@mynoncon)