Commit ca4439b
committed
Fix parameter order in solve_model function calls in ifp_advanced
The solve_model function signature expects (ifp, c_init, a_init) and returns (c_out, a_out),
but all call sites were passing parameters in the wrong order (a_init, c_init) and
expecting returns in the wrong order (a_out, c_out).
This fixes all 5 call sites in the lecture to use the correct parameter and return order:
- Line 490: Fixed initial solve_model call
- Line 497: Fixed timed solve_model call
- Line 645: Fixed simulation section call
- Line 737: Fixed return volatility loop call
- Line 814: Fixed income volatility loop call
Fixes #7591 parent b90fc02 commit ca4439b
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | | - | |
| 490 | + | |
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
498 | | - | |
| 497 | + | |
| 498 | + | |
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| |||
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
645 | | - | |
| 645 | + | |
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
737 | | - | |
738 | | - | |
| 737 | + | |
| 738 | + | |
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
| |||
811 | 811 | | |
812 | 812 | | |
813 | 813 | | |
814 | | - | |
815 | | - | |
| 814 | + | |
| 815 | + | |
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
| |||
0 commit comments