Skip to content

Commit

Permalink
[Test] adding mdcpdp to pytest and running configs
Browse files Browse the repository at this point in the history
  • Loading branch information
cbhua committed Apr 5, 2024
1 parent 6fa342d commit 9d0d743
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions configs/env/mdcpdp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
_target_: rl4co.envs.MDCPDPEnv
name: mdcpdp

num_loc: 20
num_depot: 4
min_loc: 0
max_loc: 1
min_capacity: 1
max_capacity: 2
depot_mode: multiple

data_dir: ${paths.root_dir}/data/mdcpdp
val_file: mdcpdp${env.num_loc}_val_seed4321.npz
test_file: mdcpdp${env.num_loc}_test_seed1234.npz
2 changes: 2 additions & 0 deletions tests/test_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
SPCTSPEnv,
SVRPEnv,
TSPEnv,
MDCPDPEnv,
)
from rl4co.models.nn.utils import random_policy, rollout

Expand All @@ -42,6 +43,7 @@
PDPEnv,
MTSPEnv,
ATSPEnv,
MDCPDPEnv,
],
)
def test_routing(env_cls, batch_size=2, size=20):
Expand Down

0 comments on commit 9d0d743

Please sign in to comment.