NNLS问题与某些零数量作为约束
我正在做一个优化问题,以最大程度地减少AX和B的正方形差异。
a是m*n的矩阵,其中x是非负n载体。我想添加一个约束,即从向量X中的n个元素中的p分别为零。
我应该如何制定条件?听起来有NNLS优化问题的NCP集。
谢谢
I am doing an optimization problem To minimise square difference of Ax and b.
A is a matrix of m*n where x is non negative n vector. I would like to add a constraint that p out of n elements in vector x is zero.
How should I formulate the condition? It sounds to have nCp set of nnls optimization problem.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
标准公式是添加基数约束:
这是MIQP(混合二次二次编程)模型。
u
是x [i]
上的上行(应该不太大)。Δ[i]
是二进制决策变量,含义:有些冗余:模型同时计算
x
和Δ
。 (这就是“变量”的含义。)MIQP求解器很容易获得。
A standard formulation for this is to add a cardinality constraint:
This is an MIQP (Mixed-Integer Quadratic Programming) model.
U
is an upperbound onx[i]
(should be not too large).δ[i]
is a binary decision variable with meaning:Somewhat redundantly: the model computes both
x
andδ
. (That is what "variable" means.)MIQP solvers are readily available.