To find the optimal compositions for synthesis, a minimization algorithm was also applied. For this purpose, the simulation of terpolymerization was performed by varying the content of the components: MMA, DOT, PhMal, and solvent. The reactivity ratios obtained in the previous step were used for this simulation. The number-average molar mass of the polymer after degradation was used as an loss function: