First Order Conditions for General Nonlinear Optimization | Synapse