1. A method for optimizing the geometrical shape of the hip prosthesis femoral stem, the femoral stem includes a neck and connected to the neck of the locking wedge tapering toward the distal end and having a lateral narrow side, comprising a distal straight portion and a curved proximal portion, corresponding to the curve, the transition between said distal straight portion and a curved proximal portion occurs in the external lateral point, wherein said method provides for the optimization of the profile curve of said curved proximal portion during execution of steps of the iterative modeling using the set of curves, each of which is defined by the trajectory delineates the outer lateral point of the wedge profile legs when extracting from the cavity the shape of which is complementary to the shape nozhki.2. The method of claim 1, wherein the outer lateral point coincides with the lateral metaphyseal tochkoy.3. A method according to claim 1, wherein while extracting the profile legs of the contact between the cavity retained laterally distal and proximal-medial leg contours and their corresponding boundaries polosti.4. A method according to claim 1, wherein in the first iteration step the first curve determined trajectory delineates the outer lateral point of the passage to the medial side of an arbitrarily chosen point on the proximal wedge portion adjacent to the neck, the extraction of the legs of the profile cavity whose shape is complementary to the shape of the legs , while maintaining contact between the laterally distal and proximal-medial contour legs and corresponding borders of1. Способ оптимизации геометрической формы бедренной ножки протеза тазобедренного сустава, причем бедренная ножка содержит шейку и соединенный с шейкой фиксирующий клин, сужающийся к дистальному концу и имеющий латеральную узкую сторону, включающую в себя дистальный прямой участок и проксимальный изогнутый участок, соответствующий кривой, причем переход между указанными дистальным