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

線性規劃(1)

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])))
O = (0, 0)
A = Point(u)
B = (14.369520975215051, 14.46303142030529)
C = Point(v)
多邊形1, o, a_1, b_1, c = Polygon(O, A, B, C)
k = 45.6 (slider from -5 to 50, step 0.1)
a = 1 (slider from -5 to 5, step 1)
b = 2 (slider from -5 to 5, step 1)
文字1: a + "x" + (If[b > 0.0, "+", "-"]) + (abs(b)) + "y=" + k
L: a * x + b * y = k