Impulsive optimal control problems Geometry and constraints mathematics