A Variational Approach for the Stationary and Time Dependent Neutron Transport Equation