This invention discloses an
adaptive optimization method for the
layout of railway
subgrade drawings with multiple types of annotations, comprising: S1, establishing structural semantic expression information for all annotations in the CAD drawing; S2, identifying the
annotation type of the CAD drawing, reading its structural semantic expression information, and obtaining the adjustment rules for each
annotation; S3, calculating the dynamic adjustment coefficient of the overlap rate of all drawing annotations; S4, calculating the repulsive
force vector between any two annotations, the attractive
force vector between each
annotation and its annotated object, and the overlapping repulsive
force vector experienced by overlapping annotations; S5, calculating the
resultant force vector experienced by each annotation, and moving the position of the annotation according to the direction of the
resultant force vector and the annotation adjustment rules; S6, repeating S3 to S5 until the optimized railway
subgrade CAD drawing is obtained. This method ensures that the overall
layout of the CAD drawing is compact and aesthetically pleasing while guaranteeing that the annotations do not overlap.