Skip to content

Commit 72e85d5

Browse files
committed
add comma in the numbers
1 parent ca330c7 commit 72e85d5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lectures/lp_intro.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ OR-Tools tells us that the best investment strategy is:
337337

338338
3. At the beginning of the third year, the bank balance should be $ \$75,072.245 $.
339339

340-
4. At the end of the third year, the mutual fund will get payouts from the annuity and corporate bond and repay its loan from the bank. At the end it will own $ \$141018.24 $, so that it's total net rate of return over the three periods is $ 41.02\%$.
340+
4. At the end of the third year, the mutual fund will get payouts from the annuity and corporate bond and repay its loan from the bank. At the end it will own $ \$141,018.24 $, so that it's total net rate of return over the three periods is $ 41.02\%$.
341341

342342

343343

@@ -544,14 +544,14 @@ c_ex2 = np.array([1.30*3, 0, 0, 1.06, 1.30])
544544
A_ex2 = np.array([[1, 1, 0, 0, 0],
545545
[1, -rate, 1, 0, 1],
546546
[1, 0, -rate, 1, 0]])
547-
b_ex2 = np.array([100000, 0, 0])
547+
b_ex2 = np.array([100_000, 0, 0])
548548
549549
# Bounds on decision variables
550550
bounds_ex2 = [( 0, None),
551-
(-20000, None),
552-
(-20000, None),
553-
(-20000, None),
554-
( 0, 50000)]
551+
(-20_000, None),
552+
(-20_000, None),
553+
(-20_000, None),
554+
( 0, 50_000)]
555555
```
556556
557557
Let's solve the problem and check the status using `success` attribute.
@@ -583,7 +583,7 @@ SciPy tells us that the best investment strategy is:
583583
584584
3. At the beginning of the third year, the mutual fund should borrow $ \$20,000$ from the bank and invest in the annuity.
585585
586-
4. At the end of the third year, the mutual fund will get payouts from the annuity and corporate bond and repay its loan from the bank. At the end it will own $ \$141018.24 $, so that it's total net rate of return over the three periods is $ 41.02\% $.
586+
4. At the end of the third year, the mutual fund will get payouts from the annuity and corporate bond and repay its loan from the bank. At the end it will own $ \$141,018.24 $, so that it's total net rate of return over the three periods is $ 41.02\% $.
587587
588588
589589

0 commit comments

Comments
 (0)