A model of geometry for the coil block in the end parts of superconducting multi-layer
magnets has been considered to take into account finite dimensions of the Rutherford-type
cable. A method for optimization of coil lengths for superconducting magnets is introduced.
The length of the end parts is shortened, which gives a larger effective length of
the magnet and simplifies the assembly technique. Numerical results of coil end
optimization for the dipole superconducting magnet are shown, which have been
designed with the help of a program for modeling of coil blocks in the end parts.