Optimal Oscillations And Chaos Generation In Biologically-Inspired Systems