Updated syntax in example
Concerning #714: Moved objective gradient function from IpoptSolver to base class