Skip to content
DeepForgeby svx
All problems
MediumOptimizationop-359

Chebyshev Scalarization Value

Problem

The weighted Chebyshev scalarization of a multi-objective vector around an ideal point z is max_i w_i * |f_i - z_i|.

Given the objectives, weights, and the ideal point, return the scalarized value.

Hint

Take the maximum weighted deviation from the ideal point.

Test cases

case 1
in: [[1,2],[1,1],[0,0]]
expected: 2
case 2
in: [[3,1,4],[2,1,0.5],[1,1,1]]
expected: 4
case 3
in: [[0,5],[1,1],[0,0]]
expected: 5
Starter codePython
def chebyshev_scalarization_value(values, weights, ideal):
    # Your code here
    pass

3 test cases · run your code against them in the editor