A computational algorithm for functional inequality constrained optimization problems