luwin1127 / direct-method-for-optimal-control

4 direct numerical methods of solving optimal control.
MIT License
47 stars 12 forks source link

About the costate value #1

Closed 827915432 closed 2 months ago

827915432 commented 1 year ago

Hi, I'm curous why the terminal value of costate is 0.1 not 0? https://github.com/luwin1127/direct-method-for-optimal-control/blob/c53a3b46fd17f179ee690297ad2c3a48cd99b429/gradient-method-for-OCP/Steepest_descent_for_optimal_control.m#L17

luwin1127 commented 6 months ago

sry for so long to reply to you. You can set the terminal value of costate as 0, or any other number. Just because the performance of 0.1 is better.