scipplan 0.1.0a3__py2.py3-none-any.whl → 0.1.1a0__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
scipplan/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.1.0alpha3"
1
+ __version__ = "0.1.1alpha0"
2
2
  print(f"SCIPPlan Version: {__version__}")
3
3
  __release__ = "v0.1.0"
4
4
  __author__ = "Ari Gestetner, Buser Say"
scipplan/plan_model.py CHANGED
@@ -95,12 +95,17 @@ class PlanModel:
95
95
 
96
96
  self.var_names.add(name)
97
97
 
98
- for t in range(self.config.horizon):
99
- variables[(name, t)] = Variable.create_var(self.model, name, vtype, t, self.constants)
100
- var_type = variables[(name, t)].var_type
101
- if var_type is VarType.STATE:
102
- variables[(name, self.config.horizon)] = Variable.create_var(self.model, name, vtype, self.config.horizon, self.constants)
103
-
98
+ if vtype.startswith("global"):
99
+ var = Variable.create_var(self.model, name, vtype, "global", self.constants)
100
+ for t in range(self.config.horizon + 1):
101
+ variables[(name, t)] = var
102
+ else:
103
+ for t in range(self.config.horizon):
104
+ variables[(name, t)] = Variable.create_var(self.model, name, vtype, t, self.constants)
105
+ var_type = variables[(name, t)].var_type
106
+ if var_type is VarType.STATE:
107
+ variables[(name, self.config.horizon)] = Variable.create_var(self.model, name, vtype, self.config.horizon, self.constants)
108
+
104
109
  return variables
105
110
 
106
111
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scipplan
3
- Version: 0.1.0a3
3
+ Version: 0.1.1a0
4
4
  Summary: Metric Hybrid Factored Planning in Nonlinear Domains with Constraint Generation in Python.
5
5
  Author: Ari Gestetner, Buser Say
6
6
  Author-email: ari.gestetner@monash.edu, buser.say@monash.edu
@@ -121,13 +121,17 @@ state_continuous: Location_x
121
121
  state_continuous: Location_y
122
122
  state_continuous: Speed_x
123
123
  state_continuous: Speed_y
124
+ global_boolean: aux_1
124
125
  ```
125
- where the variable and value type of the variable is set in the format "{variable type}_{value type}" and the variable itself has to be in a Python compatible format (e.g. variables can't use - sign like `some-var` but can use _ like `some_var` as well as the dash sign ' cannot be used). The use of next state variables which is often written using the dash symbol will be explained further in the Transitions section.
126
+ where the variable and value type of the variable is set in the format "{variable type}_{value type}" and the variable itself has to be in a Python compatible format (e.g. variables can't use - symbol like `some-var` but can use _ like `some_var` as well as the dash sign ' cannot be used). The use of next state variables which is often written using the dash symbol will be explained further in the Transitions section.
126
127
  Additionally a variable for Dt has to be defined and has to be the same as the dt_var in the config object so if you would like to use a different variable name for Dt (e.g. dt) please also ensure you add it to the config via the `--dt-var` tag or the `dt_var` parameter.
128
+ The variable type `global` is used when you would like a non state variable to be equal over every time step over the horizon (e.g. if $v_t$ is a variable at time $t$ and $H$ is the horizon, then $v_1 = v_2 = \dots = v_{H+1}$).
129
+
127
130
  The available variable types are
128
131
  - state
129
132
  - action
130
133
  - auxiliary
134
+ - global
131
135
 
132
136
  The available value types are
133
137
  - continuos
@@ -1,8 +1,8 @@
1
- scipplan/__init__.py,sha256=KScjrF1mIQbNUpdz4Ln6Ig5eA4ExpSUKSd1crpjyuv4,193
1
+ scipplan/__init__.py,sha256=uKbPGbRV0K1aJ2e2_4MzHKuJxn36vtQ7yx5CqTL5Jsk,193
2
2
  scipplan/config.py,sha256=0D6UcLjrv4PTjYRiPoIYXAsRu4nwcaOIWnsI4lAdK6Y,5221
3
3
  scipplan/helpers.py,sha256=YwEr0NeDvb29_Ot686km3ZMJ-vHu-L8zjuexmlKDjpY,974
4
4
  scipplan/parse_model.py,sha256=CI_38xmaiVr8DuOi3UdNrVqWHTdW6qm_5luwLZxIk9I,11136
5
- scipplan/plan_model.py,sha256=daHnVHn2e89OtXXMl63QEoeKGOmy_LwT2oCRTjUUlKQ,11145
5
+ scipplan/plan_model.py,sha256=Zr2NdoSTXkgqpnPVoNvGMjSyNDEJ2ql6_OYIQJGO_E0,11423
6
6
  scipplan/scipplan.py,sha256=z6cuRug4amCg6LU7S4RYHcV6uT3vWLHYGRh9OXFkKoU,8225
7
7
  scipplan/variables.py,sha256=3sxY3zQuxsa5z2fTFjv4zOSb9GarzojZ4W4kIx9FX68,2561
8
8
  scipplan/zero_crossing.py,sha256=kGyJsWZLLXqLW1p3LPDlPC34rTkFF8daDzqgbEcaXus,1043
@@ -30,9 +30,9 @@ scipplan/translation/temporal_constraints_navigation_3.txt,sha256=Ki4nAX9-QtBbY9
30
30
  scipplan/translation/transitions_navigation_1.txt,sha256=kfnr3_A9mCfflLsL4aq7OeR_BHSNST6eYuAg4ZxaPoU,411
31
31
  scipplan/translation/transitions_navigation_2.txt,sha256=kfnr3_A9mCfflLsL4aq7OeR_BHSNST6eYuAg4ZxaPoU,411
32
32
  scipplan/translation/transitions_navigation_3.txt,sha256=aIPP3FOjXZ3G6sTqicEIZ0JKJxdxHCRRZIdc5bUPFBM,395
33
- scipplan-0.1.0a3.dist-info/LICENSE,sha256=tfR4peJA8KJtYEn1NzNV-LWQVRAserdq7OJgYghreR0,1057
34
- scipplan-0.1.0a3.dist-info/METADATA,sha256=O1UnTCpE4vAdV1zmtvJ5jJKcqTErpVtxjlwHE9BO2wg,11234
35
- scipplan-0.1.0a3.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
36
- scipplan-0.1.0a3.dist-info/entry_points.txt,sha256=3qiNbbp6qIwivyPmmikyp7ByCfmsa9rGFNJPcN9Is8I,52
37
- scipplan-0.1.0a3.dist-info/top_level.txt,sha256=xO2FLRn7YQ-C25E8lagIEbik5T5FTr-Ta5bdiZezEPY,9
38
- scipplan-0.1.0a3.dist-info/RECORD,,
33
+ scipplan-0.1.1a0.dist-info/LICENSE,sha256=tfR4peJA8KJtYEn1NzNV-LWQVRAserdq7OJgYghreR0,1057
34
+ scipplan-0.1.1a0.dist-info/METADATA,sha256=QSfZ3QemoqT9M0GeUeBV4s5zdi5N5TozOt4iKQmqO8M,11498
35
+ scipplan-0.1.1a0.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
36
+ scipplan-0.1.1a0.dist-info/entry_points.txt,sha256=3qiNbbp6qIwivyPmmikyp7ByCfmsa9rGFNJPcN9Is8I,52
37
+ scipplan-0.1.1a0.dist-info/top_level.txt,sha256=xO2FLRn7YQ-C25E8lagIEbik5T5FTr-Ta5bdiZezEPY,9
38
+ scipplan-0.1.1a0.dist-info/RECORD,,