Inverse problems in optimal control Geometry and constraints mathematics