The notebook retirement_model showcases the DC step in the standard case where the discontinuity we need to correct for occurs outside of the credit constrained region. This, the code does not replicate lines 137-148 of retirement_model.m, which handle this specific edge case.
Please add handling of discontinuity in credit constrained region and make sure to test it on a case where it is actually used.
The notebook
retirement_model
showcases the DC step in the standard case where the discontinuity we need to correct for occurs outside of the credit constrained region. This, the code does not replicate lines 137-148 of retirement_model.m, which handle this specific edge case.Please add handling of discontinuity in credit constrained region and make sure to test it on a case where it is actually used.