Add time/iter limit and tolerance in ipopt
Fixes #230
Fixes #229