Skip to content

Commit

Permalink
change to bracket=[0.47, 4.5] (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
HumphreyYang authored Oct 15, 2023
1 parent aa44257 commit cf50e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lectures/five_preferences.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

2 comments on commit cf50e14

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.