Research Article
Optimization of Consignment-Store-Based Supply Chain with Black Hole Algorithm
| Input: number of stars, objective function, constraints, sign restrictions, termination criteria | | Output: optimal solution | | // Initialization | | generate feasible solutions randomly in the -dimensional search space (9) | | // Pre-evaluation | | for each stars, evaluate the objective function ((2)–(4), (10)) | | // Loop until the termination criteria satisfy | | While (termination criteria satisfy) do | | // Selection of the black hole | | select the best star that has the best value to become a black hole (11) | | // Hawking radiation | | change the position of the black hole (14) | | // movement of stars towards the black hole | | move the stars towards the black holes (12) while constraints ((5)–(8)) are taken into consideration | | // Check the position of stars | | if star is inside the Schwarzschild radius | | absorb the star and generate a new one in the search space (13) | | end if | | // Evaluation | | for each stars, evaluate the objective function ((2)–(4), (10)) | | End of while |
|