Boundary conditions for the origin of the solar system