Skip to content

Commit 12500d1

Browse files
committed
Document constructor
1 parent 265cb6b commit 12500d1

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
11
# SimpleTableaux
22

33
Illustration project for the optimization problem
4-
$\max c^t x$ subject to $Ax ≤ b$.
4+
$\max c^t x$ subject to $Ax ≤ b$.
5+
6+
## Construction
7+
8+
Start with these:
9+
```
10+
A = [3 5; 4 1]
11+
b = [78; 36]
12+
c = [5; 4]
13+
```
14+
Then set up the `Tableau` as follows:
15+
```
16+
julia> T = Tableau(A,b,c)
17+
3×6 DataFrame
18+
Row │ x1 x2 s1 s2 val RHS
19+
│ Exact Exact Exact Exact Exact Exact
20+
─────┼──────────────────────────────────────────
21+
1 │ 3 5 1 0 0 78
22+
2 │ 4 1 0 1 0 36
23+
3 │ -5 -4 0 0 1 0
24+
```
25+
Notice that the last row is the encoding of the objective function.
26+

0 commit comments

Comments
 (0)