Skip to content

Commit 1ddcd4e

Browse files
Copilotmmcky
andcommitted
Fix jax_amss_simple.py execution issue in Jupyter Book context
Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
1 parent 524fb2c commit 1ddcd4e

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

lectures/_static/lecture_specific/amss/jax_amss_simple.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -402,17 +402,4 @@ def create_amss_simple_example():
402402
return crra_params, Π, g
403403

404404

405-
# Example usage
406-
if __name__ == "__main__":
407-
# Create and solve simple AMSS model
408-
crra_params, Π, g = create_amss_simple_example()
409-
410-
print("Solving simplified AMSS model...")
411-
solution = solve_simple_ramsey(crra_params, g)
412-
413-
print("\nOptimal allocations:")
414-
print(f"Consumption: {solution['c']}")
415-
print(f"Leisure: {solution['l']}")
416-
print(f"Labor: {solution['n']}")
417-
print(f"Tax rates: {solution['τ']}")
418-
print(f"\nObjective value: {solution['objective']:.6f}")
405+
# Example usage is now handled in the main lecture file

0 commit comments

Comments
 (0)