The focus of this paper is the formulation of an optimization technique for the design of the autofrettaged containers taking into account the mechanical characteristics of materials and a maximum internal pressure. The relationship for the determination of outer diameter or radius of a autofrettaged high-pressure container as a function of mechanical characteristics of materials used and maximum working pressure was established. With a computer developed code, a process ofpre-stressingcan be simulated and the initial and working stresses in a container can be quantitatively estimated and graphically represented.