Duality in nonlinear programming and the minimax theorem