The mathematical modeling of ecosystems has contributed much to the understanding of the dynamics of such systems. Ecosystems can include not only the natural variety, but also artificial systems designed and controlled by humans. These can range from agricultural systems and activated sludge plants, down to mesocosms, microcosms, and aquaria, which may have practical or research applications. Some purposes may require the design of systems that are completely closed, as far as material cycling is concerned. In all cases, mathematical modeling can help not only to understand the dynamics of the system, but also to design methods of control to keep the system operating in desired ranges. This paper reviews mathematical modeling relevant to the simulation and control of closed or semi-closed artificial ecosystems designed for biological production and recycling in applications in space. Published by Elsevier Science Ltd on behalf of COSPAR.