-
Notifications
You must be signed in to change notification settings - Fork 0
/
RL_FMDP_TwoRiver.py
38 lines (29 loc) · 1.08 KB
/
RL_FMDP_TwoRiver.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from RL_FMDP import RL_FMDP
from RiverSwimDomain import RiverSwimDomain
from TwoRiverSwimDomain import TwoRiverSwimDomain
from ThreeRiverSwimDomain import ThreeRiverSwimDomain
from ModifiedCoffeeDomain import ModifiedCoffeeDomain
from SysAdminCircularDomain import SysAdminCircularDomain
from SysAdminThreelegDomain import SysAdminThreelegDomain
from TaxiDomain import TaxiDomain
from SmallTaxiDomain import SmallTaxiDomain
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def main():
print( "Program is running...", flush = True )
#FMDP = RiverSwimDomain( 3 )
FMDP = TwoRiverSwimDomain( 6 )
#FMDP = ThreeRiverSwimDomain( 6 )
#FMDP = ModifiedCoffeeDomain()
#FMDP = SysAdminCircularDomain( 7 )
#FMDP = SysAdminThreelegDomain( 2 )
#FMDP = TaxiDomain()
#FMDP = SmallTaxiDomain()
time_horizon = 100000
ival = 10
delta = 0.01
no_expr = 100
Experiment = RL_FMDP( FMDP, time_horizon, ival, delta, no_expr )
Experiment.run()
if __name__ == "__main__":
main()