Выражение ограничения было изменено в соответствии с правилами DCP, но проблема так и не была решена[[введите описание изображения здесь](https://i.sstatic.net/Dd2ccdh4.png)](https://i .sstatic.net/nys3tWPN.png)
qS = cp.Variable((num_points, 2))
eta = cp.Variable(len(wDk), nonneg=True)
dSE = cp.Variable(num_points, nonneg=True)
dSUr = cp.Variable((len(wUr), num_points), nonneg=True)
constraints = [
qS[0] == q0_S,
qS[-1] == qF_S,
cp.norm(qS[1:] - qS[:-1], axis=1) = eta[k])
for r in range(len(wUr)):
hSUr = rho0 / (dSUr[r, n] + H1 ** 2)
constraints.append(PJ[n] * hJE_max + PS[n] * hSUr = Rmin
]
qS_m = qS_initial.copy()
for n in range(num_points):
constraints.append(
dSE[n]
Подробнее здесь: https://stackoverflow.com/questions/786 ... -the-follo