Skip to content

Instantly share code, notes, and snippets.

View satouriko's full-sized avatar
🍫
Happy Sugar Life

砂糖梨子 satouriko

🍫
Happy Sugar Life
View GitHub Profile
@satouriko
satouriko / bland
Created December 19, 2016 05:55
simplex
Input m, n: m refers count of x+1(for b), n refers count of equations
8 3
Input c
0 0 0 0.75 -20 0.5 -6
Input matrix
1 0 0 0.25 -8 -1 9 0
0 1 0 0.5 -12 -0.5 3 0
0 0 1 0 0 1 0 1
Input xb
0 1 2