The invention discloses a method for
cloud manufacturing resource optimization configuration based on an improved
whale algorithm, and the method comprises the steps: building a problem model, and defining a
fitness function; setting improved
whale algorithm parameters, and generating an initial
population; Calculating fitness values of all individuals in the
population, obtaining a current optimal
resource allocation scheme and converting the current optimal
resource allocation scheme into
whale individual position vectors; Introducing a parameter p, and judging whether p is less than or equal to 0.5; If not, performing spiral motion iteration updating to complete
population updating; If yes, whether the value A (1) of the coefficient vector of the improved whale
algorithm is met or not is judged; If yes, performing shrinkage encircling iteration updating; If not, performing
random search predation iteration updating; Obtaining a current optimal resource configuration scheme; Adding 1to the number of iterations, and judging whether the current number of iterations is smaller than the maximum number of iterations; If yes, repeating the operation; And if not, outputting the currentoptimal resource configuration scheme. The whale algorithm is improved, so that the
algorithm convergence speed is higher, the optimal solution is easier to achieve, and a new method is provided forsolving the problem of
resource allocation.