def _solveRelativeDG(self, points):
""" Solves the norm constrained version of the problem.
min sum z_q
st z_q >= c'x_q - 1
z_q >= 1 - c'x_q
A'y = c
b'y = 1
||c|| = 1
y >= 0
"""
if self.normalize_c == 1:
error = self._solveRelativeDGNorm1(points)
elif self.normalize_c == np.inf:
error = self._solveRelativeDGNormInf(points)
return error
评论列表
文章目录