@@ -101,24 +101,24 @@ def test_example3428():
101101 r1 = range (m )
102102 r2 = [5 , 4 , 3 , 1 , 0 , 7 , 6 , 2 ]
103103
104- # once with explicit pertubation
105- e = pertubation_vector (r1 , Rational (1 , 64 ))
104+ # once with explicit perturbation
105+ e = perturbation_vector (r1 , Rational (1 , 64 ))
106106 v_3_e = v_3 + (sub_matrix (A , B ) ** - 1 * sub_matrix (e , B ))
107107 b_e = b + e
108- res , v_r1_star_expl_pert , _ , _ = simplex (A , b_e , c , v_3_e , B , pivot_rule_i = PivotRule .MINIMAL ())
109- v_r1_star_expl = v_star_from_perturbed_polygon (A , b , b_e , v_r1_star_expl_pert )
108+ res , v_r1_star_explicit_pert , _ , _ = simplex (A , b_e , c , v_3_e , B , pivot_rule_i = PivotRule .MINIMAL ())
109+ v_r1_star_explicit = v_star_from_perturbed_polygon (A , b , b_e , v_r1_star_explicit_pert )
110110
111- e = pertubation_vector (r2 , Rational (1 , 64 ))
111+ e = perturbation_vector (r2 , Rational (1 , 64 ))
112112 v_3_e = v_3 + (sub_matrix (A , B ) ** - 1 * sub_matrix (e , B ))
113113 b_e = b + e
114- res , v_r2_star_expl_pert , _ , _ = simplex (A , b_e , c , v_3_e , B , pivot_rule_i = PivotRule .MINIMAL ())
115- v_r2_star_expl = v_star_from_perturbed_polygon (A , b , b_e , v_r2_star_expl_pert )
114+ res , v_r2_star_explicit_pert , _ , _ = simplex (A , b_e , c , v_3_e , B , pivot_rule_i = PivotRule .MINIMAL ())
115+ v_r2_star_explicit = v_star_from_perturbed_polygon (A , b , b_e , v_r2_star_explicit_pert )
116116
117117 # and once with our fancy lexmin rule
118118 res , v_r1_star_lexmin , _ , _ = simplex (A , b , c , v_3 , B , pivot_rule_i = PivotRule .LEXMIN (r1 ))
119119 res , v_r2_star_lexmin , _ , _ = simplex (A , b , c , v_3 , B , pivot_rule_i = PivotRule .LEXMIN (r2 ))
120- assert v_r1_star_expl == v_r1_star_lexmin
121- assert v_r2_star_expl == v_r2_star_lexmin
120+ assert v_r1_star_explicit == v_r1_star_lexmin
121+ assert v_r2_star_explicit == v_r2_star_lexmin
122122
123123
124124def test_ex93 ():
0 commit comments