Nonconvex Duality and an Invex Continuous-Time Generalization of Gordan's Theorem