Linear Programming Demo by Anthony OR 柯志明
Loading the math board and drawing, please wait…
This example demonstrates how to optimize a function under given constraints, involving core concepts like inequalities, function optimization, and coordinate geometry. It uses GeoGebra commands such as SelectedIndex, If, PointIn, Textfield, and Sequence for construction, suitable for high school and above learners or educational purposes.
GeoGebra Commands & Parameters
SelectedIndex(NumIneq) → nIf(n ≟ 6, a1(x, y) ∧ a2(x, y) ∧ a3(x, y) ∧ a4(x, y) ∧ a5(x, y) ∧ a6(x, y), a1(x, y), n ≟ 5, a1(x, y) ∧ a2(x, y) ∧ a3(x, y) ∧ a4(x, y) ∧ a5(x, y), n ≟ 4, a1(x, y) ∧ a2(x, y) ∧ a3(x, y) ∧ a4(x, y), n ≟ 3, a1(x, y) ∧ a2(x, y) ∧ a3(x, y), n ≟ 2, a1(x, y) ∧ a2(x, y)) → solPointIn(sol) → PTextfield(a) → inputBox1Textfield(b) → inputBox2Sequence(Segment[(i, y(Corner[1])), (i, y(Corner[3]))], i, 1, ceil(x(Corner[3]))) → list2Sequence(Segment[(x(Corner[1]), j), (x(Corner[3]), j)], j, 1, ceil(y(Corner[3]))) → list3Sequence(Segment[(x(Corner[1]), (-j)), (x(Corner[3]), (-j))], j, 1, abs(floor(y(Corner[1])))) → list4Sequence(Segment[((-i), y(Corner[1])), ((-i), y(Corner[3]))], i, 1, abs(floor(x(Corner[1])))) → list5Textfield(c) → inputBox3Textfield(a1) → InputBox1Textfield(a2) → InputBox2Textfield(a3) → InputBox3Textfield(a4) → InputBox4Textfield(a5) → InputBox5Textfield(a6) → InputBox6If(n ≟ 1, sys1, n ≟ 6, sys6, n ≟ 2, sys2, n ≟ 3, sys3, n ≟ 4, sys4, n ≟ 5, sys5) → sys
AI Drawing Prompt Reference
Draw a linear programming example with six inequality constraints to optimize a given function. First, draw the six inequalities, then identify the feasible region. Next, input the coefficients a, b, and c in the text fields, and finally, plot the objective function based on the input coefficients and find the optimal solution point P within the feasible region.
The prompt above was compiled from the original drawing commands and is for reference only.