Solves ordinary and delay differential equations, where the objective function is written in either R or C
