Barrierround

fullification(o)[source]
Input: a structure o with the following fields
.P: struct for a polytope with fields describing the polytope {Ax = b, lb <= x <= ub}

.A .b .lb .ub .x

.T: struct for affine transformation used to go back to original space by x0(idx) + scale.*samples

.x0 .idx .scale

Output: a structure fullP with the following fields, describing {Ax <= b}

.A .b .x .N - used to go back to original space .p_shift - used to go back to original space .x0 .idx

logBarrierRound(problem)[source]
Input: a structure P with the following fields

.Aeq .beq .lb .ub

describing the polytope {Aeq x = beq, lb <= x <= ub}

Output

o - problem structure

sanity_check[source]

seed = 1; rng(seed);