Optimization of the construction project in complex geomechanical conditions