【发布时间】:2017-04-05 22:26:21
【问题描述】:
如何在 CLIPS 中创建条件规则来查找输出
例如
(deftemplate holiday
(slot hotel (allowed-symbols nice good poor))
(slot weather (allowed-symbols sunny raining))
)
(deftemplate output
(slot option (allowed-symbols go plan stay))
)
有了这个,我们如何创建这样的规则
if hotel = poor then stay
if hotel = poor and weather = raining then stay
if (hotel = poor and weather = sunny) or (hotel = good and weather = raining) then plan
谢谢
【问题讨论】:
标签: if-statement clips