I would like to thank Stefan Vigerske for his quick answer. So, I had made a mistake in my callback function, which did not return 'true'. Now, after fixing it, IPOPT passes several iterations but finds a bug at a given iteration inside this callback function because x.x=[]. Why is x empty? How can I proceed in this case? Thank you again, Victor Fachinotti