線性規劃(2)
Author: 藍邦偉  老師

線性規劃(2)

u = Vector((x(Corner[1.0]), 0.0), (x(Corner[3.0]), 0.0))
v = Vector((0.0, y(Corner[1.0])), (0.0, y(Corner[3.0])))
E = Corner(3.0)
B = (3.5247188188313068, 2.541456818440521)
O = (0, 0)
F: (x(Corner[2.0]), y(O))
D: (x(O), y(Corner[3.0]))
A = Point(u)
C = Point(v)
多邊形1, a_1, b_1, c, d, e, f = Polygon(A, B, C, D, E, F)
k = 13.1 (slider from 0 to 17, step 0.05)
a = 1 (slider from -5 to 5, step 1)
b = 1 (slider from -5 to 5, step 1)
L: a * x + b * y = k
文字1: a + "x" + (If[b > 0.0, "+", "-"]) + (abs(b)) + "y=" + k