home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / sigm / vol133 / feedlot.doc < prev    next >
Encoding:
Text File  |  1985-02-10  |  10.4 KB  |  262 lines

  1.  
  2.  
  3.  
  4.                                CATTLE FEED RATIONS
  5.  
  6.         INTRODUCTION«á  Thi≤á pai≥á oµ program≤ i≤ designeΣ t∩ balancσá ß ì
  7.         cattlσá feeΣá ratioεá a⌠ leas⌠ cost«á  Necessar∙á datßá t∩á star⌠ ì
  8.         include:
  9.              - Nutrient requirements for the stock you are feeding.
  10.              - Cost of each feed component.
  11.              - Nutrient composition of each feed.
  12.  
  13.              Thσá firs⌠ program¼á EDITFEED¼á wil∞ placσ thi≤ datß int∩á ß ì
  14.         filσ oε disc«á  Thσ seconΣ program¼á LINEAR¼á take≤ thσ datßá anΣ ì
  15.         compute≤á ß leas⌠ cos⌠ balanceΣ ration«á  Result≤ wil∞ bσ printeΣ ì
  16.         on the screen.
  17.  
  18.  
  19.         EDITFEED«á  Thi≤ i≤ ß specializeΣ datß editinτ prograφ t∩ collec⌠ ì
  20.         anΣ organizσ you≥ feedinτ datß int∩ ß disπ file«á  Thσ prograφ i≤ ì
  21.         called by typing:
  22.              A>editfilσá               (A╛á i≤ thσ compute≥á prompt╗á thσ ì
  23.                                        machinσ wil∞ speaδ iε uppe≥á case¼ ì
  24.                                        yo⌡ iε lower.)
  25.  
  26.         The program will then inquire if you want to:
  27.              EDIT: L(ist, B(uild, M(odify, Q(uit
  28.  
  29.         A "q" will take you back to the operating system - no harm done.
  30.  
  31.         ┴á "lóá wil∞ asδ fo≥ thσ namσ oµ ß filσ (C/P═ filename⌐ anΣá lis⌠ ì
  32.         it«á  (Wheε asked¼á tel∞ i⌠ yo⌡ wan⌠ t∩ star⌠ a⌠ recorΣ ░ fo≥ thσ ì
  33.         whole thing.
  34.  
  35.         ┴ "mó wil∞ allo≈ modificatioε oµ aε existinτ file«á  Thi≤ par⌠ oµ ì
  36.         thσá prograφá get≤á ß bi⌠ complicateΣ anΣ i≤á deal⌠á witΦá iεá aε ì
  37.         appendix.
  38.  
  39.         ┴ "bó wil∞ star⌠ buildinτ ß ne≈ file..«  Seσ thσ attacheΣ examplσ ì
  40.         for specifics.
  41.  
  42.  
  43.         LINEAR.  This program is fairly easy to use.  Start it by:
  44.              A>linear       entering the program name after the prompt.
  45.  
  46.         Thσ prograφ wil∞ theε asδ yo⌡ fo≥ thσ filσ name«á  Afte≥ that¼ i⌠ ì
  47.         run≤á witΦ n∩ operato≥ intervention«á  Thσ importan⌠ result≤ wil∞ ì
  48.         remaiε oε thσ screeε a⌠ thσ conclusioε oµ thσ program╗ al∞ beforσ ì
  49.         i≤ indicatioε tha⌠ thing≤ arσ indeeΣ runninτ anΣ somσá diagnostiπ ì
  50.         informatioεá t∩á assurσ yo⌡ tha⌠ EDITFEE─ diΣ it≤ joΓá correctly«  ì
  51.         Iµ yo⌡ wisΦ t∩ examinσ thi≤ informatioε iε morσ detail¼ therσ arσ ì
  52.         two convenient ways:
  53.              Control-╙á wil∞á hal⌠á thσ screeεá displa∙á iεá it≤á tracks«  ì
  54.         Another keystroke will restart it.
  55.              Control-╨á wil∞á causσá al∞ outpu⌠ t∩ bσ duplicateΣá oεá thσ ì
  56.         printer.
  57.  
  58.              See the example printout for interpretation.è
  59.  
  60.                                         1
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.         WHA╘ I╙ HAPPENING«  Thσ LINEA╥ prograφ i≤ oµ thσ famil∙ oµ linea≥ ì
  72.         program≤á anΣá operation≤ researcΦ anΣ i≤ knowε a≤á thσá "ReviseΣ ì
  73.         Simple° Algorithm"«á  I⌠ minimize≤ ß functioε (cos⌠ iε thi≤ case⌐ ì
  74.         wheε constraineΣ b∙ ß numbe≥ oµ othe≥ function≤ (cos⌠ oµ feeΣ anΣ ì
  75.         feeΣá analyses)«á  Thσ samσ algorithφ solve≤ thσá "transportatioε ì
  76.         problemó anΣ thσ "produc⌠ mi° problem"«á  Onl∙ thσ outpu⌠ portioε ì
  77.         oµáá thσá prograφá ha≤á beeεá altereΣá s∩á tha⌠á therσá i≤áá somσ ì
  78.         intelligibilit∙ t∩ thσ printout.
  79.  
  80.              EDITFEE─á starteΣá lifσ a≤ ß genera∞ purposσá EDITFIL┼á tha⌠ ì
  81.         madσá u≡á thσ matri° a≤ showε b∙ thσ L(is⌠ command«á  Thσá B(uilΣ ì
  82.         functioε ha≤ beeε altereΣ t∩ handlσ thσ specializeΣ feeΣ anΣ die⌠ ì
  83.         function«á  M(odif∙á anΣ L(is⌠ arσ unchangeΣ froφá thσá original¼ ì
  84.         thereforσá the∙á ma∙ bσ ß bi⌠ confusinτ wheε used«á  Consul⌠á thσ ì
  85.         Appendices when using them.
  86.  
  87.  
  88.         UNITS.  A few constraints apply to the units you use in the data.  
  89.              - Integers«á  N∩ decima∞ poin⌠ i≤ expected¼ digit≤ afte≥ an∙ ì
  90.         decima∞ poin⌠ wil∞ bσ truncated«á  Thσ matri° iε LINEA╥ i≤ se⌠ u≡ ì
  91.         t∩ handlσ u≡ t∩ 3▓ nutrient≤ anΣ 6┤ feed≤ (includinτ thσá surplu≤ ì
  92.         account≤ necessar∙ fo≥ overflows)«á  Iµ yo⌡ usσ morσ entries¼ thσ ì
  93.         prograφá ma∙á no⌠á crash¼á bu⌠ won'⌠ usσ an∙ value≤á outsidσá thσ ì
  94.         matrix.
  95.              - Reals«  Iµ ß rea∞ numbe≥ i≤ les≤ thaε 0¼ includσ ß leadinτ ì
  96.         ░á beforσ thσ decima∞ poin⌠ (crashe≤ iµ yo⌡á don't)«á  Arithmetiπ ì
  97.         notatioε i≤ finσ fo≥ entry«á  Internally¼ thσ prograφ store≤ rea∞ ì
  98.         number≤ iε ß systeφ simila≥ t∩ scientifiπ notation¼á anΣ the∙ ma∙ ì
  99.         bσ displayeΣ thi≤ way«á  Internally¼ real≤ arσ storeΣ witΦ ove≥ ╢ ì
  100.         significan⌠áá digit≤á whicΦá i≤á morσá thaεá wσá neeΣá fo≥áá thi≤ ì
  101.         application.
  102.              FeeΣá value≤á mus⌠ bσ converteΣ t∩á consisten⌠á figures«á  ┴ ì
  103.         nutrien⌠á requiremen⌠ oµ ▒ pounΣ digestiblσ proteiε pe≥á da∙á caε ì
  104.         onl∙á bσ me⌠ b∙ feeΣ analyse≤ expresseΣ iε pound≤ oµ proteiε (usσ ì
  105.         metriπ iµ yo⌡ wish¼á bu⌠ bσ consistent)«  Energ∙ measureΣ iε KCA╠ ì
  106.         wil∞ worδ fine¼ agaiε a≤ lonτ a≤ yo⌡ arσ consistent«  Percentage≤ ì
  107.         wil∞á no⌠á meaε anything╗á the∙ mus⌠ bσ converteΣ t∩á ßá concretσ ì
  108.         value.
  109.              - Char«á  Characte≥á notatioεá mean≤ tha⌠ yo⌡ caεá fil∞á thσ ì
  110.         blanδá witΦá an∙ character≤ availablσ oεá thσá keyboarΣá (contro∞ ì
  111.         character≤á excepted)«á  Thesσá arσ al∞ label≤ anΣ no⌠á useΣá fo≥ ì
  112.         computation«á  Thσá machinσá doesn'⌠ carσ whethe≥ uppe≥ o≥á lowe≥ ì
  113.         case.
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123. è
  124.  
  125.                                         2
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.                                 MODIFY appendix.
  136.  
  137.         MODIF┘ i≤ ß par⌠ oµ EDITFEE─ tha⌠ need≤ furthe≥ explanation«  Thσ ì
  138.         B(uilΣ functioε ha≤ beeε specializeΣ fo≥ thσ feedlo⌠ application╗ ì
  139.         i⌠á useΣ t∩ asδ thσ use≥ fo≥ thσ "tag"¼á theε proceedeΣ t∩á builΣ ì
  140.         tha⌠ record«  B(uilΣ i≤ no≈ automateΣ t∩ generatσ tag≤ itselµ anΣ ì
  141.         leaΣ thσ use≥ througΦ datß input«á  ProvideΣ yo⌡ arσ organizeΣ t∩ ì
  142.         star⌠ with¼á anΣ makσ n∩ typo≤ (fa⌠ chance)¼á yo⌡ woulΣ no⌠á neeΣ ì
  143.         M(odify.
  144.  
  145.              Iµ yo⌡ usσ modif∙ t∩ correc⌠ ß typo¼ sugges⌠ tha⌠ yo⌡ obtaiε ì
  146.         ßá printe≥ listinτ first«á  Usσ thσ L(is⌠ commanΣ anΣ ß Control-╨ ì
  147.         to echo the listing on the printer.
  148.  
  149.              EacΦ recorΣ ha≤ ß recorΣ numbe≥ anΣ ß taτ (seσ sample)«  Yo⌡ ì
  150.         mus⌠ finΣ thσ recorΣ witΦ thσ mistake«á  M(odif∙ caε g∩á directl∙ ì
  151.         t∩ tha⌠ recorΣ iµ yo⌡ wish╗ i⌠ wil∞ displa∙ thσ existinτ content≤ ì
  152.         anΣá allo≈á yo⌡á t∩á changσ ANYTHIN╟á (includinτá thσá tag)«á  Aε ì
  153.         isolateΣá typ∩á wil∞á requirσ yo⌡ t∩á re-ente≥á al∞á thσá correc⌠ ì
  154.         information along with the correction of the error.
  155.  
  156.              Next¼á M(odif∙á wil∞ displa∙ thσ nex⌠ record«á  Assuminτá n∩ ì
  157.         errors¼á yo⌡á tel∞ M(odif∙ t∩ K(ee≡ it«á  Yo⌡ mus⌠ thumΓ you≥ wa∙ ì
  158.         through all the remaining records to the end.
  159.  
  160.              EDITFEE─á automatically¼á iε thσá B(uilΣá function¼á create≤ ì
  161.         severa∞á necessar∙ record≤ fo≥ dumm∙ informatioε a⌠ thσ enΣ oµá ß ì
  162.         file«  Thesσ arσ necessar∙ t∩ allo≈ surplusse≤ oµ somσ nutrients«  ì
  163.         Yo⌡ shoulΣ havσ n∩ reasoε t∩ tampe≥ witΦ thesσ usinτ M(odif∙ (thσ ì
  164.         program will certainly allow you to if you want to raise hell).
  165.  
  166.              (StandarΣá Pascal¼á thσ languagσ iε whicΦ thi≤ ha≤ al∞á beeε ì
  167.         written¼ ha≤ ß sequentia∞ filσ access«  Thu≤ i⌠ ha≤ t∩ star⌠ witΦ ì
  168.         thσáá firs⌠áá recorΣá anΣá worδá througΦá t∩áá thσáá end«áá  Thi≤ ì
  169.         implementatioεá oµá thσ compile≥ support≤ direc⌠ access¼á bu⌠á i⌠ ì
  170.         wasn't used in this program.)
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188. è
  189.  
  190.                                         3
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.                                PROGRAMMERS SOURCES
  200.  
  201.              Thσ reques⌠ fo≥ thi≤ prograφ camσ froφ DaΣ wh∩ feed≤á cattlσ ì
  202.         anΣá wondereΣ iµ sucΦ ß thinτ couldn'⌠ bσ computerized«á  BotΦ hσ ì
  203.         anΣá m∙ brothe≥ haΣ somσ knowledgσ oµ ratioε program≤ oεá larger¼ ì
  204.         Universit∙ sponsored¼á computers«á  Havinτ averreΣ tha⌠á compute≥ ì
  205.         sizσá wa≤á no⌠ important¼á anΣ tha⌠ ß micr∩ coulΣ d∩ thσá job¼á ╔ ì
  206.         founΣá myselµ committeΣ t∩ puttinτ mone∙ wherσá moutΦá was«á  DaΣ ì
  207.         provideΣá ßá Nationa∞á Academ∙ oµá Science≤á publicatioεá (#1137⌐ ì
  208.         titleΣá "Nutrien⌠á Requiremen⌠ oµ Beeµ Cattleó whicΦ gavσ ßá fai≥ ì
  209.         background to the problem.
  210.  
  211.              Thσá origiεá oµá thσ program≤á i≤á Williaφá M«á Yarnal∞á wh∩ ì
  212.         publisheΣ program≤ iε S-10░ Microsystem≤ iε UCS─ Pasca∞ iε sprinτ ì
  213.         oµá 1980«áá  ┴á generalizeΣá treatmen⌠á oµá thσá ReviseΣá Simple° ì
  214.         algorithφá appea≥á therσ witΦ severa∞ examples«á  Therσ arσá als∩ ì
  215.         some references to books on operations research.
  216.  
  217.              Volumσá ▒á oµá thσ Pascal/┌ User≤ Grou≡ containeΣá thσá samσ ì
  218.         program≤á witΦá alteration≤á b∙á Ra∙ Penle∙á s∩á the∙á woulΣá ruε ì
  219.         properl∙ unde≥ Pascal/Z«á  Thesσ program≤ werσ thσ direc⌠á sourcσ ì
  220.         of the ones you are using. 
  221.  
  222.         Programs provided on the disc are:
  223.              LINEAR.CO═     Thi≤ i≤ thσ basiπ optimizatioεá program«á  I⌠ ì
  224.                             i≤á genera∞ purposσ excep⌠ fo≥ somσ label≤ iε ì
  225.                             the output routines.
  226.  
  227.              EDITFEED.CO═   Edit≤ datß fo≥ thσ LINEA╥ program«á  Thi≤á i≤ ì
  228.                             heavil∙á altereΣá iε thσ B(uilΣá functioεá t∩ ì
  229.                             assist the user in ration applications.
  230.  
  231.              EDITFILE.CO═á   Thσá genera∞á purposσ datßá edito≥á fo≥á thσ ì
  232.                             LINEA╥ program«á  I⌠ anΣ LINEAR.CO═ havσ beeε ì
  233.                             changeΣáá froφá thσá original≤á t∩á allo≈á 2░ ì
  234.                             character labels.
  235.  
  236.              LINEAR.PA╙á     Source≤ fo≥ LINEAR.COM«á  Pascal/┌á support≤ ì
  237.              PRINT.PAS      separate compilation. 
  238.              INITIAL.PAS
  239.  
  240.              EDITFILE.PAS   Sources for EDITFILE and EDITFEED.
  241.              BUILD.PAS
  242.              BUILDF.PAS
  243.              MODIFY.PAS
  244.              MODIFYF.PAS
  245.  
  246.              LINTEST.DAT    Data files.
  247.              FEED.DAT
  248.  
  249.                                                 Rex A Buddenberg
  250.                                                 1910 Ash Street
  251.                                                 North Bend, Or 97459
  252.                                                 503/756-2180
  253.                                                 7 Feb 83
  254.  
  255.  
  256.                                         4
  257.  
  258.  
  259.  
  260.  
  261.  
  262.