From 8a7fbfda16d5c54854af0187e3ab46d3b674dc80 Mon Sep 17 00:00:00 2001 From: Orestis Malaspinas <orestis.malaspinas@hesge.ch> Date: Tue, 27 Nov 2018 14:52:14 +0100 Subject: [PATCH] added polyhedron for inequalities --- python/polyedre.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 python/polyedre.py diff --git a/python/polyedre.py b/python/polyedre.py new file mode 100644 index 0000000..6cb6363 --- /dev/null +++ b/python/polyedre.py @@ -0,0 +1,13 @@ +import matplotlib.pyplot as plt +import numpy as np + +x1 = np.arange(0, 6.0, 0.1) +x2 = (59 - 10 * x1) / 12 + +x2max = np.max(x2) +y2 = np.arange(0, x2max, 0.1) + +plt.plot(x1,x2,'k-') +plt.plot(x1,0*x1,'r-') +plt.plot(0*y2,y2,'b-') +plt.show() \ No newline at end of file -- GitLab