knowledge-capture

how to combine these two rules with CLIPS?

こ雲淡風輕ζ 提交于 2019-12-08 04:26:41
问题 I have two rules in CLIPS which I want to combine if they're both true...not sure how to do it though. I have an attribute which is called grant-eligible ....I was thinking if I set it to TRUE then I could read the next rule, and then set the 'grant-eligible' to FALSE ....but it seems that my code is getting into an infinite loop when I do this... So here are my rules: (defrule complete "rule for app completeness" ?f <- (application (transcript-received Yes) (app-complete FALSE) (gpa ?v_gpa&:

how to combine these two rules with CLIPS?

时光毁灭记忆、已成空白 提交于 2019-12-06 15:35:02
I have two rules in CLIPS which I want to combine if they're both true...not sure how to do it though. I have an attribute which is called grant-eligible ....I was thinking if I set it to TRUE then I could read the next rule, and then set the 'grant-eligible' to FALSE ....but it seems that my code is getting into an infinite loop when I do this... So here are my rules: (defrule complete "rule for app completeness" ?f <- (application (transcript-received Yes) (app-complete FALSE) (gpa ?v_gpa&:( > ?v_gpa 0))) => (modify ?f (app-complete TRUE))) (defrule denied "rule for admission - DENIED" ?f <-