Update to new roboptim-core API.