Duality Principles in Nonconvex Systems