RelativeDualityGap.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:invo 作者: rafidrm 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号