P: {{0, 0, 8, 4}, {0.25, 0, 0, 0}, {0, 0.5, 0, 0}, {0, 0, 0.25, 0}}
p0: {{1000}, {1000}, {1000}, {1000}}