Gravar-mail: GENERAL NECESSARY CONDITIONS FOR OPTIMIZATION PROBLEMS