-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi, sorry to bother you again, I am still exploring and learning your work. If I just want to target the OVRPTW problem and not use MoE, when I set problem to "OVRPTW", num_experts to 1, it seems to be possible?
But if I want to try more nodes (for example, n=500), I first use generate_data to generate the OVRPTW_500 dataset. Then, due to the usage restrictions of get_opt_sol_path, I use the following code to generate the optimal solution based on baseline -> or_tools:
python OR-Tools_baseline.py --problem=OVRPTW --datasets=../data/OVRPTW/ovrptw500_uniform.pkl -n=1000 --cpus=10 -timelimit=20
But the following problem occurred:
>> OR-Tools failed to solve instance 99 - Solver status: 7
>> OR-Tools failed to solve instance 98 - Solver status: 7
>> Solving 100 instances within 22.33s using OR-Tools
Traceback (most recent call last):
File "/root/Routing-MVMoE-main/baselines/OR-Tools_baseline.py", line 421, in <module> print("Average cost: {} +- {}".format(np.mean(costs), 2 * np.std(costs) / np.sqrt(len(costs))))
File "/root/miniforge3/lib/python3.10/site-packages/numpy/core/fromnumeric.py", line 3504, in mean return _methods._mean(a, axis=axis, dtype=dtype,
File "/root/miniforge3/lib/python3.10/site-packages/numpy/core/_methods.py", line 118, in _mean ret = umr_sum(arr, axis, dtype, out, keepdims, where=where)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'
I would like to ask how to correctly use or-tools to generate the optimal solution? Thank you so much!
By the way, I used "ovrptw200_uniform.pkl" under "data-OVRPTW" as the dataset, and or-tools also had the above error.