a = cvxpy.Variable() // scalar
m = cvxpy.Variable((1, a))
目标是最小化a,功能是:
H(w) = a0 + a1*cos(1*w) + a2*cos(2*w) .... + aN*cos(N*w)
w(k) = k*pi/500 where 0<=k<=N // Length of k is dependent on N.
约束:
0<=w(k)<=pi/3, 0.89<=H(w)<=1.12
0.4*pi<=w(k)<=pi, |H(w)|<=0.0316
Minimize(N)