Optimal control of the temperature by the laser path and the thermal treatment time in selective laser melting process (Mathematical control and related fields, 2025)