From cf50e14c89d39ae0bdf5b7f9de353119cde072c8 Mon Sep 17 00:00:00 2001 From: Humphrey Yang <39026988+HumphreyYang@users.noreply.github.com> Date: Mon, 16 Oct 2023 09:59:24 +1100 Subject: [PATCH] change to bracket=[0.47, 4.5] (#148) --- lectures/five_preferences.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/five_preferences.md b/lectures/five_preferences.md index 492cfe8f..103e0781 100644 --- a/lectures/five_preferences.md +++ b/lectures/five_preferences.md @@ -1217,7 +1217,7 @@ constraint_pref_crit = constraint_criterion_factory(η, π, u) # Create criteri cons_crit_bar = constraint_pref_crit(*c_bundle) # Evaluate criterion at consumption bundle constraint_pref_root_problem = lambda c_2, c_1, u_bar: u_bar - constraint_pref_crit(c_1, c_2) # Formulate root problem # Solve root problem for all c_1 values -c_2_grid_cons = solve_root_problem(constraint_pref_root_problem, cons_crit_bar, c_1_grid, method='bisect', bracket=[0.3, 4.4]) +c_2_grid_cons = solve_root_problem(constraint_pref_root_problem, cons_crit_bar, c_1_grid, method='bisect', bracket=[0.47, 4.5]) # Compute associated η and θ values ηs = np.empty(c_1_grid.size)