Maximum Principle for an Optimal Control Problem with an Asymptotic Endpoint Constraint