<filename>constant.py
#BATCH_SIZE = 32  # Some hyper-parameters to adjust!
GRAPHMAXCOORDINATE = 100  # This sets the max. coordinate of
NUMBER_OF_VEHICLES = 20  # Change AidoGuest.py as well!
MAP_DIVIDE = 5  # Set this value to change the grid of the map N x N

global LAT_SCALE
# LAT_SCALE = 100

# Vehicle Status
STAY = 0
DRIVETOCUSTOMER = 1
DRIVEWITHCUSTOMER = 2
REBALANCE = 3


# MID_POINTS = [[GRAPHMAXCOORDINATE / MAP_DIVIDE / 2 + GRAPHMAXCOORDINATE / MAP_DIVIDE * (n % MAP_DIVIDE),
#                LAT_SCALE / MAP_DIVIDE / 2 + LAT_SCALE / MAP_DIVIDE * (n // MAP_DIVIDE)] for n in
#               range(MAP_DIVIDE ** 2)]

NINE_REGIONS = [[1, -1], [1, 0], [1, 1], [0, -1], [0, 0], [0, 1], [-1, -1], [-1, 0], [-1, 1]]

# Set Hyper-parameters
PICKUP_REWARD = 100
DISTANCE_COST = -0.03
NO_PICKUP_PENALTY = -150

STAY_TIMEOUT = 60
N_FEATURE = 27
N_ACTION = 19

EPS_START = 0.3
EPS_END = 0.05
EPS_DECAY = 2000
BATCH_SIZE = 64
GAMMA = 0.99
TARGET_UPDATE = 10

ILLEGAL_AREA = -1
R_ILLEGAL = -1000
SAVE_PERIOD = 3600
LOAD_FLAG = False
SAVE_FLAG = True

# Choose EPS_START accordingly
if LOAD_FLAG:
    EPS_START = 0.3
else:
    EPS_START = 0.9

SAVE_PATH = './weight/dqn_weight_NOPICK_-150_GAMMA_0.99.pt'
LOAD_PATH = './weight/dqn_weight.pt'
PRINT_REWARD_PERIOD = 120
MEMORY_SIZE = 5000

SLIDE_WIN_SIZE = 5000
const_bound = 1

PRINT_REWARD_AGG_PERIOD = 3600

<filename>constant.py
#BATCH_SIZE = 32  # Some hyper-parameters to adjust!
GRAPHMAXCOORDINATE = 100  # This sets the max. coordinate of
NUMBER_OF_VEHICLES = 20  # Change AidoGuest.py as well!
MAP_DIVIDE = 5  # Set this value to change the grid of the map N x N

global LAT_SCALE
# LAT_SCALE = 100

# Vehicle Status
STAY = 0
DRIVETOCUSTOMER = 1
DRIVEWITHCUSTOMER = 2
REBALANCE = 3


# MID_POINTS = [[GRAPHMAXCOORDINATE / MAP_DIVIDE / 2 + GRAPHMAXCOORDINATE / MAP_DIVIDE * (n % MAP_DIVIDE),
#                LAT_SCALE / MAP_DIVIDE / 2 + LAT_SCALE / MAP_DIVIDE * (n // MAP_DIVIDE)] for n in
#               range(MAP_DIVIDE ** 2)]

NINE_REGIONS = [[1, -1], [1, 0], [1, 1], [0, -1], [0, 0], [0, 1], [-1, -1], [-1, 0], [-1, 1]]

# Set Hyper-parameters
PICKUP_REWARD = 100
DISTANCE_COST = -0.03
NO_PICKUP_PENALTY = -150

STAY_TIMEOUT = 60
N_FEATURE = 27
N_ACTION = 19

EPS_START = 0.3
EPS_END = 0.05
EPS_DECAY = 2000
BATCH_SIZE = 64
GAMMA = 0.99
TARGET_UPDATE = 10

ILLEGAL_AREA = -1
R_ILLEGAL = -1000
SAVE_PERIOD = 3600
LOAD_FLAG = False
SAVE_FLAG = True

# Choose EPS_START accordingly
if LOAD_FLAG:
    EPS_START = 0.3
else:
    EPS_START = 0.9

SAVE_PATH = './weight/dqn_weight_NOPICK_-150_GAMMA_0.99.pt'
LOAD_PATH = './weight/dqn_weight.pt'
PRINT_REWARD_PERIOD = 120
MEMORY_SIZE = 5000

SLIDE_WIN_SIZE = 5000
const_bound = 1

PRINT_REWARD_AGG_PERIOD = 3600

#BATCH_SIZE = 32  # Some hyper-parameters to adjust! # This sets the max. coordinate of # Change AidoGuest.py as well! # Set this value to change the grid of the map N x N # LAT_SCALE = 100 # Vehicle Status # MID_POINTS = [[GRAPHMAXCOORDINATE / MAP_DIVIDE / 2 + GRAPHMAXCOORDINATE / MAP_DIVIDE * (n % MAP_DIVIDE), #                LAT_SCALE / MAP_DIVIDE / 2 + LAT_SCALE / MAP_DIVIDE * (n // MAP_DIVIDE)] for n in #               range(MAP_DIVIDE ** 2)] # Set Hyper-parameters # Choose EPS_START accordingly