The invention belongs to the technical field of
optical communication, and discloses a
phase diagram optimization method and device, equipment, a storage medium and a product. Determining a plurality of
initial phase diagrams corresponding to the
wavelength selection switch according to the plurality of groups of initial parameters, then obtaining a plurality of
optical power sets corresponding to an output port of the
wavelength selection switch, determining a plurality of worst port isolation degrees according to the plurality of
optical power sets, and when the plurality of worst port isolation degrees are all lower than a preset threshold value, determining the
wavelength selection switch according to the plurality of
initial phase diagrams. And adjusting the plurality of groups of initial parameters according to the plurality of worst port isolation degrees to obtain a plurality of groups of target parameters, and determining a target
phase diagram corresponding to the wavelength selection switch according to the plurality of groups of target parameters. According to the invention, multiple groups of initial parameters are respectively adjusted according to multiple worst port isolation degrees, and only the initial parameters corresponding to the
initial phase diagram can be adjusted, so that the port isolation degree of the wavelength selection switch is rapidly improved, and the target
phase diagram corresponding to the wavelength selection switch is determined according to multiple groups of target parameters. And an optimal target phase diagram can be generated.