(*^ ::[ Information = "This is a Mathematica Notebook file. It contains ASCII text, and can be transferred by email, ftp, or other text-file transfer utility. It should be read or edited using a copy of Mathematica or MathReader. If you received this as email, use your mail application or copy/paste to save everything from the line containing (*^ down to the line containing ^*) into a plain text file. On some systems you may have to give the file a name ending with ".ma" to allow Mathematica to recognize it as a Notebook. The line below identifies what version of Mathematica created this file, but it can be opened using any other version as well."; FrontEndVersion = "Macintosh Mathematica Notebook Front End Version 2.2"; MacintoshStandardFontEncoding; fontset = title, inactive, noPageBreakBelow, nohscroll, preserveAspect, groupLikeTitle, center, M7, bold, e8, 24, "Times"; fontset = subtitle, inactive, noPageBreakBelow, nohscroll, preserveAspect, groupLikeTitle, center, M7, bold, e6, 18, "Times"; fontset = subsubtitle, inactive, noPageBreakBelow, nohscroll, preserveAspect, groupLikeTitle, center, M7, italic, e6, 14, "Times"; fontset = section, inactive, noPageBreakBelow, nohscroll, preserveAspect, groupLikeSection, grayBox, M22, bold, a20, 18, "Times"; fontset = subsection, inactive, noPageBreakBelow, nohscroll, preserveAspect, groupLikeSection, blackBox, M19, bold, a15, 14, "Times"; fontset = subsubsection, inactive, noPageBreakBelow, nohscroll, preserveAspect, groupLikeSection, whiteBox, M18, bold, a12, 12, "Times"; fontset = text, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; fontset = smalltext, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 10, "Times"; fontset = input, noPageBreakInGroup, nowordwrap, preserveAspect, groupLikeInput, M42, N23, bold, L-5, 12, "Courier"; fontset = output, output, inactive, noPageBreakInGroup, nowordwrap, preserveAspect, groupLikeOutput, M42, N23, L-5, 12, "Courier"; fontset = message, inactive, noPageBreakInGroup, nowordwrap, preserveAspect, groupLikeOutput, M42, N23, R65535, L-5, 12, "Courier"; fontset = print, inactive, noPageBreakInGroup, nowordwrap, preserveAspect, groupLikeOutput, M42, N23, L-5, 12, "Courier"; fontset = info, inactive, noPageBreakInGroup, nowordwrap, preserveAspect, groupLikeOutput, M42, N23, B65535, L-5, 12, "Courier"; fontset = postscript, PostScript, formatAsPostScript, output, inactive, noPageBreakInGroup, nowordwrap, preserveAspect, groupLikeGraphics, M7, l34, w282, h287, 12, "Courier"; fontset = name, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, italic, 10, "Geneva"; fontset = header, inactive, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; fontset = leftheader, inactive, L2, 12, "Times"; fontset = footer, inactive, noKeepOnOnePage, preserveAspect, center, M7, 12, "Times"; fontset = leftfooter, inactive, L2, 12, "Times"; fontset = help, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 10, "Times"; fontset = clipboard, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; fontset = completions, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; fontset = special1, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; fontset = special2, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; fontset = special3, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; fontset = special4, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; fontset = special5, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; paletteColors = 128; automaticGrouping; currentKernel; ] :[font = text; inactive; preserveAspect] Fuzzy set example Step 1 -- Define Fuzzy Sets Let's define six fuzzy sets low energy high energy low protein high protein high feed low feed lets measure feed, energy and protein on a 0 to 10 scale (this is just to keep the example simple any scale could have been used) for these sets assume the following membership function for low ;[s] 3:0,1;19,2;47,1;344,-1; 3:0,13,9,Times,0,12,0,0,0;2,16,12,Times,0,14,0,0,0;1,25,18,Times,1,24,0,0,0; :[font = input; preserveAspect; startGroup] $DefaultFont = {"Chicago" , 12} low[x_]:= 1- (1/(1+Exp[-((x-5)/1.0)])) Plot[low[x],{x,0,10},AxesLabel -> {"Value","Membership"},GridLines -> Automatic] :[font = output; output; inactive; preserveAspect] {"Chicago", 12} ;[o] {Chicago, 12} :[font = postscript; PostScript; formatAsPostScript; output; inactive; preserveAspect; pictureLeft = 36; pictureWidth = 282; pictureHeight = 174] %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart %% Graphics /Chicago findfont 12 scalefont setfont % Scaling calculations 0.0238095 0.0952381 0.0147151 0.59257 [ [(2)] .21429 .01472 0 2 Msboxa [(4)] .40476 .01472 0 2 Msboxa [(6)] .59524 .01472 0 2 Msboxa [(8)] .78571 .01472 0 2 Msboxa [(10)] .97619 .01472 0 2 Msboxa [(Value)] 1.025 .01472 -1 0 Msboxa [(0.2)] .01131 .13323 1 0 Msboxa [(0.4)] .01131 .25174 1 0 Msboxa [(0.6)] .01131 .37026 1 0 Msboxa [(0.8)] .01131 .48877 1 0 Msboxa [(1)] .01131 .60728 1 0 Msboxa [(Membership)] .02381 .61803 0 -4 Msboxa [ -0.001 -0.001 0 0 ] [ 1.001 .61903 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath [ ] 0 setdash 0 g p p 0 0 .5 r .001 w .02381 0 m .02381 .61803 L s P p 0 0 .5 r .001 w .21429 0 m .21429 .61803 L s P p 0 0 .5 r .001 w .40476 0 m .40476 .61803 L s P p 0 0 .5 r .001 w .59524 0 m .59524 .61803 L s P p 0 0 .5 r .001 w .78571 0 m .78571 .61803 L s P p 0 0 .5 r .001 w .97619 0 m .97619 .61803 L s P p 0 0 .5 r .001 w 0 .01472 m 1 .01472 L s P p 0 0 .5 r .001 w 0 .13323 m 1 .13323 L s P p 0 0 .5 r .001 w 0 .25174 m 1 .25174 L s P p 0 0 .5 r .001 w 0 .37026 m 1 .37026 L s P p 0 0 .5 r .001 w 0 .48877 m 1 .48877 L s P p 0 0 .5 r .001 w 0 .60728 m 1 .60728 L s P p .002 w .21429 .01472 m .21429 .02097 L s P [(2)] .21429 .01472 0 2 Mshowa p .002 w .40476 .01472 m .40476 .02097 L s P [(4)] .40476 .01472 0 2 Mshowa p .002 w .59524 .01472 m .59524 .02097 L s P [(6)] .59524 .01472 0 2 Mshowa p .002 w .78571 .01472 m .78571 .02097 L s P [(8)] .78571 .01472 0 2 Mshowa p .002 w .97619 .01472 m .97619 .02097 L s P [(10)] .97619 .01472 0 2 Mshowa p .001 w .0619 .01472 m .0619 .01847 L s P p .001 w .1 .01472 m .1 .01847 L s P p .001 w .1381 .01472 m .1381 .01847 L s P p .001 w .17619 .01472 m .17619 .01847 L s P p .001 w .25238 .01472 m .25238 .01847 L s P p .001 w .29048 .01472 m .29048 .01847 L s P p .001 w .32857 .01472 m .32857 .01847 L s P p .001 w .36667 .01472 m .36667 .01847 L s P p .001 w .44286 .01472 m .44286 .01847 L s P p .001 w .48095 .01472 m .48095 .01847 L s P p .001 w .51905 .01472 m .51905 .01847 L s P p .001 w .55714 .01472 m .55714 .01847 L s P p .001 w .63333 .01472 m .63333 .01847 L s P p .001 w .67143 .01472 m .67143 .01847 L s P p .001 w .70952 .01472 m .70952 .01847 L s P p .001 w .74762 .01472 m .74762 .01847 L s P p .001 w .82381 .01472 m .82381 .01847 L s P p .001 w .8619 .01472 m .8619 .01847 L s P p .001 w .9 .01472 m .9 .01847 L s P p .001 w .9381 .01472 m .9381 .01847 L s P [(Value)] 1.025 .01472 -1 0 Mshowa p .002 w 0 .01472 m 1 .01472 L s P p .002 w .02381 .13323 m .03006 .13323 L s P [(0.2)] .01131 .13323 1 0 Mshowa p .002 w .02381 .25174 m .03006 .25174 L s P [(0.4)] .01131 .25174 1 0 Mshowa p .002 w .02381 .37026 m .03006 .37026 L s P [(0.6)] .01131 .37026 1 0 Mshowa p .002 w .02381 .48877 m .03006 .48877 L s P [(0.8)] .01131 .48877 1 0 Mshowa p .002 w .02381 .60728 m .03006 .60728 L s P [(1)] .01131 .60728 1 0 Mshowa p .001 w .02381 .03842 m .02756 .03842 L s P p .001 w .02381 .06212 m .02756 .06212 L s P p .001 w .02381 .08582 m .02756 .08582 L s P p .001 w .02381 .10953 m .02756 .10953 L s P p .001 w .02381 .15693 m .02756 .15693 L s P p .001 w .02381 .18063 m .02756 .18063 L s P p .001 w .02381 .20434 m .02756 .20434 L s P p .001 w .02381 .22804 m .02756 .22804 L s P p .001 w .02381 .27545 m .02756 .27545 L s P p .001 w .02381 .29915 m .02756 .29915 L s P p .001 w .02381 .32285 m .02756 .32285 L s P p .001 w .02381 .34655 m .02756 .34655 L s P p .001 w .02381 .39396 m .02756 .39396 L s P p .001 w .02381 .41766 m .02756 .41766 L s P p .001 w .02381 .44137 m .02756 .44137 L s P p .001 w .02381 .46507 m .02756 .46507 L s P p .001 w .02381 .51247 m .02756 .51247 L s P p .001 w .02381 .53618 m .02756 .53618 L s P p .001 w .02381 .55988 m .02756 .55988 L s P p .001 w .02381 .58358 m .02756 .58358 L s P [(Membership)] .02381 .61803 0 -4 Mshowa p .002 w .02381 0 m .02381 .61803 L s P P 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath p p .004 w .02381 .60332 m .04365 .60241 L .06349 .60129 L .10317 .59824 L .12302 .59618 L .14286 .59367 L .1627 .5906 L .18254 .58687 L .22222 .57686 L .24206 .57026 L .2619 .56233 L .30159 .54167 L .34127 .51314 L .38095 .47532 L .42063 .42777 L .46032 .37185 L .5 .311 L .53968 .25015 L .57937 .19423 L .61905 .14668 L .65873 .10886 L .69841 .08033 L .71825 .06912 L .7381 .05967 L .75794 .05174 L .77778 .04514 L .81746 .03513 L .8373 .0314 L .85714 .02833 L .87698 .02582 L .89683 .02376 L .91667 .02208 L .93651 .02071 L .97619 .01868 L s P P % End of Graphics MathPictureEnd :[font = output; output; inactive; preserveAspect; endGroup] Graphics["<<>>"] ;[o] -Graphics- :[font = text; inactive; preserveAspect] for these sets assume the following membership function for high ;[s] 1:0,1;66,-1; 2:0,13,9,Times,0,12,0,0,0;1,19,14,Times,0,18,0,0,0; :[font = input; preserveAspect; startGroup] high[x_]:= 1/(1+Exp[-((x-5)/1.0)]) Plot[high[x],{x,0,10},AxesLabel -> {"Value","Membership"},GridLines -> Automatic] :[font = postscript; PostScript; formatAsPostScript; output; inactive; preserveAspect; pictureLeft = 34; pictureWidth = 282; pictureHeight = 174] %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart %% Graphics /Chicago findfont 12 scalefont setfont % Scaling calculations 0.0238095 0.0952381 0.0147151 0.59257 [ [(2)] .21429 .01472 0 2 Msboxa [(4)] .40476 .01472 0 2 Msboxa [(6)] .59524 .01472 0 2 Msboxa [(8)] .78571 .01472 0 2 Msboxa [(10)] .97619 .01472 0 2 Msboxa [(Value)] 1.025 .01472 -1 0 Msboxa [(0.2)] .01131 .13323 1 0 Msboxa [(0.4)] .01131 .25174 1 0 Msboxa [(0.6)] .01131 .37026 1 0 Msboxa [(0.8)] .01131 .48877 1 0 Msboxa [(1)] .01131 .60728 1 0 Msboxa [(Membership)] .02381 .61803 0 -4 Msboxa [ -0.001 -0.001 0 0 ] [ 1.001 .61903 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath [ ] 0 setdash 0 g p p 0 0 .5 r .001 w .02381 0 m .02381 .61803 L s P p 0 0 .5 r .001 w .21429 0 m .21429 .61803 L s P p 0 0 .5 r .001 w .40476 0 m .40476 .61803 L s P p 0 0 .5 r .001 w .59524 0 m .59524 .61803 L s P p 0 0 .5 r .001 w .78571 0 m .78571 .61803 L s P p 0 0 .5 r .001 w .97619 0 m .97619 .61803 L s P p 0 0 .5 r .001 w 0 .01472 m 1 .01472 L s P p 0 0 .5 r .001 w 0 .13323 m 1 .13323 L s P p 0 0 .5 r .001 w 0 .25174 m 1 .25174 L s P p 0 0 .5 r .001 w 0 .37026 m 1 .37026 L s P p 0 0 .5 r .001 w 0 .48877 m 1 .48877 L s P p 0 0 .5 r .001 w 0 .60728 m 1 .60728 L s P p .002 w .21429 .01472 m .21429 .02097 L s P [(2)] .21429 .01472 0 2 Mshowa p .002 w .40476 .01472 m .40476 .02097 L s P [(4)] .40476 .01472 0 2 Mshowa p .002 w .59524 .01472 m .59524 .02097 L s P [(6)] .59524 .01472 0 2 Mshowa p .002 w .78571 .01472 m .78571 .02097 L s P [(8)] .78571 .01472 0 2 Mshowa p .002 w .97619 .01472 m .97619 .02097 L s P [(10)] .97619 .01472 0 2 Mshowa p .001 w .0619 .01472 m .0619 .01847 L s P p .001 w .1 .01472 m .1 .01847 L s P p .001 w .1381 .01472 m .1381 .01847 L s P p .001 w .17619 .01472 m .17619 .01847 L s P p .001 w .25238 .01472 m .25238 .01847 L s P p .001 w .29048 .01472 m .29048 .01847 L s P p .001 w .32857 .01472 m .32857 .01847 L s P p .001 w .36667 .01472 m .36667 .01847 L s P p .001 w .44286 .01472 m .44286 .01847 L s P p .001 w .48095 .01472 m .48095 .01847 L s P p .001 w .51905 .01472 m .51905 .01847 L s P p .001 w .55714 .01472 m .55714 .01847 L s P p .001 w .63333 .01472 m .63333 .01847 L s P p .001 w .67143 .01472 m .67143 .01847 L s P p .001 w .70952 .01472 m .70952 .01847 L s P p .001 w .74762 .01472 m .74762 .01847 L s P p .001 w .82381 .01472 m .82381 .01847 L s P p .001 w .8619 .01472 m .8619 .01847 L s P p .001 w .9 .01472 m .9 .01847 L s P p .001 w .9381 .01472 m .9381 .01847 L s P [(Value)] 1.025 .01472 -1 0 Mshowa p .002 w 0 .01472 m 1 .01472 L s P p .002 w .02381 .13323 m .03006 .13323 L s P [(0.2)] .01131 .13323 1 0 Mshowa p .002 w .02381 .25174 m .03006 .25174 L s P [(0.4)] .01131 .25174 1 0 Mshowa p .002 w .02381 .37026 m .03006 .37026 L s P [(0.6)] .01131 .37026 1 0 Mshowa p .002 w .02381 .48877 m .03006 .48877 L s P [(0.8)] .01131 .48877 1 0 Mshowa p .002 w .02381 .60728 m .03006 .60728 L s P [(1)] .01131 .60728 1 0 Mshowa p .001 w .02381 .03842 m .02756 .03842 L s P p .001 w .02381 .06212 m .02756 .06212 L s P p .001 w .02381 .08582 m .02756 .08582 L s P p .001 w .02381 .10953 m .02756 .10953 L s P p .001 w .02381 .15693 m .02756 .15693 L s P p .001 w .02381 .18063 m .02756 .18063 L s P p .001 w .02381 .20434 m .02756 .20434 L s P p .001 w .02381 .22804 m .02756 .22804 L s P p .001 w .02381 .27545 m .02756 .27545 L s P p .001 w .02381 .29915 m .02756 .29915 L s P p .001 w .02381 .32285 m .02756 .32285 L s P p .001 w .02381 .34655 m .02756 .34655 L s P p .001 w .02381 .39396 m .02756 .39396 L s P p .001 w .02381 .41766 m .02756 .41766 L s P p .001 w .02381 .44137 m .02756 .44137 L s P p .001 w .02381 .46507 m .02756 .46507 L s P p .001 w .02381 .51247 m .02756 .51247 L s P p .001 w .02381 .53618 m .02756 .53618 L s P p .001 w .02381 .55988 m .02756 .55988 L s P p .001 w .02381 .58358 m .02756 .58358 L s P [(Membership)] .02381 .61803 0 -4 Mshowa p .002 w .02381 0 m .02381 .61803 L s P P 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath p p .004 w .02381 .01868 m .04365 .01959 L .06349 .02071 L .10317 .02376 L .12302 .02582 L .14286 .02833 L .1627 .0314 L .18254 .03513 L .22222 .04514 L .24206 .05174 L .2619 .05967 L .30159 .08033 L .34127 .10886 L .38095 .14668 L .42063 .19423 L .46032 .25015 L .5 .311 L .53968 .37185 L .57937 .42777 L .61905 .47532 L .65873 .51314 L .69841 .54167 L .71825 .55288 L .7381 .56233 L .75794 .57026 L .77778 .57686 L .81746 .58687 L .8373 .5906 L .85714 .59367 L .87698 .59618 L .89683 .59824 L .91667 .59992 L .93651 .60129 L .97619 .60332 L s P P % End of Graphics MathPictureEnd :[font = output; output; inactive; preserveAspect; endGroup] Graphics["<<>>"] ;[o] -Graphics- :[font = text; inactive; preserveAspect] What does this mean? If the energy level is 6 then this observation is scored on the low energy fuzzy set as about a .4 and on the high energy fuzzy set as about a .6. Thus this observation is not classed as either high or low energy but is associated to varying degrees with both concepts. This is the key to fuzzy sets. What can we do with this? Step 2 Relating Observations to Fuzzy Sets Lets take an example with 10 observations of energy and protein. ;[s] 5:0,3;355,1;356,2;399,1;465,0;467,-1; 4:1,13,9,Times,0,12,0,0,0;2,19,14,Times,0,18,0,0,0;1,25,18,Times,0,24,0,0,0;1,16,12,Times,0,14,0,0,0; :[font = input; preserveAspect; startGroup] energy = {0.0,0.0,0.0,0.0,3.2,6.1,10.0,3.2,3.2,10.0} :[font = output; output; inactive; preserveAspect; endGroup] {0., 0., 0., 0., 3.2, 6.1, 10., 3.2, 3.2, 10.} ;[o] {0., 0., 0., 0., 3.2, 6.1, 10., 3.2, 3.2, 10.} :[font = input; preserveAspect; startGroup] protein = {0.0,3.2,6.1,10.0,0.0,0.0,0.0,3.1,3.3,10.0} :[font = output; output; inactive; preserveAspect; endGroup] {0., 3.2, 6.1, 10., 0., 0., 0., 3.1, 3.3, 10.} ;[o] {0., 3.2, 6.1, 10., 0., 0., 0., 3.1, 3.3, 10.} :[font = text; inactive; preserveAspect] The following evaluate the observations in terms of their membership in the four fuzzy sets we have defined. ;[s] 3:0,0;58,1;68,0;114,-1; 2:2,13,9,Times,0,12,0,0,0;1,16,12,Times,1,14,0,0,0; :[font = input; preserveAspect; startGroup] lowenergy = low[energy] :[font = output; output; inactive; preserveAspect; endGroup] {0.9933071490757151445, 0.9933071490757151445, 0.9933071490757151445, 0.9933071490757151445, 0.8581489350995122104, 0.2497398944048823958, 0.006692850924284855546, 0.8581489350995122104, 0.8581489350995122104, 0.006692850924284855546} ;[o] {0.993307, 0.993307, 0.993307, 0.993307, 0.858149, 0.24974, 0.00669285, 0.858149, 0.858149, 0.00669285} :[font = input; preserveAspect; startGroup] lowprotein = low[protein] :[font = output; output; inactive; preserveAspect; endGroup] {0.9933071490757151445, 0.8581489350995122104, 0.2497398944048823958, 0.006692850924284855546, 0.9933071490757151445, 0.9933071490757151445, 0.9933071490757151445, 0.8698915256370021479, 0.8455347349164652957, 0.006692850924284855546} ;[o] {0.993307, 0.858149, 0.24974, 0.00669285, 0.993307, 0.993307, 0.993307, 0.869892, 0.845535, 0.00669285} :[font = input; preserveAspect; startGroup] highenergy = high[energy] :[font = output; output; inactive; preserveAspect; endGroup] {0.006692850924284855559, 0.006692850924284855559, 0.006692850924284855559, 0.006692850924284855559, 0.1418510649004877896, 0.7502601055951176042, 0.9933071490757151445, 0.1418510649004877896, 0.1418510649004877896, 0.9933071490757151445} ;[o] {0.00669285, 0.00669285, 0.00669285, 0.00669285, 0.141851, 0.75026, 0.993307, 0.141851, 0.141851, 0.993307} :[font = input; preserveAspect; startGroup] highprotein = high[protein] :[font = output; output; inactive; preserveAspect; endGroup] {0.006692850924284855559, 0.1418510649004877896, 0.7502601055951176042, 0.9933071490757151445, 0.006692850924284855559, 0.006692850924284855559, 0.006692850924284855559, 0.1301084743629978521, 0.1544652650835347043, 0.9933071490757151445} ;[o] {0.00669285, 0.141851, 0.75026, 0.993307, 0.00669285, 0.00669285, 0.00669285, 0.130108, 0.154465, 0.993307} :[font = text; inactive; preserveAspect] Observation 3 for example has an enegy value of 0 and a protein value of 6.1 :[font = input; preserveAspect; startGroup] lowenergy[[3]] lowprotein[[3]] highenergy[[3]] highprotein[[3]] :[font = output; output; inactive; preserveAspect] 0.9933071490757151445 ;[o] 0.993307 :[font = output; output; inactive; preserveAspect] 0.2497398944048823958 ;[o] 0.24974 :[font = output; output; inactive; preserveAspect] 0.006692850924284855559 ;[o] 0.00669285 :[font = output; output; inactive; preserveAspect; endGroup] 0.7502601055951176042 ;[o] 0.75026 :[font = text; inactive; preserveAspect] Step 3 Define Decision Rules For example an expert might define the following common sense rules: Rule 1 if protein is low and energy is low then feed is high Rule 2 if protein is low and energy is high then feed is low Rule 3 if protein is high and energy is low then feed is high Rule 4 if protein is high and energy is high then feed is low Step 4 Inference Now we want to relate the observations to the rules. First we are interested in to what degree an observation has membership in the fuzzy set associated with both lowenergy and lowprotein (rule 1) and the other combinations associated with the remaining rules. The following memberships need to be evaluated. lowenergy and lowprotein lowenergy and highprotein highenergy and lowprotein highenergy and highprotein These and operations can be considered as fuzzy sets with their membership functions defined as the minimum of the values of the memberships on the component sets. ;[s] 5:0,0;2,1;30,0;349,1;365,0;954,-1; 2:3,13,9,Times,0,12,0,0,0;2,25,18,Times,1,24,0,0,0; :[font = input; preserveAspect] MinOpt := Min[FzSet1[[j]],FzSet2[[j]]] FzSet1 = lowenergy; FzSet2 = lowprotein; :[font = input; preserveAspect; startGroup] lowelowp =Table[MinOpt,{j,1,10}] :[font = output; output; inactive; preserveAspect; endGroup] {0.9933071490757151445, 0.8581489350995122104, 0.2497398944048823958, 0.006692850924284855546, 0.8581489350995122104, 0.2497398944048823958, 0.006692850924284855546, 0.8581489350995122104, 0.8455347349164652957, 0.006692850924284855546} ;[o] {0.993307, 0.858149, 0.24974, 0.00669285, 0.858149, 0.24974, 0.00669285, 0.858149, 0.845535, 0.00669285} :[font = input; preserveAspect; startGroup] FzSet1 = lowenergy; FzSet2 = highprotein; lowehighp =Table[MinOpt,{j,1,10}] :[font = output; output; inactive; preserveAspect; endGroup] {0.006692850924284855559, 0.1418510649004877896, 0.7502601055951176042, 0.9933071490757151445, 0.006692850924284855559, 0.006692850924284855559, 0.006692850924284855546, 0.1301084743629978521, 0.1544652650835347043, 0.006692850924284855546} ;[o] {0.00669285, 0.141851, 0.75026, 0.993307, 0.00669285, 0.00669285, 0.00669285, 0.130108, 0.154465, 0.00669285} :[font = input; preserveAspect; startGroup] FzSet1 = highenergy; FzSet2 = lowprotein; highelowp =Table[MinOpt,{j,1,10}] :[font = output; output; inactive; preserveAspect; endGroup] {0.006692850924284855559, 0.006692850924284855559, 0.006692850924284855559, 0.006692850924284855546, 0.1418510649004877896, 0.7502601055951176042, 0.9933071490757151445, 0.1418510649004877896, 0.1418510649004877896, 0.006692850924284855546} ;[o] {0.00669285, 0.00669285, 0.00669285, 0.00669285, 0.141851, 0.75026, 0.993307, 0.141851, 0.141851, 0.00669285} :[font = input; preserveAspect; startGroup] FzSet1 = highenergy; FzSet2 = highprotein; highehighp =Table[MinOpt,{j,1,10}] :[font = output; output; inactive; preserveAspect; endGroup] {0.006692850924284855559, 0.006692850924284855559, 0.006692850924284855559, 0.006692850924284855559, 0.006692850924284855559, 0.006692850924284855559, 0.006692850924284855559, 0.1301084743629978521, 0.1418510649004877896, 0.9933071490757151445} ;[o] {0.00669285, 0.00669285, 0.00669285, 0.00669285, 0.00669285, 0.00669285, 0.00669285, 0.130108, 0.141851, 0.993307} :[font = text; inactive; preserveAspect] Further these fuzzy sets can be used to define the outcomes of rules. In this case the score of the rules premise is applied to the rules conclusion. For the rules defined step 3 each observation is scored on each rule. For example observation 3 has the following scores on these rules. These scores reflect the maximum level of membership for the observation on the fuzzy set defined for the output. (High feed and Low feed) Rule 1 if protein is low and energy is low then feed is high Rule 2 if protein is low and energy is high then feed is low Rule 3 if protein is high and energy is low then feed is high Rule 4 if protein is high and energy is high then feed is low ;[s] 3:0,0;39,1;68,0;675,-1; 2:2,13,9,Times,0,12,0,0,0;1,13,9,Times,1,12,0,0,0; :[font = input; preserveAspect; startGroup] lowelowp[[3]] lowehighp[[3]] highelowp[[3]] highehighp[[3]] :[font = output; output; inactive; preserveAspect] 0.2497398944048823958 ;[o] 0.24974 :[font = output; output; inactive; preserveAspect] 0.7502601055951176042 ;[o] 0.75026 :[font = output; output; inactive; preserveAspect] 0.006692850924284855559 ;[o] 0.00669285 :[font = output; output; inactive; preserveAspect; endGroup] 0.006692850924284855559 ;[o] 0.00669285 :[font = text; inactive; preserveAspect] The above output is associated with both the high feed and low feed rules. What now? For example observation 3 would result in the following :[font = input; preserveAspect; startGroup] minhigh[x_,y_]:=Min[y,high[x]] minlow[x_,y_]:=Min[y,low[x]] y = lowelowp[[3]] R1 = Plot[minhigh[x,y],{x,0,10},PlotRange -> {0,1.0},AxesLabel -> {"Feed Level","Score Rule 1"},GridLines -> Automatic] :[font = output; output; inactive; preserveAspect] 0.2497398944048823958 ;[o] 0.24974 :[font = postscript; PostScript; formatAsPostScript; output; inactive; preserveAspect; pictureLeft = 34; pictureWidth = 282; pictureHeight = 174] %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart %% Graphics /Chicago findfont 12 scalefont setfont % Scaling calculations 0.0238095 0.0952381 0 0.618034 [ [(0)] .02381 0 0 2 Msboxa [(2)] .21429 0 0 2 Msboxa [(4)] .40476 0 0 2 Msboxa [(6)] .59524 0 0 2 Msboxa [(8)] .78571 0 0 2 Msboxa [(10)] .97619 0 0 2 Msboxa [(Feed Level)] 1.025 0 -1 0 Msboxa [(0.2)] .01131 .12361 1 0 Msboxa [(0.4)] .01131 .24721 1 0 Msboxa [(0.6)] .01131 .37082 1 0 Msboxa [(0.8)] .01131 .49443 1 0 Msboxa [(1)] .01131 .61803 1 0 Msboxa [(Score Rule 1)] .02381 .61803 0 -4 Msboxa [ -0.001 -0.001 0 0 ] [ 1.001 .61903 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath [ ] 0 setdash 0 g p p 0 0 .5 r .001 w .02381 0 m .02381 .61803 L s P p 0 0 .5 r .001 w .21429 0 m .21429 .61803 L s P p 0 0 .5 r .001 w .40476 0 m .40476 .61803 L s P p 0 0 .5 r .001 w .59524 0 m .59524 .61803 L s P p 0 0 .5 r .001 w .78571 0 m .78571 .61803 L s P p 0 0 .5 r .001 w .97619 0 m .97619 .61803 L s P p 0 0 .5 r .001 w 0 0 m 1 0 L s P p 0 0 .5 r .001 w 0 .12361 m 1 .12361 L s P p 0 0 .5 r .001 w 0 .24721 m 1 .24721 L s P p 0 0 .5 r .001 w 0 .37082 m 1 .37082 L s P p 0 0 .5 r .001 w 0 .49443 m 1 .49443 L s P p 0 0 .5 r .001 w 0 .61803 m 1 .61803 L s P p .002 w .02381 0 m .02381 .00625 L s P [(0)] .02381 0 0 2 Mshowa p .002 w .21429 0 m .21429 .00625 L s P [(2)] .21429 0 0 2 Mshowa p .002 w .40476 0 m .40476 .00625 L s P [(4)] .40476 0 0 2 Mshowa p .002 w .59524 0 m .59524 .00625 L s P [(6)] .59524 0 0 2 Mshowa p .002 w .78571 0 m .78571 .00625 L s P [(8)] .78571 0 0 2 Mshowa p .002 w .97619 0 m .97619 .00625 L s P [(10)] .97619 0 0 2 Mshowa p .001 w .0619 0 m .0619 .00375 L s P p .001 w .1 0 m .1 .00375 L s P p .001 w .1381 0 m .1381 .00375 L s P p .001 w .17619 0 m .17619 .00375 L s P p .001 w .25238 0 m .25238 .00375 L s P p .001 w .29048 0 m .29048 .00375 L s P p .001 w .32857 0 m .32857 .00375 L s P p .001 w .36667 0 m .36667 .00375 L s P p .001 w .44286 0 m .44286 .00375 L s P p .001 w .48095 0 m .48095 .00375 L s P p .001 w .51905 0 m .51905 .00375 L s P p .001 w .55714 0 m .55714 .00375 L s P p .001 w .63333 0 m .63333 .00375 L s P p .001 w .67143 0 m .67143 .00375 L s P p .001 w .70952 0 m .70952 .00375 L s P p .001 w .74762 0 m .74762 .00375 L s P p .001 w .82381 0 m .82381 .00375 L s P p .001 w .8619 0 m .8619 .00375 L s P p .001 w .9 0 m .9 .00375 L s P p .001 w .9381 0 m .9381 .00375 L s P [(Feed Level)] 1.025 0 -1 0 Mshowa p .002 w 0 0 m 1 0 L s P p .002 w .02381 .12361 m .03006 .12361 L s P [(0.2)] .01131 .12361 1 0 Mshowa p .002 w .02381 .24721 m .03006 .24721 L s P [(0.4)] .01131 .24721 1 0 Mshowa p .002 w .02381 .37082 m .03006 .37082 L s P [(0.6)] .01131 .37082 1 0 Mshowa p .002 w .02381 .49443 m .03006 .49443 L s P [(0.8)] .01131 .49443 1 0 Mshowa p .002 w .02381 .61803 m .03006 .61803 L s P [(1)] .01131 .61803 1 0 Mshowa p .001 w .02381 .02472 m .02756 .02472 L s P p .001 w .02381 .04944 m .02756 .04944 L s P p .001 w .02381 .07416 m .02756 .07416 L s P p .001 w .02381 .09889 m .02756 .09889 L s P p .001 w .02381 .14833 m .02756 .14833 L s P p .001 w .02381 .17305 m .02756 .17305 L s P p .001 w .02381 .19777 m .02756 .19777 L s P p .001 w .02381 .22249 m .02756 .22249 L s P p .001 w .02381 .27193 m .02756 .27193 L s P p .001 w .02381 .29666 m .02756 .29666 L s P p .001 w .02381 .32138 m .02756 .32138 L s P p .001 w .02381 .3461 m .02756 .3461 L s P p .001 w .02381 .39554 m .02756 .39554 L s P p .001 w .02381 .42026 m .02756 .42026 L s P p .001 w .02381 .44498 m .02756 .44498 L s P p .001 w .02381 .46971 m .02756 .46971 L s P p .001 w .02381 .51915 m .02756 .51915 L s P p .001 w .02381 .54387 m .02756 .54387 L s P p .001 w .02381 .56859 m .02756 .56859 L s P p .001 w .02381 .59331 m .02756 .59331 L s P [(Score Rule 1)] .02381 .61803 0 -4 Mshowa p .002 w .02381 0 m .02381 .61803 L s P P 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath p p .004 w .02381 .00414 m .04365 .00509 L .06349 .00625 L .10317 .00944 L .12302 .01158 L .14286 .0142 L .1627 .0174 L .18254 .02129 L .22222 .03173 L .24206 .03862 L .2619 .04688 L .30159 .06843 L .34127 .09819 L .36111 .11664 L .38095 .13764 L .38591 .14329 L .39087 .1491 L .39335 .15207 L .39459 .15357 L .39583 .15435 L .39831 .15435 L .40079 .15435 L .41071 .15435 L .42063 .15435 L .46032 .15435 L .5 .15435 L .53968 .15435 L .57937 .15435 L .61905 .15435 L .65873 .15435 L .69841 .15435 L .7381 .15435 L .77778 .15435 L .81746 .15435 L .85714 .15435 L .89683 .15435 L .93651 .15435 L .97619 .15435 L s P P % End of Graphics MathPictureEnd :[font = output; output; inactive; preserveAspect; endGroup] Graphics["<<>>"] ;[o] -Graphics- :[font = input; preserveAspect; startGroup] y = lowehighp[[3]] R2 = Plot[minhigh[x,y],{x,0,10},PlotRange -> {0,1.0},AxesLabel -> {"Feed Level","Score Rule 2"},GridLines -> Automatic] :[font = output; output; inactive; preserveAspect] 0.7502601055951176042 ;[o] 0.75026 :[font = postscript; PostScript; formatAsPostScript; output; inactive; preserveAspect; pictureLeft = 34; pictureWidth = 282; pictureHeight = 174] %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart %% Graphics /Chicago findfont 12 scalefont setfont % Scaling calculations 0.0238095 0.0952381 0 0.618034 [ [(0)] .02381 0 0 2 Msboxa [(2)] .21429 0 0 2 Msboxa [(4)] .40476 0 0 2 Msboxa [(6)] .59524 0 0 2 Msboxa [(8)] .78571 0 0 2 Msboxa [(10)] .97619 0 0 2 Msboxa [(Feed Level)] 1.025 0 -1 0 Msboxa [(0.2)] .01131 .12361 1 0 Msboxa [(0.4)] .01131 .24721 1 0 Msboxa [(0.6)] .01131 .37082 1 0 Msboxa [(0.8)] .01131 .49443 1 0 Msboxa [(1)] .01131 .61803 1 0 Msboxa [(Score Rule 2)] .02381 .61803 0 -4 Msboxa [ -0.001 -0.001 0 0 ] [ 1.001 .61903 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath [ ] 0 setdash 0 g p p 0 0 .5 r .001 w .02381 0 m .02381 .61803 L s P p 0 0 .5 r .001 w .21429 0 m .21429 .61803 L s P p 0 0 .5 r .001 w .40476 0 m .40476 .61803 L s P p 0 0 .5 r .001 w .59524 0 m .59524 .61803 L s P p 0 0 .5 r .001 w .78571 0 m .78571 .61803 L s P p 0 0 .5 r .001 w .97619 0 m .97619 .61803 L s P p 0 0 .5 r .001 w 0 0 m 1 0 L s P p 0 0 .5 r .001 w 0 .12361 m 1 .12361 L s P p 0 0 .5 r .001 w 0 .24721 m 1 .24721 L s P p 0 0 .5 r .001 w 0 .37082 m 1 .37082 L s P p 0 0 .5 r .001 w 0 .49443 m 1 .49443 L s P p 0 0 .5 r .001 w 0 .61803 m 1 .61803 L s P p .002 w .02381 0 m .02381 .00625 L s P [(0)] .02381 0 0 2 Mshowa p .002 w .21429 0 m .21429 .00625 L s P [(2)] .21429 0 0 2 Mshowa p .002 w .40476 0 m .40476 .00625 L s P [(4)] .40476 0 0 2 Mshowa p .002 w .59524 0 m .59524 .00625 L s P [(6)] .59524 0 0 2 Mshowa p .002 w .78571 0 m .78571 .00625 L s P [(8)] .78571 0 0 2 Mshowa p .002 w .97619 0 m .97619 .00625 L s P [(10)] .97619 0 0 2 Mshowa p .001 w .0619 0 m .0619 .00375 L s P p .001 w .1 0 m .1 .00375 L s P p .001 w .1381 0 m .1381 .00375 L s P p .001 w .17619 0 m .17619 .00375 L s P p .001 w .25238 0 m .25238 .00375 L s P p .001 w .29048 0 m .29048 .00375 L s P p .001 w .32857 0 m .32857 .00375 L s P p .001 w .36667 0 m .36667 .00375 L s P p .001 w .44286 0 m .44286 .00375 L s P p .001 w .48095 0 m .48095 .00375 L s P p .001 w .51905 0 m .51905 .00375 L s P p .001 w .55714 0 m .55714 .00375 L s P p .001 w .63333 0 m .63333 .00375 L s P p .001 w .67143 0 m .67143 .00375 L s P p .001 w .70952 0 m .70952 .00375 L s P p .001 w .74762 0 m .74762 .00375 L s P p .001 w .82381 0 m .82381 .00375 L s P p .001 w .8619 0 m .8619 .00375 L s P p .001 w .9 0 m .9 .00375 L s P p .001 w .9381 0 m .9381 .00375 L s P [(Feed Level)] 1.025 0 -1 0 Mshowa p .002 w 0 0 m 1 0 L s P p .002 w .02381 .12361 m .03006 .12361 L s P [(0.2)] .01131 .12361 1 0 Mshowa p .002 w .02381 .24721 m .03006 .24721 L s P [(0.4)] .01131 .24721 1 0 Mshowa p .002 w .02381 .37082 m .03006 .37082 L s P [(0.6)] .01131 .37082 1 0 Mshowa p .002 w .02381 .49443 m .03006 .49443 L s P [(0.8)] .01131 .49443 1 0 Mshowa p .002 w .02381 .61803 m .03006 .61803 L s P [(1)] .01131 .61803 1 0 Mshowa p .001 w .02381 .02472 m .02756 .02472 L s P p .001 w .02381 .04944 m .02756 .04944 L s P p .001 w .02381 .07416 m .02756 .07416 L s P p .001 w .02381 .09889 m .02756 .09889 L s P p .001 w .02381 .14833 m .02756 .14833 L s P p .001 w .02381 .17305 m .02756 .17305 L s P p .001 w .02381 .19777 m .02756 .19777 L s P p .001 w .02381 .22249 m .02756 .22249 L s P p .001 w .02381 .27193 m .02756 .27193 L s P p .001 w .02381 .29666 m .02756 .29666 L s P p .001 w .02381 .32138 m .02756 .32138 L s P p .001 w .02381 .3461 m .02756 .3461 L s P p .001 w .02381 .39554 m .02756 .39554 L s P p .001 w .02381 .42026 m .02756 .42026 L s P p .001 w .02381 .44498 m .02756 .44498 L s P p .001 w .02381 .46971 m .02756 .46971 L s P p .001 w .02381 .51915 m .02756 .51915 L s P p .001 w .02381 .54387 m .02756 .54387 L s P p .001 w .02381 .56859 m .02756 .56859 L s P p .001 w .02381 .59331 m .02756 .59331 L s P [(Score Rule 2)] .02381 .61803 0 -4 Mshowa p .002 w .02381 0 m .02381 .61803 L s P P 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath p p .004 w .02381 .00414 m .04365 .00509 L .06349 .00625 L .10317 .00944 L .12302 .01158 L .14286 .0142 L .1627 .0174 L .18254 .02129 L .22222 .03173 L .24206 .03862 L .2619 .04688 L .30159 .06843 L .34127 .09819 L .38095 .13764 L .42063 .18723 L .46032 .24555 L .5 .30902 L .53968 .37248 L .55952 .40256 L .57937 .43081 L .58929 .44412 L .59921 .45683 L .60169 .45992 L .60293 .46144 L .60417 .46296 L .60541 .46369 L .60665 .46369 L .60789 .46369 L .60913 .46369 L .61905 .46369 L .65873 .46369 L .69841 .46369 L .7381 .46369 L .77778 .46369 L .81746 .46369 L .85714 .46369 L .89683 .46369 L .93651 .46369 L .97619 .46369 L s P P % End of Graphics MathPictureEnd :[font = output; output; inactive; preserveAspect; endGroup] Graphics["<<>>"] ;[o] -Graphics- :[font = input; preserveAspect; startGroup] y = highelowp[[3]] R3 = Plot[minlow[x,y],{x,0,10},PlotRange -> {0,1.0},AxesLabel -> {"Feed Level","Score Rule 3"},GridLines -> Automatic] :[font = output; output; inactive; preserveAspect] 0.006692850924284855559 ;[o] 0.00669285 :[font = postscript; PostScript; formatAsPostScript; output; inactive; preserveAspect; pictureLeft = 34; pictureWidth = 282; pictureHeight = 174] %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart %% Graphics /Chicago findfont 12 scalefont setfont % Scaling calculations 0.0238095 0.0952381 0 0.618034 [ [(0)] .02381 0 0 2 Msboxa [(2)] .21429 0 0 2 Msboxa [(4)] .40476 0 0 2 Msboxa [(6)] .59524 0 0 2 Msboxa [(8)] .78571 0 0 2 Msboxa [(10)] .97619 0 0 2 Msboxa [(Feed Level)] 1.025 0 -1 0 Msboxa [(0.2)] .01131 .12361 1 0 Msboxa [(0.4)] .01131 .24721 1 0 Msboxa [(0.6)] .01131 .37082 1 0 Msboxa [(0.8)] .01131 .49443 1 0 Msboxa [(1)] .01131 .61803 1 0 Msboxa [(Score Rule 3)] .02381 .61803 0 -4 Msboxa [ -0.001 -0.001 0 0 ] [ 1.001 .61903 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath [ ] 0 setdash 0 g p p 0 0 .5 r .001 w .02381 0 m .02381 .61803 L s P p 0 0 .5 r .001 w .21429 0 m .21429 .61803 L s P p 0 0 .5 r .001 w .40476 0 m .40476 .61803 L s P p 0 0 .5 r .001 w .59524 0 m .59524 .61803 L s P p 0 0 .5 r .001 w .78571 0 m .78571 .61803 L s P p 0 0 .5 r .001 w .97619 0 m .97619 .61803 L s P p 0 0 .5 r .001 w 0 0 m 1 0 L s P p 0 0 .5 r .001 w 0 .12361 m 1 .12361 L s P p 0 0 .5 r .001 w 0 .24721 m 1 .24721 L s P p 0 0 .5 r .001 w 0 .37082 m 1 .37082 L s P p 0 0 .5 r .001 w 0 .49443 m 1 .49443 L s P p 0 0 .5 r .001 w 0 .61803 m 1 .61803 L s P p .002 w .02381 0 m .02381 .00625 L s P [(0)] .02381 0 0 2 Mshowa p .002 w .21429 0 m .21429 .00625 L s P [(2)] .21429 0 0 2 Mshowa p .002 w .40476 0 m .40476 .00625 L s P [(4)] .40476 0 0 2 Mshowa p .002 w .59524 0 m .59524 .00625 L s P [(6)] .59524 0 0 2 Mshowa p .002 w .78571 0 m .78571 .00625 L s P [(8)] .78571 0 0 2 Mshowa p .002 w .97619 0 m .97619 .00625 L s P [(10)] .97619 0 0 2 Mshowa p .001 w .0619 0 m .0619 .00375 L s P p .001 w .1 0 m .1 .00375 L s P p .001 w .1381 0 m .1381 .00375 L s P p .001 w .17619 0 m .17619 .00375 L s P p .001 w .25238 0 m .25238 .00375 L s P p .001 w .29048 0 m .29048 .00375 L s P p .001 w .32857 0 m .32857 .00375 L s P p .001 w .36667 0 m .36667 .00375 L s P p .001 w .44286 0 m .44286 .00375 L s P p .001 w .48095 0 m .48095 .00375 L s P p .001 w .51905 0 m .51905 .00375 L s P p .001 w .55714 0 m .55714 .00375 L s P p .001 w .63333 0 m .63333 .00375 L s P p .001 w .67143 0 m .67143 .00375 L s P p .001 w .70952 0 m .70952 .00375 L s P p .001 w .74762 0 m .74762 .00375 L s P p .001 w .82381 0 m .82381 .00375 L s P p .001 w .8619 0 m .8619 .00375 L s P p .001 w .9 0 m .9 .00375 L s P p .001 w .9381 0 m .9381 .00375 L s P [(Feed Level)] 1.025 0 -1 0 Mshowa p .002 w 0 0 m 1 0 L s P p .002 w .02381 .12361 m .03006 .12361 L s P [(0.2)] .01131 .12361 1 0 Mshowa p .002 w .02381 .24721 m .03006 .24721 L s P [(0.4)] .01131 .24721 1 0 Mshowa p .002 w .02381 .37082 m .03006 .37082 L s P [(0.6)] .01131 .37082 1 0 Mshowa p .002 w .02381 .49443 m .03006 .49443 L s P [(0.8)] .01131 .49443 1 0 Mshowa p .002 w .02381 .61803 m .03006 .61803 L s P [(1)] .01131 .61803 1 0 Mshowa p .001 w .02381 .02472 m .02756 .02472 L s P p .001 w .02381 .04944 m .02756 .04944 L s P p .001 w .02381 .07416 m .02756 .07416 L s P p .001 w .02381 .09889 m .02756 .09889 L s P p .001 w .02381 .14833 m .02756 .14833 L s P p .001 w .02381 .17305 m .02756 .17305 L s P p .001 w .02381 .19777 m .02756 .19777 L s P p .001 w .02381 .22249 m .02756 .22249 L s P p .001 w .02381 .27193 m .02756 .27193 L s P p .001 w .02381 .29666 m .02756 .29666 L s P p .001 w .02381 .32138 m .02756 .32138 L s P p .001 w .02381 .3461 m .02756 .3461 L s P p .001 w .02381 .39554 m .02756 .39554 L s P p .001 w .02381 .42026 m .02756 .42026 L s P p .001 w .02381 .44498 m .02756 .44498 L s P p .001 w .02381 .46971 m .02756 .46971 L s P p .001 w .02381 .51915 m .02756 .51915 L s P p .001 w .02381 .54387 m .02756 .54387 L s P p .001 w .02381 .56859 m .02756 .56859 L s P p .001 w .02381 .59331 m .02756 .59331 L s P [(Score Rule 3)] .02381 .61803 0 -4 Mshowa p .002 w .02381 0 m .02381 .61803 L s P P 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath p p .004 w .02381 .00414 m .06349 .00414 L .10317 .00414 L .14286 .00414 L .18254 .00414 L .22222 .00414 L .2619 .00414 L .30159 .00414 L .34127 .00414 L .38095 .00414 L .42063 .00414 L .46032 .00414 L .5 .00414 L .53968 .00414 L .57937 .00414 L .61905 .00414 L .65873 .00414 L .69841 .00414 L .7381 .00414 L .77778 .00414 L .81746 .00414 L .85714 .00414 L .89683 .00414 L .91667 .00414 L .93651 .00414 L .95635 .00414 L .96131 .00414 L .96627 .00414 L .97123 .00414 L .97247 .00414 L .97371 .00414 L .97495 .00414 L .97619 .00414 L s P P % End of Graphics MathPictureEnd :[font = output; output; inactive; preserveAspect; endGroup] Graphics["<<>>"] ;[o] -Graphics- :[font = input; preserveAspect; startGroup] y = highehighp[[3]] R4 = Plot[minlow[x,y],{x,0,10},PlotRange -> {0,1.0},AxesLabel -> {"Feed Level","Score Rule 4"},GridLines -> Automatic] :[font = output; output; inactive; preserveAspect] 0.006692850924284855559 ;[o] 0.00669285 :[font = postscript; PostScript; formatAsPostScript; output; inactive; preserveAspect; pictureLeft = 34; pictureWidth = 282; pictureHeight = 174] %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart %% Graphics /Chicago findfont 12 scalefont setfont % Scaling calculations 0.0238095 0.0952381 0 0.618034 [ [(0)] .02381 0 0 2 Msboxa [(2)] .21429 0 0 2 Msboxa [(4)] .40476 0 0 2 Msboxa [(6)] .59524 0 0 2 Msboxa [(8)] .78571 0 0 2 Msboxa [(10)] .97619 0 0 2 Msboxa [(Feed Level)] 1.025 0 -1 0 Msboxa [(0.2)] .01131 .12361 1 0 Msboxa [(0.4)] .01131 .24721 1 0 Msboxa [(0.6)] .01131 .37082 1 0 Msboxa [(0.8)] .01131 .49443 1 0 Msboxa [(1)] .01131 .61803 1 0 Msboxa [(Score Rule 4)] .02381 .61803 0 -4 Msboxa [ -0.001 -0.001 0 0 ] [ 1.001 .61903 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath [ ] 0 setdash 0 g p p 0 0 .5 r .001 w .02381 0 m .02381 .61803 L s P p 0 0 .5 r .001 w .21429 0 m .21429 .61803 L s P p 0 0 .5 r .001 w .40476 0 m .40476 .61803 L s P p 0 0 .5 r .001 w .59524 0 m .59524 .61803 L s P p 0 0 .5 r .001 w .78571 0 m .78571 .61803 L s P p 0 0 .5 r .001 w .97619 0 m .97619 .61803 L s P p 0 0 .5 r .001 w 0 0 m 1 0 L s P p 0 0 .5 r .001 w 0 .12361 m 1 .12361 L s P p 0 0 .5 r .001 w 0 .24721 m 1 .24721 L s P p 0 0 .5 r .001 w 0 .37082 m 1 .37082 L s P p 0 0 .5 r .001 w 0 .49443 m 1 .49443 L s P p 0 0 .5 r .001 w 0 .61803 m 1 .61803 L s P p .002 w .02381 0 m .02381 .00625 L s P [(0)] .02381 0 0 2 Mshowa p .002 w .21429 0 m .21429 .00625 L s P [(2)] .21429 0 0 2 Mshowa p .002 w .40476 0 m .40476 .00625 L s P [(4)] .40476 0 0 2 Mshowa p .002 w .59524 0 m .59524 .00625 L s P [(6)] .59524 0 0 2 Mshowa p .002 w .78571 0 m .78571 .00625 L s P [(8)] .78571 0 0 2 Mshowa p .002 w .97619 0 m .97619 .00625 L s P [(10)] .97619 0 0 2 Mshowa p .001 w .0619 0 m .0619 .00375 L s P p .001 w .1 0 m .1 .00375 L s P p .001 w .1381 0 m .1381 .00375 L s P p .001 w .17619 0 m .17619 .00375 L s P p .001 w .25238 0 m .25238 .00375 L s P p .001 w .29048 0 m .29048 .00375 L s P p .001 w .32857 0 m .32857 .00375 L s P p .001 w .36667 0 m .36667 .00375 L s P p .001 w .44286 0 m .44286 .00375 L s P p .001 w .48095 0 m .48095 .00375 L s P p .001 w .51905 0 m .51905 .00375 L s P p .001 w .55714 0 m .55714 .00375 L s P p .001 w .63333 0 m .63333 .00375 L s P p .001 w .67143 0 m .67143 .00375 L s P p .001 w .70952 0 m .70952 .00375 L s P p .001 w .74762 0 m .74762 .00375 L s P p .001 w .82381 0 m .82381 .00375 L s P p .001 w .8619 0 m .8619 .00375 L s P p .001 w .9 0 m .9 .00375 L s P p .001 w .9381 0 m .9381 .00375 L s P [(Feed Level)] 1.025 0 -1 0 Mshowa p .002 w 0 0 m 1 0 L s P p .002 w .02381 .12361 m .03006 .12361 L s P [(0.2)] .01131 .12361 1 0 Mshowa p .002 w .02381 .24721 m .03006 .24721 L s P [(0.4)] .01131 .24721 1 0 Mshowa p .002 w .02381 .37082 m .03006 .37082 L s P [(0.6)] .01131 .37082 1 0 Mshowa p .002 w .02381 .49443 m .03006 .49443 L s P [(0.8)] .01131 .49443 1 0 Mshowa p .002 w .02381 .61803 m .03006 .61803 L s P [(1)] .01131 .61803 1 0 Mshowa p .001 w .02381 .02472 m .02756 .02472 L s P p .001 w .02381 .04944 m .02756 .04944 L s P p .001 w .02381 .07416 m .02756 .07416 L s P p .001 w .02381 .09889 m .02756 .09889 L s P p .001 w .02381 .14833 m .02756 .14833 L s P p .001 w .02381 .17305 m .02756 .17305 L s P p .001 w .02381 .19777 m .02756 .19777 L s P p .001 w .02381 .22249 m .02756 .22249 L s P p .001 w .02381 .27193 m .02756 .27193 L s P p .001 w .02381 .29666 m .02756 .29666 L s P p .001 w .02381 .32138 m .02756 .32138 L s P p .001 w .02381 .3461 m .02756 .3461 L s P p .001 w .02381 .39554 m .02756 .39554 L s P p .001 w .02381 .42026 m .02756 .42026 L s P p .001 w .02381 .44498 m .02756 .44498 L s P p .001 w .02381 .46971 m .02756 .46971 L s P p .001 w .02381 .51915 m .02756 .51915 L s P p .001 w .02381 .54387 m .02756 .54387 L s P p .001 w .02381 .56859 m .02756 .56859 L s P p .001 w .02381 .59331 m .02756 .59331 L s P [(Score Rule 4)] .02381 .61803 0 -4 Mshowa p .002 w .02381 0 m .02381 .61803 L s P P 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath p p .004 w .02381 .00414 m .06349 .00414 L .10317 .00414 L .14286 .00414 L .18254 .00414 L .22222 .00414 L .2619 .00414 L .30159 .00414 L .34127 .00414 L .38095 .00414 L .42063 .00414 L .46032 .00414 L .5 .00414 L .53968 .00414 L .57937 .00414 L .61905 .00414 L .65873 .00414 L .69841 .00414 L .7381 .00414 L .77778 .00414 L .81746 .00414 L .85714 .00414 L .89683 .00414 L .91667 .00414 L .93651 .00414 L .95635 .00414 L .96131 .00414 L .96627 .00414 L .97123 .00414 L .97247 .00414 L .97371 .00414 L .97495 .00414 L .97619 .00414 L s P P % End of Graphics MathPictureEnd :[font = output; output; inactive; preserveAspect; endGroup] Graphics["<<>>"] ;[o] -Graphics- :[font = text; inactive; preserveAspect] Step 5 Composition The key is to define the fuzzy set that is inferred by the rule for a specific observation. One way to do this is take the maximum of the score for the membership function defined for the outcomes. ;[s] 3:0,0;3,1;22,0;231,-1; 2:2,13,9,Times,0,12,0,0,0;1,25,18,Times,1,24,0,0,0; :[font = input; preserveAspect; startGroup] y1= lowelowp[[3]] y2 = lowehighp[[3]] y3 = highelowp[[3]] y4 = highehighp[[3]] fud[x_]:= Max[minhigh[x,y1],minhigh[x,y2],minlow[x,y3],minlow[x,y4]] Plot[fud[x],{x,0,10},PlotRange -> {0,1.0},AxesLabel -> {"Feed Level","Composite Score"},GridLines -> Automatic] :[font = output; output; inactive; preserveAspect] 0.2497398944048823958 ;[o] 0.24974 :[font = output; output; inactive; preserveAspect] 0.7502601055951176042 ;[o] 0.75026 :[font = output; output; inactive; preserveAspect] 0.006692850924284855559 ;[o] 0.00669285 :[font = output; output; inactive; preserveAspect] 0.006692850924284855559 ;[o] 0.00669285 :[font = postscript; PostScript; formatAsPostScript; output; inactive; preserveAspect; pictureLeft = 34; pictureWidth = 282; pictureHeight = 174] %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart %% Graphics /Chicago findfont 12 scalefont setfont % Scaling calculations 0.0238095 0.0952381 0 0.618034 [ [(0)] .02381 0 0 2 Msboxa [(2)] .21429 0 0 2 Msboxa [(4)] .40476 0 0 2 Msboxa [(6)] .59524 0 0 2 Msboxa [(8)] .78571 0 0 2 Msboxa [(10)] .97619 0 0 2 Msboxa [(Feed Level)] 1.025 0 -1 0 Msboxa [(0.2)] .01131 .12361 1 0 Msboxa [(0.4)] .01131 .24721 1 0 Msboxa [(0.6)] .01131 .37082 1 0 Msboxa [(0.8)] .01131 .49443 1 0 Msboxa [(1)] .01131 .61803 1 0 Msboxa [(Composite Score)] .02381 .61803 0 -4 Msboxa [ -0.001 -0.001 0 0 ] [ 1.001 .61903 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath [ ] 0 setdash 0 g p p 0 0 .5 r .001 w .02381 0 m .02381 .61803 L s P p 0 0 .5 r .001 w .21429 0 m .21429 .61803 L s P p 0 0 .5 r .001 w .40476 0 m .40476 .61803 L s P p 0 0 .5 r .001 w .59524 0 m .59524 .61803 L s P p 0 0 .5 r .001 w .78571 0 m .78571 .61803 L s P p 0 0 .5 r .001 w .97619 0 m .97619 .61803 L s P p 0 0 .5 r .001 w 0 0 m 1 0 L s P p 0 0 .5 r .001 w 0 .12361 m 1 .12361 L s P p 0 0 .5 r .001 w 0 .24721 m 1 .24721 L s P p 0 0 .5 r .001 w 0 .37082 m 1 .37082 L s P p 0 0 .5 r .001 w 0 .49443 m 1 .49443 L s P p 0 0 .5 r .001 w 0 .61803 m 1 .61803 L s P p .002 w .02381 0 m .02381 .00625 L s P [(0)] .02381 0 0 2 Mshowa p .002 w .21429 0 m .21429 .00625 L s P [(2)] .21429 0 0 2 Mshowa p .002 w .40476 0 m .40476 .00625 L s P [(4)] .40476 0 0 2 Mshowa p .002 w .59524 0 m .59524 .00625 L s P [(6)] .59524 0 0 2 Mshowa p .002 w .78571 0 m .78571 .00625 L s P [(8)] .78571 0 0 2 Mshowa p .002 w .97619 0 m .97619 .00625 L s P [(10)] .97619 0 0 2 Mshowa p .001 w .0619 0 m .0619 .00375 L s P p .001 w .1 0 m .1 .00375 L s P p .001 w .1381 0 m .1381 .00375 L s P p .001 w .17619 0 m .17619 .00375 L s P p .001 w .25238 0 m .25238 .00375 L s P p .001 w .29048 0 m .29048 .00375 L s P p .001 w .32857 0 m .32857 .00375 L s P p .001 w .36667 0 m .36667 .00375 L s P p .001 w .44286 0 m .44286 .00375 L s P p .001 w .48095 0 m .48095 .00375 L s P p .001 w .51905 0 m .51905 .00375 L s P p .001 w .55714 0 m .55714 .00375 L s P p .001 w .63333 0 m .63333 .00375 L s P p .001 w .67143 0 m .67143 .00375 L s P p .001 w .70952 0 m .70952 .00375 L s P p .001 w .74762 0 m .74762 .00375 L s P p .001 w .82381 0 m .82381 .00375 L s P p .001 w .8619 0 m .8619 .00375 L s P p .001 w .9 0 m .9 .00375 L s P p .001 w .9381 0 m .9381 .00375 L s P [(Feed Level)] 1.025 0 -1 0 Mshowa p .002 w 0 0 m 1 0 L s P p .002 w .02381 .12361 m .03006 .12361 L s P [(0.2)] .01131 .12361 1 0 Mshowa p .002 w .02381 .24721 m .03006 .24721 L s P [(0.4)] .01131 .24721 1 0 Mshowa p .002 w .02381 .37082 m .03006 .37082 L s P [(0.6)] .01131 .37082 1 0 Mshowa p .002 w .02381 .49443 m .03006 .49443 L s P [(0.8)] .01131 .49443 1 0 Mshowa p .002 w .02381 .61803 m .03006 .61803 L s P [(1)] .01131 .61803 1 0 Mshowa p .001 w .02381 .02472 m .02756 .02472 L s P p .001 w .02381 .04944 m .02756 .04944 L s P p .001 w .02381 .07416 m .02756 .07416 L s P p .001 w .02381 .09889 m .02756 .09889 L s P p .001 w .02381 .14833 m .02756 .14833 L s P p .001 w .02381 .17305 m .02756 .17305 L s P p .001 w .02381 .19777 m .02756 .19777 L s P p .001 w .02381 .22249 m .02756 .22249 L s P p .001 w .02381 .27193 m .02756 .27193 L s P p .001 w .02381 .29666 m .02756 .29666 L s P p .001 w .02381 .32138 m .02756 .32138 L s P p .001 w .02381 .3461 m .02756 .3461 L s P p .001 w .02381 .39554 m .02756 .39554 L s P p .001 w .02381 .42026 m .02756 .42026 L s P p .001 w .02381 .44498 m .02756 .44498 L s P p .001 w .02381 .46971 m .02756 .46971 L s P p .001 w .02381 .51915 m .02756 .51915 L s P p .001 w .02381 .54387 m .02756 .54387 L s P p .001 w .02381 .56859 m .02756 .56859 L s P p .001 w .02381 .59331 m .02756 .59331 L s P [(Composite Score)] .02381 .61803 0 -4 Mshowa p .002 w .02381 0 m .02381 .61803 L s P P 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath p p .004 w .02381 .00414 m .04365 .00509 L .06349 .00625 L .10317 .00944 L .12302 .01158 L .14286 .0142 L .1627 .0174 L .18254 .02129 L .22222 .03173 L .24206 .03862 L .2619 .04688 L .30159 .06843 L .34127 .09819 L .38095 .13764 L .42063 .18723 L .46032 .24555 L .5 .30902 L .53968 .37248 L .55952 .40256 L .57937 .43081 L .58929 .44412 L .59921 .45683 L .60169 .45992 L .60293 .46144 L .60417 .46296 L .60541 .46369 L .60665 .46369 L .60789 .46369 L .60913 .46369 L .61905 .46369 L .65873 .46369 L .69841 .46369 L .7381 .46369 L .77778 .46369 L .81746 .46369 L .85714 .46369 L .89683 .46369 L .93651 .46369 L .97619 .46369 L s P P % End of Graphics MathPictureEnd :[font = output; output; inactive; preserveAspect; endGroup] Graphics["<<>>"] ;[o] -Graphics- :[font = input; preserveAspect; startGroup] Show[R1,R2,R3,R4,AxesLabel -> {"Feed Level","Score on Rules"}] :[font = postscript; PostScript; formatAsPostScript; output; inactive; preserveAspect; pictureLeft = 34; pictureWidth = 282; pictureHeight = 174] %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart %% Graphics /Chicago findfont 12 scalefont setfont % Scaling calculations 0.0238095 0.0952381 0 0.618034 [ [(0)] .02381 0 0 2 Msboxa [(2)] .21429 0 0 2 Msboxa [(4)] .40476 0 0 2 Msboxa [(6)] .59524 0 0 2 Msboxa [(8)] .78571 0 0 2 Msboxa [(10)] .97619 0 0 2 Msboxa [(Feed Level)] 1.025 0 -1 0 Msboxa [(0.2)] .01131 .12361 1 0 Msboxa [(0.4)] .01131 .24721 1 0 Msboxa [(0.6)] .01131 .37082 1 0 Msboxa [(0.8)] .01131 .49443 1 0 Msboxa [(1)] .01131 .61803 1 0 Msboxa [(Score on Rules)] .02381 .61803 0 -4 Msboxa [ -0.001 -0.001 0 0 ] [ 1.001 .61903 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath [ ] 0 setdash 0 g p p 0 0 .5 r .001 w .02381 0 m .02381 .61803 L s P p 0 0 .5 r .001 w .21429 0 m .21429 .61803 L s P p 0 0 .5 r .001 w .40476 0 m .40476 .61803 L s P p 0 0 .5 r .001 w .59524 0 m .59524 .61803 L s P p 0 0 .5 r .001 w .78571 0 m .78571 .61803 L s P p 0 0 .5 r .001 w .97619 0 m .97619 .61803 L s P p 0 0 .5 r .001 w 0 0 m 1 0 L s P p 0 0 .5 r .001 w 0 .12361 m 1 .12361 L s P p 0 0 .5 r .001 w 0 .24721 m 1 .24721 L s P p 0 0 .5 r .001 w 0 .37082 m 1 .37082 L s P p 0 0 .5 r .001 w 0 .49443 m 1 .49443 L s P p 0 0 .5 r .001 w 0 .61803 m 1 .61803 L s P p .002 w .02381 0 m .02381 .00625 L s P [(0)] .02381 0 0 2 Mshowa p .002 w .21429 0 m .21429 .00625 L s P [(2)] .21429 0 0 2 Mshowa p .002 w .40476 0 m .40476 .00625 L s P [(4)] .40476 0 0 2 Mshowa p .002 w .59524 0 m .59524 .00625 L s P [(6)] .59524 0 0 2 Mshowa p .002 w .78571 0 m .78571 .00625 L s P [(8)] .78571 0 0 2 Mshowa p .002 w .97619 0 m .97619 .00625 L s P [(10)] .97619 0 0 2 Mshowa p .001 w .0619 0 m .0619 .00375 L s P p .001 w .1 0 m .1 .00375 L s P p .001 w .1381 0 m .1381 .00375 L s P p .001 w .17619 0 m .17619 .00375 L s P p .001 w .25238 0 m .25238 .00375 L s P p .001 w .29048 0 m .29048 .00375 L s P p .001 w .32857 0 m .32857 .00375 L s P p .001 w .36667 0 m .36667 .00375 L s P p .001 w .44286 0 m .44286 .00375 L s P p .001 w .48095 0 m .48095 .00375 L s P p .001 w .51905 0 m .51905 .00375 L s P p .001 w .55714 0 m .55714 .00375 L s P p .001 w .63333 0 m .63333 .00375 L s P p .001 w .67143 0 m .67143 .00375 L s P p .001 w .70952 0 m .70952 .00375 L s P p .001 w .74762 0 m .74762 .00375 L s P p .001 w .82381 0 m .82381 .00375 L s P p .001 w .8619 0 m .8619 .00375 L s P p .001 w .9 0 m .9 .00375 L s P p .001 w .9381 0 m .9381 .00375 L s P [(Feed Level)] 1.025 0 -1 0 Mshowa p .002 w 0 0 m 1 0 L s P p .002 w .02381 .12361 m .03006 .12361 L s P [(0.2)] .01131 .12361 1 0 Mshowa p .002 w .02381 .24721 m .03006 .24721 L s P [(0.4)] .01131 .24721 1 0 Mshowa p .002 w .02381 .37082 m .03006 .37082 L s P [(0.6)] .01131 .37082 1 0 Mshowa p .002 w .02381 .49443 m .03006 .49443 L s P [(0.8)] .01131 .49443 1 0 Mshowa p .002 w .02381 .61803 m .03006 .61803 L s P [(1)] .01131 .61803 1 0 Mshowa p .001 w .02381 .02472 m .02756 .02472 L s P p .001 w .02381 .04944 m .02756 .04944 L s P p .001 w .02381 .07416 m .02756 .07416 L s P p .001 w .02381 .09889 m .02756 .09889 L s P p .001 w .02381 .14833 m .02756 .14833 L s P p .001 w .02381 .17305 m .02756 .17305 L s P p .001 w .02381 .19777 m .02756 .19777 L s P p .001 w .02381 .22249 m .02756 .22249 L s P p .001 w .02381 .27193 m .02756 .27193 L s P p .001 w .02381 .29666 m .02756 .29666 L s P p .001 w .02381 .32138 m .02756 .32138 L s P p .001 w .02381 .3461 m .02756 .3461 L s P p .001 w .02381 .39554 m .02756 .39554 L s P p .001 w .02381 .42026 m .02756 .42026 L s P p .001 w .02381 .44498 m .02756 .44498 L s P p .001 w .02381 .46971 m .02756 .46971 L s P p .001 w .02381 .51915 m .02756 .51915 L s P p .001 w .02381 .54387 m .02756 .54387 L s P p .001 w .02381 .56859 m .02756 .56859 L s P p .001 w .02381 .59331 m .02756 .59331 L s P [(Score on Rules)] .02381 .61803 0 -4 Mshowa p .002 w .02381 0 m .02381 .61803 L s P P 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath p p p .004 w .02381 .00414 m .04365 .00509 L .06349 .00625 L .10317 .00944 L .12302 .01158 L .14286 .0142 L .1627 .0174 L .18254 .02129 L .22222 .03173 L .24206 .03862 L .2619 .04688 L .30159 .06843 L .34127 .09819 L .36111 .11664 L .38095 .13764 L .38591 .14329 L .39087 .1491 L .39335 .15207 L .39459 .15357 L .39583 .15435 L .39831 .15435 L .40079 .15435 L .41071 .15435 L .42063 .15435 L .46032 .15435 L .5 .15435 L .53968 .15435 L .57937 .15435 L .61905 .15435 L .65873 .15435 L .69841 .15435 L .7381 .15435 L .77778 .15435 L .81746 .15435 L .85714 .15435 L .89683 .15435 L .93651 .15435 L .97619 .15435 L s P P p p .004 w .02381 .00414 m .04365 .00509 L .06349 .00625 L .10317 .00944 L .12302 .01158 L .14286 .0142 L .1627 .0174 L .18254 .02129 L .22222 .03173 L .24206 .03862 L .2619 .04688 L .30159 .06843 L .34127 .09819 L .38095 .13764 L .42063 .18723 L .46032 .24555 L .5 .30902 L .53968 .37248 L .55952 .40256 L .57937 .43081 L .58929 .44412 L .59921 .45683 L .60169 .45992 L .60293 .46144 L .60417 .46296 L .60541 .46369 L .60665 .46369 L .60789 .46369 L .60913 .46369 L .61905 .46369 L .65873 .46369 L .69841 .46369 L .7381 .46369 L .77778 .46369 L .81746 .46369 L .85714 .46369 L .89683 .46369 L .93651 .46369 L .97619 .46369 L s P P p p .004 w .02381 .00414 m .06349 .00414 L .10317 .00414 L .14286 .00414 L .18254 .00414 L .22222 .00414 L .2619 .00414 L .30159 .00414 L .34127 .00414 L .38095 .00414 L .42063 .00414 L .46032 .00414 L .5 .00414 L .53968 .00414 L .57937 .00414 L .61905 .00414 L .65873 .00414 L .69841 .00414 L .7381 .00414 L .77778 .00414 L .81746 .00414 L .85714 .00414 L .89683 .00414 L .91667 .00414 L .93651 .00414 L .95635 .00414 L .96131 .00414 L .96627 .00414 L .97123 .00414 L .97247 .00414 L .97371 .00414 L .97495 .00414 L .97619 .00414 L s P P p p .004 w .02381 .00414 m .06349 .00414 L .10317 .00414 L .14286 .00414 L .18254 .00414 L .22222 .00414 L .2619 .00414 L .30159 .00414 L .34127 .00414 L .38095 .00414 L .42063 .00414 L .46032 .00414 L .5 .00414 L .53968 .00414 L .57937 .00414 L .61905 .00414 L .65873 .00414 L .69841 .00414 L .7381 .00414 L .77778 .00414 L .81746 .00414 L .85714 .00414 L .89683 .00414 L .91667 .00414 L .93651 .00414 L .95635 .00414 L .96131 .00414 L .96627 .00414 L .97123 .00414 L .97247 .00414 L .97371 .00414 L .97495 .00414 L .97619 .00414 L s P P P % End of Graphics MathPictureEnd :[font = output; output; inactive; preserveAspect; endGroup] Graphics["<<>>"] ;[o] -Graphics- :[font = text; inactive; preserveAspect] Step 6 Defuzzification To determine how much feed to use we need to defuzzify the rules. To do this we first combine the results from all rules into a new fuzzy set and then transform this composited fuzzy set to a crisp number. ;[s] 3:0,2;22,1;23,0;232,-1; 3:1,13,9,Times,0,12,0,0,0;1,25,18,Times,0,24,0,0,0;1,25,18,Times,1,24,0,0,0; :[font = input; preserveAspect; startGroup] cent = Table[fud[x],{x,0,10,.1}] cum = FoldList[Plus,0,cent] centat = Last[cum]/2 :[font = output; output; inactive; preserveAspect] {0.006692850924284855559, 0.007391541344281973035, 0.00816257115315989518, 0.00901329865284782452, 0.009951801866904321574, 0.01098694263059318004, 0.01212843498427423979, 0.01338691782766477752, 0.01477403169327305775, 0.01630249937144094008, 0.01798620996209155803, 0.01984030573407750656, 0.02188127093613047396, 0.02412702141766920128, 0.02659699357686585518, 0.02931223075135631887, 0.03229546469845050975, 0.03557118927263617278, 0.03916572279676435867, 0.04310725494108612257, 0.04742587317756678089, 0.05215356307841773479, 0.05732417589886874621, 0.06297335605699648951, 0.06913842034334681785, 0.07585818002124355118, 0.08317269649392237065, 0.0911229610148561353, 0.09975048911968514696, 0.1090968211956129382, 0.1192029220221175559, 0.1301084743629978521, 0.1418510649004877895, 0.1544652650835347042, 0.167981614866075518, 0.1824255238063563402, 0.1978161114414182517, 0.2141650169574413872, 0.2314752165009823568, 0.2497398944048823955, 0.2689414213699951204, 0.2890504973749960362, 0.3100255188723875571, 0.3318122278318338931, 0.3543436937742045467, 0.377540668798145435, 0.4013123398875479991, 0.4255574831883410123, 0.4501660026875220909, 0.4750208125210600134, 0.4999999999999999995, 0.5249791874789399855, 0.549833997312477908, 0.5744425168116589866, 0.5986876601124519998, 0.622459331201854564, 0.6456563062257954523, 0.6681877721681661059, 0.689974481127612442, 0.7109495026250039628, 0.7310585786300048787, 0.7502601055951176036, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042, 0.7502601055951176042} ;[o] {0.00669285, 0.00739154, 0.00816257, 0.0090133, 0.0099518, 0.0109869, 0.0121284, 0.0133869, 0.014774, 0.0163025, 0.0179862, 0.0198403, 0.0218813, 0.024127, 0.026597, 0.0293122, 0.0322955, 0.0355712, 0.0391657, 0.0431073, 0.0474259, 0.0521536, 0.0573242, 0.0629734, 0.0691384, 0.0758582, 0.0831727, 0.091123, 0.0997505, 0.109097, 0.119203, 0.130108, 0.141851, 0.154465, 0.167982, 0.182426, 0.197816, 0.214165, 0.231475, 0.24974, 0.268941, 0.28905, 0.310026, 0.331812, 0.354344, 0.377541, 0.401312, 0.425557, 0.450166, 0.475021, 0.5, 0.524979, 0.549834, 0.574443, 0.598688, 0.622459, 0.645656, 0.668188, 0.689974, 0.71095, 0.731059, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026, 0.75026} :[font = output; output; inactive; preserveAspect] {0, 0.006692850924284855559, 0.0140843922685668286, 0.02224696342172672377, 0.03126026207457454829, 0.04121206394147886987, 0.0521990065720720499, 0.0643274415563462897, 0.07771435938401106721, 0.09248839107728412497, 0.1087908904487250651, 0.1267771004108166231, 0.1466174061448941296, 0.1684986770810246036, 0.1926256984986938049, 0.2192226920755596601, 0.2485349228269159789, 0.2808303875253664887, 0.3164015767980026615, 0.3555672995947670201, 0.3986745545358531427, 0.4461004277134199236, 0.4982539907918376584, 0.5555781666907064046, 0.6185515227477028941, 0.687689943091049712, 0.7635481231122932632, 0.8467208196062156338, 0.9378437806210717691, 1.037594269740756916, 1.146691090936369854, 1.26589401295848741, 1.396002487321485262, 1.537853552221973052, 1.692318817305507756, 1.860300432171583274, 2.042725955977939614, 2.240542067419357866, 2.454707084376799253, 2.68618230087778161, 2.935922195282664005, 3.204863616652659126, 3.493914114027655162, 3.803939632900042719, 4.135751860731876612, 4.490095554506081159, 4.867636223304226594, 5.268948563191774593, 5.694506046380115605, 6.144672049067637696, 6.61969286158869771, 7.119692861588697709, 7.644672049067637695, 8.194506046380115604, 8.76894856319177459, 9.36763622330422659, 9.990095554506081154, 10.63575186073187661, 11.30393963290004271, 11.99391411402765515, 12.70486361665265912, 13.435922195282664, 14.1861823008777816, 14.93644240647289921, 15.68670251206801681, 16.43696261766313441, 17.18722272325825202, 17.93748282885336962, 18.68774293444848723, 19.43800304004360483, 20.18826314563872244, 20.93852325123384004, 21.68878335682895764, 22.43904346242407525, 23.18930356801919285, 23.93956367361431046, 24.68982377920942806, 25.44008388480454567, 26.19034399039966327, 26.94060409599478088, 27.69086420158989848, 28.44112430718501609, 29.19138441278013369, 29.9416445183752513, 30.6919046239703689, 31.4421647295654865, 32.19242483516060411, 32.94268494075572171, 33.69294504635083932, 34.44320515194595692, 35.19346525754107453, 35.94372536313619213, 36.69398546873130974, 37.44424557432642734, 38.19450567992154495, 38.94476578551666255, 39.69502589111178015, 40.44528599670689776, 41.19554610230201536, 41.94580620789713297, 42.69606631349225057, 43.44632641908736817} ;[o] {0, 0.00669285, 0.0140844, 0.022247, 0.0312603, 0.0412121, 0.052199, 0.0643274, 0.0777144, 0.0924884, 0.108791, 0.126777, 0.146617, 0.168499, 0.192626, 0.219223, 0.248535, 0.28083, 0.316402, 0.355567, 0.398675, 0.4461, 0.498254, 0.555578, 0.618552, 0.68769, 0.763548, 0.846721, 0.937844, 1.03759, 1.14669, 1.26589, 1.396, 1.53785, 1.69232, 1.8603, 2.04273, 2.24054, 2.45471, 2.68618, 2.93592, 3.20486, 3.49391, 3.80394, 4.13575, 4.4901, 4.86764, 5.26895, 5.69451, 6.14467, 6.61969, 7.11969, 7.64467, 8.19451, 8.76895, 9.36764, 9.9901, 10.6358, 11.3039, 11.9939, 12.7049, 13.4359, 14.1862, 14.9364, 15.6867, 16.437, 17.1872, 17.9375, 18.6877, 19.438, 20.1883, 20.9385, 21.6888, 22.439, 23.1893, 23.9396, 24.6898, 25.4401, 26.1903, 26.9406, 27.6909, 28.4411, 29.1914, 29.9416, 30.6919, 31.4422, 32.1924, 32.9427, 33.6929, 34.4432, 35.1935, 35.9437, 36.694, 37.4442, 38.1945, 38.9448, 39.695, 40.4453, 41.1955, 41.9458, 42.6961, 43.4463} :[font = output; output; inactive; preserveAspect; endGroup] 21.72316320954368409 ;[o] 21.7232 :[font = input; preserveAspect; startGroup] Troid := If[cum[[j]] <= centat && cum[[j+1]] >= centat,j,0 ] Droid = Table[Troid,{j,1,100}] Centroid = Max[Droid]/10. :[font = output; output; inactive; preserveAspect] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 73, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} ;[o] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 73, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} :[font = output; output; inactive; preserveAspect; endGroup] 7.3 ;[o] 7.3 :[font = text; inactive; preserveAspect] But what about observation 10 :[font = input; preserveAspect; startGroup] y1= lowelowp[[10]] y2 = lowehighp[[10]] y3 = highelowp[[10]] y4 = highehighp[[10]] fud[x_]:= Max[minhigh[x,y1],minlow[x,y2],minhigh[x,y3],minlow[x,y4]] Plot[fud[x],{x,0,10},PlotRange -> {0,1.0},AxesLabel -> {"Feed Level","Composite Score"},GridLines -> Automatic] :[font = output; output; inactive; preserveAspect] 0.006692850924284855546 ;[o] 0.00669285 :[font = output; output; inactive; preserveAspect] 0.006692850924284855546 ;[o] 0.00669285 :[font = output; output; inactive; preserveAspect] 0.006692850924284855546 ;[o] 0.00669285 :[font = output; output; inactive; preserveAspect] 0.9933071490757151445 ;[o] 0.993307 :[font = postscript; PostScript; formatAsPostScript; output; inactive; preserveAspect; pictureLeft = 34; pictureWidth = 282; pictureHeight = 174] %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart %% Graphics /Chicago findfont 12 scalefont setfont % Scaling calculations 0.0238095 0.0952381 0 0.618034 [ [(0)] .02381 0 0 2 Msboxa [(2)] .21429 0 0 2 Msboxa [(4)] .40476 0 0 2 Msboxa [(6)] .59524 0 0 2 Msboxa [(8)] .78571 0 0 2 Msboxa [(10)] .97619 0 0 2 Msboxa [(Feed Level)] 1.025 0 -1 0 Msboxa [(0.2)] .01131 .12361 1 0 Msboxa [(0.4)] .01131 .24721 1 0 Msboxa [(0.6)] .01131 .37082 1 0 Msboxa [(0.8)] .01131 .49443 1 0 Msboxa [(1)] .01131 .61803 1 0 Msboxa [(Composite Score)] .02381 .61803 0 -4 Msboxa [ -0.001 -0.001 0 0 ] [ 1.001 .61903 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath [ ] 0 setdash 0 g p p 0 0 .5 r .001 w .02381 0 m .02381 .61803 L s P p 0 0 .5 r .001 w .21429 0 m .21429 .61803 L s P p 0 0 .5 r .001 w .40476 0 m .40476 .61803 L s P p 0 0 .5 r .001 w .59524 0 m .59524 .61803 L s P p 0 0 .5 r .001 w .78571 0 m .78571 .61803 L s P p 0 0 .5 r .001 w .97619 0 m .97619 .61803 L s P p 0 0 .5 r .001 w 0 0 m 1 0 L s P p 0 0 .5 r .001 w 0 .12361 m 1 .12361 L s P p 0 0 .5 r .001 w 0 .24721 m 1 .24721 L s P p 0 0 .5 r .001 w 0 .37082 m 1 .37082 L s P p 0 0 .5 r .001 w 0 .49443 m 1 .49443 L s P p 0 0 .5 r .001 w 0 .61803 m 1 .61803 L s P p .002 w .02381 0 m .02381 .00625 L s P [(0)] .02381 0 0 2 Mshowa p .002 w .21429 0 m .21429 .00625 L s P [(2)] .21429 0 0 2 Mshowa p .002 w .40476 0 m .40476 .00625 L s P [(4)] .40476 0 0 2 Mshowa p .002 w .59524 0 m .59524 .00625 L s P [(6)] .59524 0 0 2 Mshowa p .002 w .78571 0 m .78571 .00625 L s P [(8)] .78571 0 0 2 Mshowa p .002 w .97619 0 m .97619 .00625 L s P [(10)] .97619 0 0 2 Mshowa p .001 w .0619 0 m .0619 .00375 L s P p .001 w .1 0 m .1 .00375 L s P p .001 w .1381 0 m .1381 .00375 L s P p .001 w .17619 0 m .17619 .00375 L s P p .001 w .25238 0 m .25238 .00375 L s P p .001 w .29048 0 m .29048 .00375 L s P p .001 w .32857 0 m .32857 .00375 L s P p .001 w .36667 0 m .36667 .00375 L s P p .001 w .44286 0 m .44286 .00375 L s P p .001 w .48095 0 m .48095 .00375 L s P p .001 w .51905 0 m .51905 .00375 L s P p .001 w .55714 0 m .55714 .00375 L s P p .001 w .63333 0 m .63333 .00375 L s P p .001 w .67143 0 m .67143 .00375 L s P p .001 w .70952 0 m .70952 .00375 L s P p .001 w .74762 0 m .74762 .00375 L s P p .001 w .82381 0 m .82381 .00375 L s P p .001 w .8619 0 m .8619 .00375 L s P p .001 w .9 0 m .9 .00375 L s P p .001 w .9381 0 m .9381 .00375 L s P [(Feed Level)] 1.025 0 -1 0 Mshowa p .002 w 0 0 m 1 0 L s P p .002 w .02381 .12361 m .03006 .12361 L s P [(0.2)] .01131 .12361 1 0 Mshowa p .002 w .02381 .24721 m .03006 .24721 L s P [(0.4)] .01131 .24721 1 0 Mshowa p .002 w .02381 .37082 m .03006 .37082 L s P [(0.6)] .01131 .37082 1 0 Mshowa p .002 w .02381 .49443 m .03006 .49443 L s P [(0.8)] .01131 .49443 1 0 Mshowa p .002 w .02381 .61803 m .03006 .61803 L s P [(1)] .01131 .61803 1 0 Mshowa p .001 w .02381 .02472 m .02756 .02472 L s P p .001 w .02381 .04944 m .02756 .04944 L s P p .001 w .02381 .07416 m .02756 .07416 L s P p .001 w .02381 .09889 m .02756 .09889 L s P p .001 w .02381 .14833 m .02756 .14833 L s P p .001 w .02381 .17305 m .02756 .17305 L s P p .001 w .02381 .19777 m .02756 .19777 L s P p .001 w .02381 .22249 m .02756 .22249 L s P p .001 w .02381 .27193 m .02756 .27193 L s P p .001 w .02381 .29666 m .02756 .29666 L s P p .001 w .02381 .32138 m .02756 .32138 L s P p .001 w .02381 .3461 m .02756 .3461 L s P p .001 w .02381 .39554 m .02756 .39554 L s P p .001 w .02381 .42026 m .02756 .42026 L s P p .001 w .02381 .44498 m .02756 .44498 L s P p .001 w .02381 .46971 m .02756 .46971 L s P p .001 w .02381 .51915 m .02756 .51915 L s P p .001 w .02381 .54387 m .02756 .54387 L s P p .001 w .02381 .56859 m .02756 .56859 L s P p .001 w .02381 .59331 m .02756 .59331 L s P [(Composite Score)] .02381 .61803 0 -4 Mshowa p .002 w .02381 0 m .02381 .61803 L s P P 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath p p .004 w .02381 .6139 m .04365 .61295 L .06349 .61178 L .10317 .6086 L .12302 .60645 L .14286 .60383 L .1627 .60064 L .18254 .59675 L .22222 .58631 L .24206 .57942 L .2619 .57115 L .30159 .5496 L .34127 .51985 L .38095 .4804 L .42063 .43081 L .46032 .37248 L .5 .30902 L .53968 .24555 L .57937 .18723 L .61905 .13764 L .65873 .09819 L .69841 .06843 L .71825 .05675 L .7381 .04688 L .75794 .03862 L .77778 .03173 L .81746 .02129 L .8373 .0174 L .85714 .0142 L .87698 .01158 L .89683 .00944 L .91667 .00768 L .93651 .00625 L .97619 .00414 L s P P % End of Graphics MathPictureEnd :[font = output; output; inactive; preserveAspect; endGroup] Graphics["<<>>"] ;[o] -Graphics- :[font = input; preserveAspect; startGroup] cent = Table[fud[x],{x,0,10,.1}] cum = FoldList[Plus,0,cent] centat = Last[cum]/2 Troid := If[cum[[j]] <= centat && cum[[j+1]] >= centat,j,0 ] Droid = Table[Troid,{j,1,100}] Centroid = Max[Droid]/10. :[font = output; output; inactive; preserveAspect] {0.9933071490757151445, 0.992608458655718027, 0.9918374288468401049, 0.9909867013471521755, 0.9900481981330956785, 0.98901305736940682, 0.9878715650157257602, 0.9866130821723352225, 0.9852259683067269423, 0.9836975006285590599, 0.982013790037908442, 0.9801596942659224935, 0.9781187290638695261, 0.9758729785823307988, 0.9734030064231341448, 0.9706877692486436812, 0.9677045353015494903, 0.9644288107273638273, 0.9608342772032356413, 0.9568927450589138775, 0.9525741268224332192, 0.9478464369215822652, 0.9426758241011312538, 0.9370266439430035105, 0.9308615796566531822, 0.9241418199787564489, 0.9168273035060776294, 0.9088770389851438647, 0.9002495108803148531, 0.8909031788043870618, 0.8807970779778824441, 0.8698915256370021479, 0.8581489350995122105, 0.8455347349164652959, 0.832018385133924482, 0.8175744761936436598, 0.8021838885585817484, 0.7858349830425586128, 0.7685247834990176431, 0.7502601055951176045, 0.7310585786300048796, 0.7109495026250039637, 0.6899744811276124429, 0.6681877721681661069, 0.6456563062257954533, 0.622459331201854565, 0.5986876601124520008, 0.5744425168116589877, 0.5498339973124779091, 0.5249791874789399866, 0.5000000000000000005, 0.4750208125210600145, 0.450166002687522092, 0.4255574831883410134, 0.4013123398875480002, 0.377540668798145436, 0.3543436937742045477, 0.3318122278318338941, 0.310025518872387558, 0.2890504973749960371, 0.2689414213699951213, 0.2497398944048823963, 0.2314752165009823576, 0.2141650169574413879, 0.1978161114414182524, 0.1824255238063563409, 0.1679816148660755187, 0.1544652650835347048, 0.14185106490048779, 0.1301084743629978525, 0.1192029220221175564, 0.1090968211956129387, 0.09975048911968514739, 0.09112296101485613568, 0.08317269649392237101, 0.0758581800212435515, 0.06913842034334681812, 0.0629733560569964898, 0.05732417589886874647, 0.05215356307841773504, 0.04742587317756678106, 0.04310725494108612272, 0.03916572279676435879, 0.03557118927263617299, 0.03229546469845050985, 0.029312230751356319, 0.02659699357686585525, 0.02412702141766920132, 0.02188127093613047395, 0.0198403057340775066, 0.01798620996209155802, 0.0163024993714409401, 0.01477403169327305775, 0.01338691782766477756, 0.01212843498427423981, 0.01098694263059318008, 0.009951801866904321577, 0.009013298652847824458, 0.00816257115315989517, 0.007391541344281973055, 0.006692850924284855546} ;[o] {0.993307, 0.992608, 0.991837, 0.990987, 0.990048, 0.989013, 0.987872, 0.986613, 0.985226, 0.983698, 0.982014, 0.98016, 0.978119, 0.975873, 0.973403, 0.970688, 0.967705, 0.964429, 0.960834, 0.956893, 0.952574, 0.947846, 0.942676, 0.937027, 0.930862, 0.924142, 0.916827, 0.908877, 0.90025, 0.890903, 0.880797, 0.869892, 0.858149, 0.845535, 0.832018, 0.817574, 0.802184, 0.785835, 0.768525, 0.75026, 0.731059, 0.71095, 0.689974, 0.668188, 0.645656, 0.622459, 0.598688, 0.574443, 0.549834, 0.524979, 0.5, 0.475021, 0.450166, 0.425557, 0.401312, 0.377541, 0.354344, 0.331812, 0.310026, 0.28905, 0.268941, 0.24974, 0.231475, 0.214165, 0.197816, 0.182426, 0.167982, 0.154465, 0.141851, 0.130108, 0.119203, 0.109097, 0.0997505, 0.091123, 0.0831727, 0.0758582, 0.0691384, 0.0629734, 0.0573242, 0.0521536, 0.0474259, 0.0431073, 0.0391657, 0.0355712, 0.0322955, 0.0293122, 0.026597, 0.024127, 0.0218813, 0.0198403, 0.0179862, 0.0163025, 0.014774, 0.0133869, 0.0121284, 0.0109869, 0.0099518, 0.0090133, 0.00816257, 0.00739154, 0.00669285} :[font = output; output; inactive; preserveAspect] {0, 0.9933071490757151445, 1.985915607731433172, 2.977753036578273276, 3.968739737925425452, 4.95878793605852113, 5.94780099342792795, 6.93567255844365371, 7.922285640615988933, 8.907511608922715875, 9.891209109551274935, 10.87322289958918338, 11.85338259385510587, 12.8315013229189754, 13.8073743015013062, 14.78077730792444034, 15.75146507717308402, 16.71916961247463351, 17.68359842320199734, 18.64443270040523298, 19.60132544546414686, 20.55389957228658007, 21.50174600920816234, 22.44442183330929359, 23.3814484772522971, 24.31231005690895029, 25.23645187688770673, 26.15327918039378436, 27.06215621937892823, 27.96240573025924308, 28.85330890906363014, 29.73410598704151259, 30.60399751267851474, 31.46214644777802695, 32.30768118269449224, 33.13969956782841672, 33.95727404402206038, 34.75945793258064213, 35.54529291562320075, 36.31381769912221839, 37.06407780471733599, 37.79513638334734087, 38.50608588597234483, 39.19606036709995728, 39.86424813926812338, 40.50990444549391884, 41.1323637766957734, 41.7310514368082254, 42.30549395361988439, 42.8553279509323623, 43.38030713841130229, 43.88030713841130229, 44.3553279509323623, 44.80549395361988439, 45.23105143680822541, 45.6323637766957734, 46.00990444549391884, 46.36424813926812339, 46.69606036709995728, 47.00608588597234484, 47.29513638334734088, 47.564077804717336, 47.8138176991222184, 48.04529291562320076, 48.25945793258064214, 48.45727404402206039, 48.63969956782841673, 48.80768118269449225, 48.96214644777802696, 49.10399751267851475, 49.2341059870415126, 49.35330890906363016, 49.4624057302592431, 49.56215621937892825, 49.65327918039378438, 49.73645187688770675, 49.81231005690895031, 49.88144847725229712, 49.94442183330929361, 50.00174600920816236, 50.05389957228658009, 50.10132544546414687, 50.144432700405233, 50.18359842320199735, 50.21916961247463353, 50.25146507717308404, 50.28077730792444036, 50.30737430150130621, 50.33150132291897541, 50.35338259385510589, 50.37322289958918339, 50.39120910955127495, 50.40751160892271589, 50.42228564061598895, 50.43567255844365373, 50.44780099342792797, 50.45878793605852115, 50.46873973792542547, 50.47775303657827329, 50.48591560773143319, 50.49330714907571516, 50.50000000000000002} ;[o] {0, 0.993307, 1.98592, 2.97775, 3.96874, 4.95879, 5.9478, 6.93567, 7.92229, 8.90751, 9.89121, 10.8732, 11.8534, 12.8315, 13.8074, 14.7808, 15.7515, 16.7192, 17.6836, 18.6444, 19.6013, 20.5539, 21.5017, 22.4444, 23.3814, 24.3123, 25.2365, 26.1533, 27.0622, 27.9624, 28.8533, 29.7341, 30.604, 31.4621, 32.3077, 33.1397, 33.9573, 34.7595, 35.5453, 36.3138, 37.0641, 37.7951, 38.5061, 39.1961, 39.8642, 40.5099, 41.1324, 41.7311, 42.3055, 42.8553, 43.3803, 43.8803, 44.3553, 44.8055, 45.2311, 45.6324, 46.0099, 46.3642, 46.6961, 47.0061, 47.2951, 47.5641, 47.8138, 48.0453, 48.2595, 48.4573, 48.6397, 48.8077, 48.9621, 49.104, 49.2341, 49.3533, 49.4624, 49.5622, 49.6533, 49.7365, 49.8123, 49.8814, 49.9444, 50.0017, 50.0539, 50.1013, 50.1444, 50.1836, 50.2192, 50.2515, 50.2808, 50.3074, 50.3315, 50.3534, 50.3732, 50.3912, 50.4075, 50.4223, 50.4357, 50.4478, 50.4588, 50.4687, 50.4778, 50.4859, 50.4933, 50.5} :[font = output; output; inactive; preserveAspect] 25.25000000000000001 ;[o] 25.25 :[font = output; output; inactive; preserveAspect] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} ;[o] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} :[font = output; output; inactive; preserveAspect; endGroup] 2.7 ;[o] 2.7 :[font = input; preserveAspect; startGroup] y1= lowelowp[[5]] y2 = lowehighp[[5]] y3 = highelowp[[5]] y4 = highehighp[[5]] fud[x_]:= Max[minhigh[x,y1],minlow[x,y2],minhigh[x,y3],minlow[x,y4]] Plot[fud[x],{x,0,10},PlotRange -> {0,1.0},AxesLabel -> {"Feed Level","Composite Score"},GridLines -> Automatic] :[font = output; output; inactive; preserveAspect] 0.8581489350995122104 ;[o] 0.858149 :[font = output; output; inactive; preserveAspect] 0.006692850924284855559 ;[o] 0.00669285 :[font = output; output; inactive; preserveAspect] 0.1418510649004877896 ;[o] 0.141851 :[font = output; output; inactive; preserveAspect] 0.006692850924284855559 ;[o] 0.00669285 :[font = postscript; PostScript; formatAsPostScript; output; inactive; preserveAspect; pictureLeft = 34; pictureWidth = 282; pictureHeight = 174] %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart %% Graphics /Chicago findfont 12 scalefont setfont % Scaling calculations 0.0238095 0.0952381 0 0.618034 [ [(0)] .02381 0 0 2 Msboxa [(2)] .21429 0 0 2 Msboxa [(4)] .40476 0 0 2 Msboxa [(6)] .59524 0 0 2 Msboxa [(8)] .78571 0 0 2 Msboxa [(10)] .97619 0 0 2 Msboxa [(Feed Level)] 1.025 0 -1 0 Msboxa [(0.2)] .01131 .12361 1 0 Msboxa [(0.4)] .01131 .24721 1 0 Msboxa [(0.6)] .01131 .37082 1 0 Msboxa [(0.8)] .01131 .49443 1 0 Msboxa [(1)] .01131 .61803 1 0 Msboxa [(Composite Score)] .02381 .61803 0 -4 Msboxa [ -0.001 -0.001 0 0 ] [ 1.001 .61903 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath [ ] 0 setdash 0 g p p 0 0 .5 r .001 w .02381 0 m .02381 .61803 L s P p 0 0 .5 r .001 w .21429 0 m .21429 .61803 L s P p 0 0 .5 r .001 w .40476 0 m .40476 .61803 L s P p 0 0 .5 r .001 w .59524 0 m .59524 .61803 L s P p 0 0 .5 r .001 w .78571 0 m .78571 .61803 L s P p 0 0 .5 r .001 w .97619 0 m .97619 .61803 L s P p 0 0 .5 r .001 w 0 0 m 1 0 L s P p 0 0 .5 r .001 w 0 .12361 m 1 .12361 L s P p 0 0 .5 r .001 w 0 .24721 m 1 .24721 L s P p 0 0 .5 r .001 w 0 .37082 m 1 .37082 L s P p 0 0 .5 r .001 w 0 .49443 m 1 .49443 L s P p 0 0 .5 r .001 w 0 .61803 m 1 .61803 L s P p .002 w .02381 0 m .02381 .00625 L s P [(0)] .02381 0 0 2 Mshowa p .002 w .21429 0 m .21429 .00625 L s P [(2)] .21429 0 0 2 Mshowa p .002 w .40476 0 m .40476 .00625 L s P [(4)] .40476 0 0 2 Mshowa p .002 w .59524 0 m .59524 .00625 L s P [(6)] .59524 0 0 2 Mshowa p .002 w .78571 0 m .78571 .00625 L s P [(8)] .78571 0 0 2 Mshowa p .002 w .97619 0 m .97619 .00625 L s P [(10)] .97619 0 0 2 Mshowa p .001 w .0619 0 m .0619 .00375 L s P p .001 w .1 0 m .1 .00375 L s P p .001 w .1381 0 m .1381 .00375 L s P p .001 w .17619 0 m .17619 .00375 L s P p .001 w .25238 0 m .25238 .00375 L s P p .001 w .29048 0 m .29048 .00375 L s P p .001 w .32857 0 m .32857 .00375 L s P p .001 w .36667 0 m .36667 .00375 L s P p .001 w .44286 0 m .44286 .00375 L s P p .001 w .48095 0 m .48095 .00375 L s P p .001 w .51905 0 m .51905 .00375 L s P p .001 w .55714 0 m .55714 .00375 L s P p .001 w .63333 0 m .63333 .00375 L s P p .001 w .67143 0 m .67143 .00375 L s P p .001 w .70952 0 m .70952 .00375 L s P p .001 w .74762 0 m .74762 .00375 L s P p .001 w .82381 0 m .82381 .00375 L s P p .001 w .8619 0 m .8619 .00375 L s P p .001 w .9 0 m .9 .00375 L s P p .001 w .9381 0 m .9381 .00375 L s P [(Feed Level)] 1.025 0 -1 0 Mshowa p .002 w 0 0 m 1 0 L s P p .002 w .02381 .12361 m .03006 .12361 L s P [(0.2)] .01131 .12361 1 0 Mshowa p .002 w .02381 .24721 m .03006 .24721 L s P [(0.4)] .01131 .24721 1 0 Mshowa p .002 w .02381 .37082 m .03006 .37082 L s P [(0.6)] .01131 .37082 1 0 Mshowa p .002 w .02381 .49443 m .03006 .49443 L s P [(0.8)] .01131 .49443 1 0 Mshowa p .002 w .02381 .61803 m .03006 .61803 L s P [(1)] .01131 .61803 1 0 Mshowa p .001 w .02381 .02472 m .02756 .02472 L s P p .001 w .02381 .04944 m .02756 .04944 L s P p .001 w .02381 .07416 m .02756 .07416 L s P p .001 w .02381 .09889 m .02756 .09889 L s P p .001 w .02381 .14833 m .02756 .14833 L s P p .001 w .02381 .17305 m .02756 .17305 L s P p .001 w .02381 .19777 m .02756 .19777 L s P p .001 w .02381 .22249 m .02756 .22249 L s P p .001 w .02381 .27193 m .02756 .27193 L s P p .001 w .02381 .29666 m .02756 .29666 L s P p .001 w .02381 .32138 m .02756 .32138 L s P p .001 w .02381 .3461 m .02756 .3461 L s P p .001 w .02381 .39554 m .02756 .39554 L s P p .001 w .02381 .42026 m .02756 .42026 L s P p .001 w .02381 .44498 m .02756 .44498 L s P p .001 w .02381 .46971 m .02756 .46971 L s P p .001 w .02381 .51915 m .02756 .51915 L s P p .001 w .02381 .54387 m .02756 .54387 L s P p .001 w .02381 .56859 m .02756 .56859 L s P p .001 w .02381 .59331 m .02756 .59331 L s P [(Composite Score)] .02381 .61803 0 -4 Mshowa p .002 w .02381 0 m .02381 .61803 L s P P 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath p p .004 w .02381 .00414 m .04365 .00509 L .06349 .00625 L .10317 .00944 L .12302 .01158 L .14286 .0142 L .1627 .0174 L .18254 .02129 L .22222 .03173 L .24206 .03862 L .2619 .04688 L .30159 .06843 L .34127 .09819 L .38095 .13764 L .42063 .18723 L .46032 .24555 L .5 .30902 L .53968 .37248 L .57937 .43081 L .61905 .4804 L .63889 .5014 L .64881 .51094 L .65873 .51985 L .66369 .52407 L .66617 .52613 L .66865 .52815 L .66989 .52914 L .67113 .53013 L .67237 .53037 L .67361 .53037 L .67857 .53037 L .69841 .53037 L .7381 .53037 L .77778 .53037 L .81746 .53037 L .85714 .53037 L .89683 .53037 L .93651 .53037 L .97619 .53037 L s P P % End of Graphics MathPictureEnd :[font = output; output; inactive; preserveAspect; endGroup] Graphics["<<>>"] ;[o] -Graphics- :[font = input; preserveAspect] :[font = input; preserveAspect; startGroup] cent = Table[fud[x],{x,0,10,.1}] cum = FoldList[Plus,0,cent] centat = Last[cum]/2 Troid := If[cum[[j]] <= centat && cum[[j+1]] >= centat,j,0 ] Droid = Table[Troid,{j,1,100}] Centroid = Max[Droid]/10. :[font = output; output; inactive; preserveAspect] {0.006692850924284855559, 0.007391541344281973035, 0.00816257115315989518, 0.00901329865284782452, 0.009951801866904321574, 0.01098694263059318004, 0.01212843498427423979, 0.01338691782766477752, 0.01477403169327305775, 0.01630249937144094008, 0.01798620996209155803, 0.01984030573407750656, 0.02188127093613047396, 0.02412702141766920128, 0.02659699357686585518, 0.02931223075135631887, 0.03229546469845050975, 0.03557118927263617278, 0.03916572279676435867, 0.04310725494108612257, 0.04742587317756678089, 0.05215356307841773479, 0.05732417589886874621, 0.06297335605699648951, 0.06913842034334681785, 0.07585818002124355118, 0.08317269649392237065, 0.0911229610148561353, 0.09975048911968514696, 0.1090968211956129382, 0.1192029220221175559, 0.1301084743629978521, 0.1418510649004877895, 0.1544652650835347042, 0.167981614866075518, 0.1824255238063563402, 0.1978161114414182517, 0.2141650169574413872, 0.2314752165009823568, 0.2497398944048823955, 0.2689414213699951204, 0.2890504973749960362, 0.3100255188723875571, 0.3318122278318338931, 0.3543436937742045467, 0.377540668798145435, 0.4013123398875479991, 0.4255574831883410123, 0.4501660026875220909, 0.4750208125210600134, 0.4999999999999999995, 0.5249791874789399855, 0.549833997312477908, 0.5744425168116589866, 0.5986876601124519998, 0.622459331201854564, 0.6456563062257954523, 0.6681877721681661059, 0.689974481127612442, 0.7109495026250039628, 0.7310585786300048787, 0.7502601055951176036, 0.7685247834990176424, 0.785834983042558612, 0.8021838885585817477, 0.8175744761936436591, 0.8320183851339244813, 0.8455347349164652952, 0.85814893509951221, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104, 0.8581489350995122104} ;[o] {0.00669285, 0.00739154, 0.00816257, 0.0090133, 0.0099518, 0.0109869, 0.0121284, 0.0133869, 0.014774, 0.0163025, 0.0179862, 0.0198403, 0.0218813, 0.024127, 0.026597, 0.0293122, 0.0322955, 0.0355712, 0.0391657, 0.0431073, 0.0474259, 0.0521536, 0.0573242, 0.0629734, 0.0691384, 0.0758582, 0.0831727, 0.091123, 0.0997505, 0.109097, 0.119203, 0.130108, 0.141851, 0.154465, 0.167982, 0.182426, 0.197816, 0.214165, 0.231475, 0.24974, 0.268941, 0.28905, 0.310026, 0.331812, 0.354344, 0.377541, 0.401312, 0.425557, 0.450166, 0.475021, 0.5, 0.524979, 0.549834, 0.574443, 0.598688, 0.622459, 0.645656, 0.668188, 0.689974, 0.71095, 0.731059, 0.75026, 0.768525, 0.785835, 0.802184, 0.817574, 0.832018, 0.845535, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149, 0.858149} :[font = output; output; inactive; preserveAspect] {0, 0.006692850924284855559, 0.0140843922685668286, 0.02224696342172672377, 0.03126026207457454829, 0.04121206394147886987, 0.0521990065720720499, 0.0643274415563462897, 0.07771435938401106721, 0.09248839107728412497, 0.1087908904487250651, 0.1267771004108166231, 0.1466174061448941296, 0.1684986770810246036, 0.1926256984986938049, 0.2192226920755596601, 0.2485349228269159789, 0.2808303875253664887, 0.3164015767980026615, 0.3555672995947670201, 0.3986745545358531427, 0.4461004277134199236, 0.4982539907918376584, 0.5555781666907064046, 0.6185515227477028941, 0.687689943091049712, 0.7635481231122932632, 0.8467208196062156338, 0.9378437806210717691, 1.037594269740756916, 1.146691090936369854, 1.26589401295848741, 1.396002487321485262, 1.537853552221973052, 1.692318817305507756, 1.860300432171583274, 2.042725955977939614, 2.240542067419357866, 2.454707084376799253, 2.68618230087778161, 2.935922195282664005, 3.204863616652659126, 3.493914114027655162, 3.803939632900042719, 4.135751860731876612, 4.490095554506081159, 4.867636223304226594, 5.268948563191774593, 5.694506046380115605, 6.144672049067637696, 6.61969286158869771, 7.119692861588697709, 7.644672049067637695, 8.194506046380115604, 8.76894856319177459, 9.36763622330422659, 9.990095554506081154, 10.63575186073187661, 11.30393963290004271, 11.99391411402765515, 12.70486361665265912, 13.435922195282664, 14.1861823008777816, 14.95470708437679924, 15.74054206741935785, 16.5427259559779396, 17.36030043217158326, 18.19231881730550774, 19.03785355222197304, 19.89600248732148525, 20.75415142242099746, 21.61230035752050967, 22.47044929262002188, 23.32859822771953409, 24.1867471628190463, 25.04489609791855851, 25.90304503301807072, 26.76119396811758293, 27.61934290321709515, 28.47749183831660736, 29.33564077341611957, 30.19378970851563178, 31.05193864361514399, 31.9100875787146562, 32.76823651381416841, 33.62638544891368062, 34.48453438401319283, 35.34268331911270504, 36.20083225421221725, 37.05898118931172945, 37.91713012441124166, 38.77527905951075387, 39.63342799461026608, 40.49157692970977829, 41.3497258648092905, 42.20787479990880271, 43.06602373500831492, 43.92417267010782712, 44.78232160520733934, 45.64047054030685154, 46.49861947540636376, 47.35676841050587596} ;[o] {0, 0.00669285, 0.0140844, 0.022247, 0.0312603, 0.0412121, 0.052199, 0.0643274, 0.0777144, 0.0924884, 0.108791, 0.126777, 0.146617, 0.168499, 0.192626, 0.219223, 0.248535, 0.28083, 0.316402, 0.355567, 0.398675, 0.4461, 0.498254, 0.555578, 0.618552, 0.68769, 0.763548, 0.846721, 0.937844, 1.03759, 1.14669, 1.26589, 1.396, 1.53785, 1.69232, 1.8603, 2.04273, 2.24054, 2.45471, 2.68618, 2.93592, 3.20486, 3.49391, 3.80394, 4.13575, 4.4901, 4.86764, 5.26895, 5.69451, 6.14467, 6.61969, 7.11969, 7.64467, 8.19451, 8.76895, 9.36764, 9.9901, 10.6358, 11.3039, 11.9939, 12.7049, 13.4359, 14.1862, 14.9547, 15.7405, 16.5427, 17.3603, 18.1923, 19.0379, 19.896, 20.7542, 21.6123, 22.4704, 23.3286, 24.1867, 25.0449, 25.903, 26.7612, 27.6193, 28.4775, 29.3356, 30.1938, 31.0519, 31.9101, 32.7682, 33.6264, 34.4845, 35.3427, 36.2008, 37.059, 37.9171, 38.7753, 39.6334, 40.4916, 41.3497, 42.2079, 43.066, 43.9242, 44.7823, 45.6405, 46.4986, 47.3568} :[font = output; output; inactive; preserveAspect] 23.67838420525293798 ;[o] 23.6784 :[font = output; output; inactive; preserveAspect] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} ;[o] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} :[font = output; output; inactive; preserveAspect; endGroup] 7.4 ;[o] 7.4 ^*)