Example #1
0
def test_3():
    a = [20, 11, 18, 27]
    b = [11, 4, 10, 12, 8, 9, 10, 4]
    c = [[-3, 6, 7, 12, 6, -3, 2, 16], [4, 3, 7, 10, 0, 1, -3, 7],
         [19, 3, 2, 7, 3, 7, 8, 15], [1, 4, -7, -3, 9, 13, 17, 22]]

    x, J = solve_mtp(a, b, c)
Example #2
0
def test_4():
    a = [15, 12, 18, 20]
    b = [5, 5, 10, 4, 6, 20, 10, 5]
    c = [[-3, 10, 70, -3, 7, 4, 2, -20], [3, 5, 8, 8, 0, 1, 7, -10],
         [-15, 1, 0, 0, 13, 5, 4, 5], [1, -5, 9, -3, -4, 7, 16, 25]]

    x, J = solve_mtp(a, b, c)
Example #3
0
def test_5():
    a = [53, 20, 45, 38]
    b = [15, 31, 10, 3, 18]
    c = [[3, 0, 3, 1, 6], [2, 4, 10, 5, 7], [-2, 5, 3, 2, 9], [1, 3, 5, 1, 9]]

    x, J = solve_mtp(a, b, c)
Example #4
0
def test_1():
    a = [100, 300, 300]
    b = [300, 200, 200]
    c = [[8, 4, 1], [8, 4, 3], [9, 7, 5]]

    x, J = solve_mtp(a, b, c)
Example #5
0
def test_2():
    a = [20, 30, 25]
    b = [10, 10, 10, 10, 10]
    c = [[2, 8, -5, 7, 10], [11, 5, 8, -8, -4], [1, 3, 7, 4, 2]]

    x, J = solve_mtp(a, b, c)