home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / CONSULTP.ZIP / LIFESPAN < prev    next >
Encoding:
Text File  |  1988-06-24  |  8.6 KB  |  483 lines

  1. objective(longevity)
  2. legalvals(start)=yes,quit
  3. legalvals(weight)=110_or_less,110-170,170_or_more
  4. legalvals(frame)=small,large
  5. legalvals(fat)=normal,high
  6. legalvals(cholesterol)=normal,high
  7. legalvals(salt)=normal,high
  8. legalvals(race)=black,caucasian,asian
  9. legalvals(alcohol_consumption)=none,moderate,excessive
  10. legalvals(gender)=m,f
  11. legalvals(age)=25_or_less,25-55,55_or_over
  12. legalvals(personality)=aggressive,docile
  13. legalvals(smoker)=yes,no
  14.  
  15. question(start)=Are you ready to begin?
  16. question(longevity)=SORRY, NO ANSWER--HIT RETURN
  17. question(weight)=How much does the subject weigh?
  18. question(frame)=Is the subjects frame:
  19. question(fat)=Is the unsaturated fat intake:
  20. question(cholesterol)=Is the animal fat intake:
  21. question(salt)=Is the salt intake:
  22. question(race)=What is the subjects race?
  23. question(alcohol_consumption)=Is alcohol intake:
  24. question(gender)=What is the subjects gender?
  25. question(age)=How old is the subject?
  26. question(smoker)=Is the subject a smoker?
  27. question(personality)=Is the subject:
  28.  
  29. rule1: if
  30.   relative_weight=normal
  31. then
  32.   weight_ok=yes, cf=80.
  33. rule2: if
  34.   relative_weight=underweight
  35. then
  36.   weight_ok=yes,cf=90.
  37. rule3: if
  38.   heart_disease_risk=below_average
  39. then
  40.   hddanger=low.
  41. rule4: if
  42.   heart_disease_risk=average
  43. then
  44.   hddanger=low.
  45. rule5: if
  46.   start=yes
  47. then
  48.   hddanger=other.
  49. rule6: if
  50.   age=25_or_less and
  51.   gender=f
  52. then
  53.   base_longevity=72,cf=50.
  54. rule7: if
  55.   age=25_or_less and
  56.   gender=m
  57. then
  58.   base_longevity=67,cf=50.
  59. rule8: if
  60.   age=25-55 and
  61.   gender=f
  62. then
  63.   base_longevity=67,cf=50.
  64. rule9: if
  65.   age=25-55 and
  66.   gender=m
  67. then
  68.   base_longevity=62,cf=50.
  69. rule10: if
  70.   age=55_or_over and
  71.   gender=f
  72. then
  73.   base_longevity=64,cf=50.
  74. rule11: if
  75.   age=55_or_over and
  76.   gender=m
  77. then
  78.   base_longevity=60,cf=50.
  79. rule12: if
  80.   weight=110_or_less and
  81.   frame=small and
  82.   gender=f
  83. then
  84.   relative_weight=normal,cf=100.
  85. rule14: if
  86.   weight=110-170 and
  87.   frame=small and
  88.   gender=f
  89. then
  90.   relative_weight=obese,cf=80.
  91. rule17: if
  92.   weight=110-170 and
  93.   gender=f and
  94.   frame=large
  95. then
  96.   relative_weight=normal,cf=100.
  97. rule18: if
  98.   weight=110-170 and
  99.   frame=large and
  100.   gender=f
  101. then
  102.   relative_weight=normal,cf=100.
  103. rule21: if
  104.   weight=170_or_more and
  105.   gender=f
  106. then
  107.   relative_weight=obese,cf=80.
  108. rule13: if
  109.   weight=170_or_more and
  110.   frame=small
  111. then
  112.   relative_weight=obese,cf=100.
  113. rule15: if
  114.   weight=110_or_less and
  115.   frame=large
  116. then
  117.   relative_weight=underweight,cf=100.
  118. rule16: if
  119.   weight=110_or_less and
  120.   frame=small and
  121.   gender=m
  122. then
  123.   relative_weight=underweight,cf=100.
  124. rule19: if
  125.   weight=110-170 and
  126.   frame=small and
  127.   gender=m
  128. then
  129.   relative_weight=normal,cf=80.
  130. rule20: if
  131.   weight=110-170 and
  132.   frame=large and
  133.   gender=m
  134. then
  135.   relative_weight=underweight,cf=80.
  136. rule22: if
  137.   weight=170_or_more and
  138.   gender=m and
  139.   frame=small
  140. then
  141.   relative_weight=obese,cf=100.
  142. rule23: if
  143.   weight=170_or_more and
  144.   gender=m and
  145.   frame=large
  146. then
  147.   relative_weight=normal,cf=80.
  148. rulexx: if
  149.   relative_weight=obese
  150. then
  151.   weight_ok=no,cf=100.
  152. rule24: if
  153.   cholesterol=low and
  154.   fat=high
  155. then
  156.   heart_disease_risk=below_average,cf=80.
  157. rule25: if
  158.   cholesterol=low and
  159.   fat=normal
  160. then
  161.   heart_disease_risk=average,cf=80.
  162. rule26: if
  163.   cholesterol=high
  164. then
  165.   heart_disease_risk=above_average,cf=80.
  166. rule27: if
  167.   cholesterol=normal
  168. then
  169.   heart_disease_risk=average,cf=100.
  170. rule28: if
  171.   salt=high
  172. then
  173.   blood_pressure=above_average,cf=75.
  174. rule29: if
  175.   salt=normal
  176. then
  177.   blood_pressure=average,cf=50.
  178. rule30: if
  179.   calcium=high
  180. then
  181.   osteporosis_risk=below_average,cf=90.
  182. rule31: if
  183.   calcium=normal
  184. then
  185.   osteoporosis_risk=average,cf=80.
  186. rule32: if
  187.   calcium=low
  188. then
  189.   osteoporosis_risk=above_average,cf=100.
  190. rule33: if
  191.   weight_ok=no and
  192.   heart_disease_risk=above_average and
  193.   blood_pressure=above_average and
  194.   smoker=yes
  195. then
  196.    outlook=bleak,cf=100.
  197. rule34: if
  198.   weight_ok=no and
  199.   heart_disease_risk=above_average and
  200.   blood_pressure=above_average and
  201.   smoker=no
  202. then
  203.   outlook=poor,cf=100.
  204. rule35: if
  205.   weight_ok=no and
  206.   heart_disease_risk=above_average and
  207.   blood_pressure=average and
  208.   smoker=no
  209. then
  210.   outlook=fair,cf=80.
  211. rule36: if
  212.   weight_ok=no and
  213.   heart_disease_risk=above_average and
  214.   blood_pressure=average and
  215.   smoker=yes
  216. then
  217.   outlook=poor,cf=100.
  218. rule37: if
  219.   weight_ok=no and
  220.   hddanger=low and
  221.   blood_pressure=average and
  222.   smoker=no
  223. then
  224.   outlook=good,cf=80.
  225. rule38: if
  226.   weight_ok=no and
  227.   hddanger=low and
  228.   blood_pressure=average and
  229.   smoker=yes
  230. then
  231.   outlook=fair,cf=80.
  232. rule39: if
  233.   weight_ok=no and
  234.   hddanger=low and
  235.   blood_pressure=above_average and
  236.   smoker=no
  237. then
  238.   outlook=fair,cf=70.
  239. rule40: if
  240.   weight_ok=no and
  241.   hddanger=low and
  242.   blood_pressure=above_average and
  243.   smoker=yes
  244. then
  245.   outlook=poor,cf=100.
  246. rule41: if
  247.   weight_ok=yes and
  248.   heart_disease_risk=above_average and
  249.   blood_pressure=above_average and
  250.   smoker=yes
  251. then
  252.    outlook=poor,cf=100.
  253. rule42: if
  254.   weight_ok=yes and
  255.   heart_disease_risk=above_average and
  256.   blood_pressure=above_average and
  257.   smoker=no
  258. then
  259.   outlook=fair.
  260. rule43: if
  261.   weight_ok=yes and
  262.   heart_disease_risk=above_average and
  263.   blood_pressure=average and
  264.   smoker=no
  265. then
  266.   outlook=good.
  267. rule44: if
  268.   weight_ok=yes and
  269.   heart_disease_risk=above_average and
  270.   blood_pressure=average and
  271.   smoker=yes
  272. then
  273.   outlook=fair.
  274. rule45: if
  275.   weight_ok=yes and
  276.   hddanger=low and
  277.   blood_pressure=average and
  278.   smoker=no
  279. then
  280.   outlook=excellent.
  281. rule46: if
  282.   weight_ok=yes and
  283.   hddanger=low and
  284.   blood_pressure=average and
  285.   smoker=yes
  286. then
  287.   outlook=fair.
  288. rule47: if
  289.   weight_ok=yes and
  290.   hddanger=low and
  291.   blood_pressure=above_average and
  292.   smoker=no
  293. then
  294.   outlook=good.
  295. rule48: if
  296.   weight_ok=yes and
  297.   hddanger=low and
  298.   blood_pressure=above_average and
  299.   smoker=yes
  300. then
  301.   outlook=fair.
  302. rule41: if
  303.   start=yes
  304. then
  305.   outlook=unknown.
  306. rule42: if
  307.   race=black and
  308.   origin=mediterranean
  309. then
  310.   risk=high.
  311. rule43: if
  312.   personality=aggressive
  313. then
  314.   personality_type=type_a.
  315. rule44: if
  316.   personality=docile
  317. then
  318.   personality_type=type_b.
  319. rule45: if
  320.   personality_type=type_a
  321. then
  322.   risk=high.
  323. rule46: if
  324.   start=yes
  325. then
  326.   risk=unknown.
  327. rule47: if
  328.   alcohol_consumption=moderate
  329. then
  330.   add=good.
  331. rule48: if
  332.   alcohol_consumption=none
  333. then
  334.   add=fair.
  335. rule49: if
  336.   alcohol_consumption=excessive
  337. then
  338.   add=poor.
  339. rule50: if
  340.   outlook=bleak and
  341.   risk=high and
  342.   add=poor
  343. then
  344.   factor=minus_12.
  345. rule51: if
  346.   outlook=excellent and
  347.   risk=unknown and
  348.   add=good
  349. then
  350.   factor=plus_12.
  351. rule52: if
  352.   outlook=excellent and
  353.   risk=high and
  354.   add=good
  355. then
  356.   factor=none.
  357. rule53: if
  358.   outlook=good and
  359.   risk=high and
  360.   add=good
  361. then
  362.   factor=none.
  363. rule54: if
  364.   outlook=fair and
  365.   risk=high
  366. then
  367.   factor=minus_12.
  368. rule55: if
  369.   outlook=poor and
  370.   risk=high
  371. then
  372.   factor=minus_12.
  373. rule56: if
  374.   outlook=excellent and
  375.   risk=unknown and
  376.   add=fair
  377. then
  378.   factor=plus_12.
  379. rule57: if
  380.   outlook=excellent and
  381.   risk=unknown and
  382.   add=poor
  383. then
  384.   factor=plus_12.
  385. rule58: if
  386.   outlook=good and
  387.   risk=unknown
  388. then
  389.   factor=plus_12.
  390. rule59: if
  391.   outlook=fair and
  392.   risk=unknown
  393. then
  394.   factor=none.
  395. rule60: if
  396.   outlook=bleak and
  397.   risk=unknown
  398. then
  399.   factor=none.
  400. rule 61: if
  401.   start=yes
  402. then
  403.   factor=unknown.
  404. rule 62: if
  405.   start=quit
  406. then
  407.   longevity=quit.
  408. rule 63: if
  409.   base_longevity=72 and
  410.   factor=none
  411. then
  412.   longevity=72_yrs.
  413. rule 64: if
  414.   base_longevity=67 and
  415.   factor=none
  416. then
  417.   longevity=67_yrs.
  418. rule 65: if
  419.   base_longevity=64 and
  420.   factor=none
  421. then
  422.   longevity=64_yrs.
  423. rule 66: if
  424.   base_longevity=62 and
  425.   factor=none
  426. then
  427.   longevity=62_yrs.
  428. rule 67: if
  429.   base_longevity=60 and
  430.   factor=none
  431. then
  432.   longevity=60_yrs.
  433. rule 68: if
  434.   base_longevity=72 and
  435.   factor=plus_12
  436. then
  437.   longevity=84_yrs.
  438. rule 69: if
  439.   base_longevity=67 and
  440.   factor=plus_12
  441. then
  442.   longevity=79_yrs.
  443. rule 70: if
  444.   base_longevity=64 and
  445.   factor=plus_12
  446. then
  447.   longevity=76_yrs.
  448. rule 71: if
  449.   base_longevity=62 and
  450.   factor=plus_12
  451. then
  452.   longevity=74_yrs.
  453. rule 72: if
  454.   base_longevity=60 and
  455.   factor=plus_12
  456. then
  457.   longevity=72_yrs.
  458. rule 73: if
  459.   base_longevity=72 and
  460.   factor=minus_12
  461. then
  462.   longevity=60_yrs.
  463. rule 74: if
  464.   base_longevity=67 and
  465.   factor=minus_12
  466. then
  467.   longevity=55_yrs.
  468. rule 75: if
  469.   base_longevity=64 and
  470.   factor=minus_12
  471. then
  472.   longevity=52_yrs.
  473. rule 76: if
  474.   base_longevity=62 and
  475.   factor=minus_12
  476. then
  477.   longevity=50_yrs.
  478. rule 77: if
  479.   base_longevity=60 and
  480.   factor=minus_12
  481. then
  482.   longevity=48_yrs.
  483.