Questions tagged [clips]

CLIPS is an acronym for C Language Integrated Production System, rules-based programming framework designed for building expert systems.

CLIPS is an acronym for C Language Integrated Production System.

It is a rules-based programming framework designed for building expert systems. Its programming language COOL is similar to LISP and allows object-oriented as well as procedural programming. CLIPS itself is written in C and can be embedded in programs of other languages.

CLIPS core is a forward-chaining inference engine based on the Rete algorithm designed by Dr. Charles L. Forgy of Carnegie Mellon University.

It was developed starting 1985 at NASA to replace the existing LISP based expert system building tool ART*Inference and released into the public domain in the 1990s.

The original name of CLIPS was NASA's AI Language(NAIL).
Links:
CLIPS Web Site
CLIPS source forge

733 questions
0
votes
1 answer

Create rules in CLIPS to move from unknown to known person facts

Assume that you are given a set of 'person' facts that are defined according to the following construct: (deftemplate person (slot name) (slot sex) (allowed-values male female) (multislot children)) Write rules to do the following: Create a fact…
Irwin
  • 12,551
  • 11
  • 67
  • 97
0
votes
1 answer

CLIPS C code that read a value from the fact (Answer-is value) if it is known first field Answer-is?

I try to connect CLIPS to my C program. Set of rules will be loaded from external .clp file into CLIPS. My new C program will in fixed time intervals set new facts (example (temperature 35C)) which will represent current measurements from some…
0
votes
1 answer

How to do a logical or in CLIPS?

Updated code: where to add the check for ?f<-(practice-is-on-off OFF) (defrule no-practice "Rules for when practice cannot be held" (or ?f <- (practice (number-of-paddlers ?p&:(< ?p 6))) ?f <- (practice (number-of-coaches…
engr007
  • 51
  • 4
  • 12
0
votes
1 answer

Problems with loading CLP file from JAR

I am using CLIPSJNI. What I have is: Environment clips = new Environment(); clips.load("main.clp"); where main.clp is put in the same level as src and bin folder. This runs fine in Eclipse. However when I export to JAR. It cannot work. I understand…
0
votes
1 answer

CLIPS finding facts not working

I have the following deftemplates in CLIPS (6.3): (deftemplate A ( slot a ) (slot b) ) (deftemplate forSearch (slot property)(slot value)) I need to read the pair (property, value) from input, and then find the fact A whose value in the slot…
Milos
  • 518
  • 7
  • 22
0
votes
1 answer

compare to nil in clips

How do I compare to nil in clips ? I have tried (defrule update-time ?cur-time <- (current-time ?time) (order (event-time ?new-time-o&:(neq…
Shashank Shekhar
  • 3,958
  • 2
  • 40
  • 52
0
votes
1 answer

How do I integrate CLIPS.net library into VB 2010?

I'm making an expert system using VB.net 2010 I already downloaded the Mommosoft.ExpertSystem.dll in CLIPS.NET Assuming that I already made the Knowledge-based file with CLIPS, how to I integrate it to VB.NET?
0
votes
2 answers

Can not load the CLIPSLIB.dll file with Windows Service

I am working with developing Windows Service using C#. I want to load CLIPSLIB.dll with Windows Service. First I tried write service as console app in vs2010 placing CLIPSLIB.dll in the project debug folder. It worked fine. But when I install it and…
0
votes
1 answer

How to create and scan a list/array ... in embedded CLIPS

How can I create complex data structures in CLIPS? I will shortly explain what I intend to do: if I have a list in C++ for example a list of car models. several users then input keywords, I want to trigger an alert each time a keyword is not in…
DanielZ
  • 1
  • 1
0
votes
1 answer

Using less than on CLIPS program

I am trying to return a message if the user types in a value within certain range. Is this possible on CLIPS? In addition the system should only accept values in increments of 10. If the user types in a number less or equal to 10 it should say…
methuselah
  • 12,766
  • 47
  • 165
  • 315
0
votes
1 answer

temporal rule engine for alarm management

I am looking for a rule based system (forward chaining) like CLIPS than can do temporal reasoning, i.e. phrases of the form: If condition active for more than 10s... If condition1 becomes active less than 10s after condition2 becomes active... If…
Dan
  • 161
  • 1
  • 4
0
votes
1 answer

Find facts using multiple values

(defglobal ?*myGlobal* = 0) (deftemplate myTemp (slot one) (slot second) (slot third) (slot fourth) ) (find-fact ((?p myTemp)) (eq ?p:one aValue)) I want to match a fact based on multiple values; the code…
Cumatru
  • 695
  • 2
  • 12
  • 34
0
votes
1 answer

CLIPS increment certainty to some items in a list

I have a wine defined like this: (deftemplate wine (slot name) (slot color) (slot certainty (type NUMBER) (default 0))) And the list dof wines defined like this: (deffacts wines (wine (name "Chardonnay") (color white)) (wine (name…
Igor Ralic
  • 14,975
  • 4
  • 43
  • 51
0
votes
1 answer

Test for empty variable

I have two stacks, a goal and a stack I'm altering. As I accomplish each step of the goal-stack, I remove a field from it. I know I've finished a particular goal when that stack is now empty. I'm trying to write a rule to test when the variable is…
AmberWolfe
  • 55
  • 3
  • 8
0
votes
1 answer

clips simple rule

does anybody have any idea why this: (defrule initx (declare(salience 90)) => (assert (blabla 10)) ) (defrule gigel (declare(salience 89)) => (printout t "test" crlf) ) is not working? When I delete first rule it…
yonutix
  • 1,964
  • 1
  • 22
  • 51