CVXPY如何定义尺寸为cvx变量的矩阵变量

时间:2018-10-08 06:30:20

标签: cvxpy

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)

0 个答案:

没有答案