CVX - matlab - 非线性约束

时间:2013-06-12 13:55:47

标签: matlab cvx

在FMINCON中,非线性约束可以作为函数参数(nonlcon)提供。我尝试在CVX中使用类似的方法

cvx_begin
   variable x(n)
   minimize( somefunc(x))
   subject to
      nonlcon(x)
cvx_end

但是我收到了一个错误:

Disciplined convex programming error:
Cannot perform the operation: {real affine} ./ {real affine}

在nonlcon中,存在元素分割操作。它在该行给出错误,我无法将约束更改为任何其他方式。有办法解决这个问题吗?

0 个答案:

没有答案
相关问题