summaryrefslogtreecommitdiff
path: root/modeling/productions_math.py
diff options
context:
space:
mode:
authorDobbertin, Niclas <niclas.dobbertin@mailbox.org>2024-04-16 09:26:03 +0200
committerDobbertin, Niclas <niclas.dobbertin@mailbox.org>2024-04-16 09:26:03 +0200
commit9f5afe40e26ec2995bf19b86efb73a212abab12e (patch)
tree5aede0dd59063426f78399a64fc8733aa184b93e /modeling/productions_math.py
parent2783b34776c0efc31b2bcaaf66eebd467e4cb3ca (diff)
add greater and lesser
Diffstat (limited to 'modeling/productions_math.py')
-rw-r--r--modeling/productions_math.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/modeling/productions_math.py b/modeling/productions_math.py
index 8a2ebc2..40c400f 100644
--- a/modeling/productions_math.py
+++ b/modeling/productions_math.py
@@ -68,16 +68,16 @@ def init():
result=max(i, j),
)
)
- DM.add(
- actr.makechunk(
- f"lesser{i}{j}",
- "math_op",
- op="lesser",
- arg1=i,
- arg2=j,
- result=min(i, j),
- )
- )
+ # DM.add(
+ # actr.makechunk(
+ # f"lesser{i}{j}",
+ # "math_op",
+ # op="lesser",
+ # arg1=i,
+ # arg2=j,
+ # result=min(i, j),
+ # )
+ # )
DM.add(
actr.makechunk(
f"plus{i}{j}", "math_op", op="add", arg1=i, arg2=j, result=i + j
@@ -153,12 +153,12 @@ def start():
# unwind_prod()
add_prods = prod_addition.addition(Model)
greater_prods = prod_comp.greater_than(Model)
+ less_prods = prod_comp.less_than(Model)
for prod in add_prods:
print(prod)
print("\n")
- # Model.goal.add(actr.makechunk("goal", "math_op", op="greater", arg1=5, arg2=9))
print("goal: ", goal)
print("imaginal: ", imaginal)
x = Model.simulation()