function y=fitn(x)
a=[] %已定义a 为6*5矩阵
d=[] %已定义d为6*1向量
c=a*x
c=a*x/10
e=c./d-1
y=sqrt(sum(e.^2))
A=[1 1 1 1 1]
end
采用GA工具箱
设置:Number of variables:5
Constraints: Linear equalities: Aeq:A beq:10
Bounds: Lower: 0 Upper:10
Start后提示输出参数太多 如何解决?