nurkanovic / nosnoc

nosnoc is an open source software package for NOnSmooth Numerical Optimal Control.
https://nosnoc.readthedocs.io/en/latest/index.html
BSD 2-Clause "Simplified" License
49 stars 10 forks source link

Clock state for integration grid and block band structure in FESD #102

Open nurkanovic opened 2 months ago

nurkanovic commented 2 months ago

Currently, we have for every FE an h. Alternatively, we can define a clock state t, and have a "control variable" hn to determine the length of a finite element. We simply integrate the clock state as t{n+1} = t_n + h_n; and enforce a "terminal" constraint t_N = T_final instead of sum_n h_n = T_final The intermediate variables t_n help eliminate sum_n h_n = T_final, which kills the block banded structure.

nurkanovic commented 2 months ago

remark: This clock state trick is commonly used in "switching time optimization" formulations in mixed integer optimal control.