-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
hallo,The code always gives an error when running an instance in evrp-2022,The content is:Traceback (most recent call last):
File "C:\Users\403-PC2\Desktop\EVRP-Python-main\evrp.py", line 68, in
solution, history1 = algorithm.solve(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\403-PC2\Desktop\EVRP-Python-main\algorithms\GSGA1.py", line 125, in solve
child_2 = self.hsm(child_2)
^^^^^^^^^^^^^^^^^
File "C:\Users\403-PC2\Desktop\EVRP-Python-main\algorithms\GSGA1.py", line 504, in hsm
mm_customer = np.random.choice(mm_customer_list, p=probs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "mtrand.pyx", line 934, in numpy.random.mtrand.RandomState.choice
ValueError: 'a' cannot be empty unless no samples are taken,How can I solve it
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels