Inexact-Restoration Algorithm for Constrained Optimization