def METHOD_NAME(self) -> None:
    """
    Test weighted sum.
    """
    weights = [1, 1]
    scalarized = scalarize.weighted_sum(self.objectives, weights)
    prob = cp.Problem(scalarized)
    prob.solve()
    self.assertItemsAlmostEqual(self.x.value, 0.5, places=3)
    weights = [1, 0]
    scalarized = scalarize.weighted_sum(self.objectives, weights)
    prob = cp.Problem(scalarized)
    prob.solve()
    self.assertItemsAlmostEqual(self.x.value, 0, places=3)
    weights = [0, 1]
    scalarized = scalarize.weighted_sum(self.objectives, weights)
    prob = cp.Problem(scalarized)
    prob.solve()
    self.assertItemsAlmostEqual(self.x.value, 1, places=3)