在使用cvxpy时遇到警告 WARN: A->p (column pointers) not strictly increasing
prob = cvx.Problem(cvx.Maximize(cvx.real(cvx.trace(R @ X))), constr)with warnings.catch_warnings():warnings.simplefilter('ignore')prob.solve()
在使用cvxpy模块求解凸优化问题时遇到如下警告,大大影响了实验数据输出的可视性。
WARN: A->p (column pointers) not strictly increasing, column 231 empty
WARN: A->p (column pointers) not strictly increasing, column 253 empty
WARN: A->p (column pointers) not strictly increasing, column 275 empty
WARN: A->p (column pointers) not strictly increasing, column 297 empty
WARN: A->p (column pointers) not strictly increasing, column 319 empty
WARN: A->p (column pointers) not strictly increasing, column 341 empty
WARN: A->p (column pointers) not strictly increasing, column 363 empty
WARN: A->p (column pointers) not strictly increasing, column 385 empty
WARN: A->p (column pointers) not strictly increasing, column 407 empty
该警告不是通过warning产生的,因此忽略警告信息并不能将其忽略。