Exemplo n.º 1
0
def test_pareto_sols():
    pareto_sols = np.array([
        [8, 184],
        [9.33, 181.33],
        [10.67, 178.67],
        [12, 176],
        [13.33, 173.33],
        [14.67, 170.67],
        [16, 168],
        [17.33, 165.33],
        [18.67, 162.67],
        [20, 160],
    ])
    assert Helper.array_equal(py_augmecon.unique_pareto_sols, pareto_sols, 2)
Exemplo n.º 2
0
def test_pareto_sols():
    pareto_sols = np.array([
        [3075000, 62460, 33000],
        [3085000, 61980, 32333.33],
        [3108333.33, 60860, 30777.78],
        [3115000, 60540, 30333.33],
        [3131666.67, 59740, 29222.22],
        [3155000, 58620, 27666.67],
        [3178333.33, 57500, 26111.11],
        [3195000, 56700, 25000],
        [3201666.67, 56380, 24555.56],
        [3225000, 55260, 23000],
        [3255000, 54780, 23666.67],
        [3375000, 52860, 26333.33],
        [3495000, 50940, 29000],
        [3615000, 49020, 31666.67],
        [3735000, 47100, 34333.33],
        [3855000, 45180, 37000],
    ])
    assert Helper.array_equal(py_augmecon.unique_pareto_sols, pareto_sols, 2)
Exemplo n.º 3
0
def test_pareto_sols():
    pareto_sols = Helper.read_excel(xlsx, "pareto_sols").to_numpy()
    assert Helper.array_equal(py_augmecon.unique_pareto_sols, pareto_sols, 2)
Exemplo n.º 4
0
def test_payoff_table():
    payoff = Helper.read_excel(xlsx, "payoff_table").to_numpy()
    assert Helper.array_equal(py_augmecon.model.payoff, payoff, 2)
Exemplo n.º 5
0
def test_payoff_table():
    payoff = np.array([[20, 160], [8, 184]])
    assert Helper.array_equal(py_augmecon.model.payoff, payoff, 2)
Exemplo n.º 6
0
def test_payoff_table():
    payoff = np.array([[3075000, 62460, 33000], [3855000, 45180, 37000],
                       [3225000, 55260, 23000]])
    assert Helper.array_equal(py_augmecon.model.payoff, payoff, 2)