Generalized derivatives of dynamic systems with a linear program embedded. (January 2016)