aboutsummaryrefslogtreecommitdiffstats
path: root/src/test_simplex.cpp
blob: ba177f81be2f18624982ce838e768b6e82cd1467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <simplex.h>

#include <iostream>

int main()
{
    BasicRep br{
        {1, 1, 1, 0, 0, 0, 0},
        {0, 2, 1, 1, 0, 0, 11},
        {0, 1, 3, 0, 1, 0, 18},
        {0, 1, 0, 0, 0, 1, 4},
    };

    Simplex s{br};

    s.solve();

    std::cout << "Result: " << s.getMin() << "\n";
}