REMIND: The Equations