Within a continuous vortex model, exact expressions are obtained for the Josephson and magnetic energies of plane (laminar) vortices, as well as for the energy and force of pinning by cells in a three-dimensional Josephson medium. If the porosity of the medium is taken into account, the Josephson and magnetic energies of the vortex differ from those for the continuum case. The contributions to the pinning energy from the Josephson and magnetic energies have opposite signs. An algorithm for numerically solving a system of difference equations is proposed in order to find the shape and the energy of the vortex in its stable and unstable states. The continuous vortex model is shown to fail in predicting correct values of the Josephson and magnetic energy of the vortex, as well as of the pinning energy components. Expressions for the least possible distances between two isolated vortices are obtained for a small pinning parameter. Analytical results are in close agreement with computer simulation. An algorithm for numerically solving a system of difference equations is proposed in order to find the least possible distances between two isolated vortices when the pinning parameter I is not small. The minimal value of I at which the center-to-center distance N of the vortices equals three cells is 1.428; for N = 2, I-min = 1.947. At I > 2.907, the vortices can be centered in adjacent cells. (C) 2001 MAIK "Nauka/Interperiodica".