  Many present and future accelerators must operate with high intensity beams
when distortions induced by space charge forces are among major limiting
factors. Betatron tune depression of above approximately 0.1 per cell leads to
significant distortions of linear optics. Many aspects of machine operation
depend on proper relations between lattice functions and phase advances, and
can be improved with proper treatment of space charge effects. We implement an
adaptive algorithm for linear lattice re matching with full account of space
charge in the linear approximation for the case of Fermilab's IOTA ring. The
method is based on a search for initial second moments that give closed
solution and, at the same time, satisfy predefined set of goals for emittances,
beta functions, dispersions and phase advances at and between points of
interest. Iterative singular value decomposition based technique is used to
search for optimum by varying wide array of model parameters.
