问题描述
我有一个简单的优化问题,正在使用CVXPY来解决。这是代码:
import cvxpy as cp
import numpy as np
x = cp.Variable()
concave_fn = cp.log(cp.log(1+cp.exp(x)))
constraints = [x <= 2]
problem = cp.Problem(cp.Maximize(concave_fn),constraints)
assert problem.is_dqcp()
problem.solve(qcp=True,verbose=True)
但是它会产生跟随错误:
SolverError: Unable to find suitable interval for bisection.
我不知道此错误的根源是什么。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)