Skip to content

Commit 927f61c

Browse files
committed
Uncheck dual button once solved; +new examples
1 parent 05b5ba2 commit 927f61c

4 files changed

Lines changed: 17 additions & 3 deletions

File tree

examples/x1_2x2_x3

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Max z = x1 + 2x2 + x3
2+
Subject to:
3+
3x1 + 2x2 + x3 <= 180
4+
4x1 + 3x2 + 6x3 <= 270
5+
x1 + 2x2 + 3x3 <= 180
6+
x1 + x2 + x3 <= 100

examples/x1_2x2_x3Dual

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Min G = 180y1 + 270y2 + 180y3 + 100y4
2+
Subject to:
3+
3y1 + 4y2 + y3 + y4 >= 1
4+
2y1 + 3y2 + 2y3 + y4 >= 2
5+
y1 + 6y2 + 3y3 + y4 >= 1

examples/xy2Ex

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Max z = x + y
1+
Max z = x1 + 2x2 + x3
22
Subject to:
3-
3x - y <= 10
4-
-x + 3y <= 10
3+
3x1 + 2x2 + x3 <= 150
4+
5x1 + 3x2 + 9x3 <= 250
5+
x1 + 5x2 + 3x3 <= 200
6+
x1 + x2 + x3 <= 50

readInputs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ function getParameters() {
4242
var [A, b, cj, x, xB, shouldDie, sign, objVarName] =
4343
readNonMatForm();
4444
uncheck("useNonMat");
45+
uncheck("isDual");
4546
} else {
4647
var [A, b, cj, x, xB] = readInputs();
4748
}

0 commit comments

Comments
 (0)