The invention discloses a service
combination method based on a
colored Petri net and a deep
reinforcement learning agent. The method comprises the following steps: S1, constructing a
colored Petri net model for manufacturing a service
combination system; s2, constructing a deep
reinforcement learning environment based on the model, and defining a
state space, an action space and a reward function; s3, interacting the
intelligent agent with the environment, dynamically generating an action
mask by using a
Petri net model to constrain an action space, and training the
intelligent agent to converge by using a near-end strategy optimization
algorithm; and S4, taking the strategy obtained by training as an optimal service
combination strategy, and triggering transition in the Petri network to generate a final manufacturing service combination scheme. According to the method, the formalized modeling capability of the
colored Petri network and the self-adaptive decision-making capability of deep
reinforcement learning are deeply coupled, so that the problem that in a dynamic complex industrial
interconnection environment, the formalized modeling capability of the
colored Petri network and the self-adaptive decision-making capability of the deep reinforcement learning are influenced is solved; the problems of low decision-making efficiency, poor adaptive ability and opaque optimization process caused by huge decision-making space and complex logic constraints in a manufacturing service
combination method are solved.