Generic and simple to use Matlab code for solving finite horizon discrete time optimal control problems with one continuous and one discrete control.