Skip to content

Commit c64ae45

Browse files
committed
Expand Tableau data structure
1 parent 309d3df commit c64ae45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/SimpleTableaux.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Create a `Tableau` data structure for the linear program maximize `c'x` subject
1818
"""
1919
struct Tableau
2020
M::Matrix{TabEntry} # place to hold the entire Tableau
21+
A::Matrix # (original) A matrix
22+
b::Vector # (original) RHS, b vector
23+
c::Vector # (original) objective coefficients, c vector
2124
n_vars::Int # number of variables in the LP
2225
n_cons::Int # number of constraints in the LP
2326

@@ -30,7 +33,7 @@ struct Tableau
3033

3134
obj = [-c; zeros(Int, m); 1; 0]'
3235

33-
return new(vcat(body, obj), n, m)
36+
return new(vcat(body, obj), A, b, c, n, m)
3437
end
3538
end
3639

0 commit comments

Comments
 (0)