CATTLE FEED RATIONS INTRODUCTION®  Thió  paiò  oæ programó ió designeä tï balancå  á cattlå  feeä  ratioî  aô leasô cost®  Necessarù  datá  tï  starô include: - Nutrient requirements for the stock you are feeding. - Cost of each feed component. - Nutrient composition of each feed. Thå  firsô program¬  EDITFEED¬  wilì placå thió datá intï  á filå oî disc®  Thå seconä program¬  LINEAR¬  takeó thå datá  anä computeó  á leasô cosô balanceä ration®  Resultó wilì bå printeä on the screen. EDITFEED®  Thió ió á specializeä datá editinç prograí tï collecô anä organizå youò feedinç datá intï á disã file®  Thå prograí ió called by typing: A>editfilå  (A¾  ió thå computeò  prompt»  thå machinå wilì speaë iî uppeò  case¬ yoõ iî lower.) The program will then inquire if you want to: EDIT: L(ist, B(uild, M(odify, Q(uit A "q" will take you back to the operating system - no harm done. Á  "l¢  wilì asë foò thå namå oæ á filå (C/PÍ filename© anä  lisô it®  (Wheî asked¬  telì iô yoõ wanô tï starô aô recorä ° foò thå whole thing. Á "m¢ wilì allo÷ modificatioî oæ aî existinç file®  Thió parô oæ thå  prograí  getó  á biô complicateä anä ió  dealô  witè  iî  aî appendix. Á "b¢ wilì starô buildinç á ne÷ file..® Seå thå attacheä examplå for specifics. LINEAR. This program is fairly easy to use. Start it by: A>linear entering the program name after the prompt. Thå prograí wilì theî asë yoõ foò thå filå name®  Afteò that¬ iô runó  witè nï operatoò intervention®  Thå importanô resultó wilì remaiî oî thå screeî aô thå conclusioî oæ thå program» alì beforå ió indicatioî thaô thingó arå indeeä runninç anä somå  diagnostiã informatioî  tï  assurå yoõ thaô EDITFEEÄ diä itó joâ  correctly® Iæ yoõ wisè tï examinå thió informatioî iî morå detail¬ therå arå two convenient ways: Control-Ó  wilì  halô  thå screeî  displaù  iî  itó  tracks® Another keystroke will restart it. Control-Р wilì  causå  alì outpuô tï bå duplicateä  oî  thå printer. See the example printout for interpretation. Š 1 WHAÔ IÓ HAPPENING® Thå LINEAÒ prograí ió oæ thå familù oæ lineaò programó  anä  operationó researcè anä ió knowî aó  thå  "Reviseä Simpleø Algorithm"®  Iô minimizeó á functioî (cosô iî thió case© wheî constraineä bù á numbeò oæ otheò functionó (cosô oæ feeä anä feeä  analyses)®  Thå samå algorithí solveó thå  "transportatioî problem¢ anä thå "producô miø problem"®  Onlù thå outpuô portioî oæ   thå  prograí  haó  beeî  altereä  sï  thaô  therå  ió   somå intelligibilitù tï thå printout. EDITFEEÄ  starteä  lifå aó á generaì purposå  EDITFILÅ  thaô madå  uð  thå matriø aó showî bù thå L(isô command®  Thå  B(uilä functioî haó beeî altereä tï handlå thå specializeä feeä anä dieô function®  M(odifù  anä L(isô arå unchangeä froí  thå  original¬ thereforå  theù  maù bå á biô confusinç wheî used®  Consulô  thå Appendices when using them. UNITS. A few constraints apply to the units you use in the data. - Integers®  Nï decimaì poinô ió expected¬ digitó afteò anù decimaì poinô wilì bå truncated®  Thå matriø iî LINEAÒ ió seô uð tï handlå uð tï 3² nutrientó anä 6´ feedó (includinç thå  surpluó accountó necessarù foò overflows)®  Iæ yoõ uså morå entries¬ thå prograí  maù  noô  crash¬  buô won'ô uså anù valueó  outsidå  thå matrix. - Reals® Iæ á reaì numbeò ió lesó thaî 0¬ includå á leadinç °  beforå thå decimaì poinô (crasheó iæ yoõ  don't)®  Arithmetiã notatioî ió finå foò entry®  Internally¬ thå prograí storeó reaì numberó iî á systeí similaò tï scientifiã notation¬  anä theù maù bå displayeä thió way®  Internally¬ realó arå storeä witè oveò ¶ significanô   digitó  whicè  ió  morå  thaî  wå  neeä  foò   thió application. Feeä  valueó  musô bå converteä tï  consistenô  figures®  Á nutrienô  requiremenô oæ ± pounä digestiblå proteiî peò  daù  caî onlù  bå meô bù feeä analyseó expresseä iî poundó oæ proteiî (uså metriã iæ yoõ wish¬  buô bå consistent)® Energù measureä iî KCAÌ wilì worë fine¬ agaiî aó lonç aó yoõ arå consistent® Percentageó wilì  noô  meaî anything»  theù musô bå converteä tï  á  concretå value. - Char®  Characteò  notatioî  meanó thaô yoõ caî  filì  thå blanë  witè  anù characteró availablå oî  thå  keyboarä  (controì characteró  excepted)®  Theså  arå alì labeló anä noô  useä  foò computation®  Thå  machinå  doesn'ô carå whetheò uppeò oò  loweò case. Š 2 MODIFY appendix. MODIFÙ ió á parô oæ EDITFEEÄ thaô needó furtheò explanation® Thå B(uilä functioî haó beeî specializeä foò thå feedloô application» iô  useä tï asë thå useò foò thå "tag"¬  theî proceedeä tï  builä thaô record® B(uilä ió no÷ automateä tï generatå tagó itselæ anä leaä thå useò througè datá input®  Provideä yoõ arå organizeä tï starô with¬  anä makå nï typoó (faô chance)¬  yoõ woulä noô  neeä M(odify. Iæ yoõ uså modifù tï correcô á typo¬ suggesô thaô yoõ obtaiî á  printeò listinç first®  Uså thå L(isô commanä anä á Control-Ð to echo the listing on the printer. Eacè recorä haó á recorä numbeò anä á taç (seå sample)® Yoõ musô finä thå recorä witè thå mistake®  M(odifù caî gï  directlù tï thaô recorä iæ yoõ wish» iô wilì displaù thå existinç contentó anä  allo÷  yoõ  tï  changå ANYTHINÇ  (includinç  thå  tag)®  Aî isolateä  typï  wilì  requirå yoõ tï  re-enteò  alì  thå  correcô information along with the correction of the error. Next¬  M(odifù  wilì displaù thå nexô record®  Assuminç  nï errors¬  yoõ  telì M(odifù tï K(eeð it®  Yoõ musô thumâ youò waù through all the remaining records to the end. EDITFEEÄ  automatically¬  iî thå  B(uilä  function¬  createó severaì  necessarù recordó foò dummù informatioî aô thå enä oæ  á file® Theså arå necessarù tï allo÷ surplusseó oæ somå nutrients® Yoõ shoulä havå nï reasoî tï tampeò witè theså usinç M(odifù (thå program will certainly allow you to if you want to raise hell). (Standarä  Pascal¬  thå languagå iî whicè thió haó alì  beeî written¬ haó á sequentiaì filå access® Thuó iô haó tï starô witè thå   firsô   recorä  anä  worë  througè  tï   thå   end®   Thió implementatioî  oæ  thå compileò supportó direcô access¬  buô  iô wasn't used in this program.) Š 3 PROGRAMMERS SOURCES Thå requesô foò thió prograí camå froí Daä whï feedó  cattlå anä  wondereä iæ sucè á thinç couldn'ô bå computerized®  Botè hå anä  mù brotheò haä somå knowledgå oæ ratioî programó oî  larger¬ Universitù sponsored¬  computers®  Havinç averreä thaô  computeò sizå  waó  noô important¬  anä thaô á micrï coulä dï thå  job¬  É founä  myselæ committeä tï puttinç moneù wherå  moutè  was®  Daä provideä  á  Nationaì  Academù oæ  Scienceó  publicatioî  (#1137© titleä  "Nutrienô  Requiremenô oæ Beeæ Cattle¢ whicè gavå á  faiò background to the problem. Thå  origiî  oæ  thå programó  ió  Williaí  M®  Yarnalì  whï publisheä programó iî S-10° Microsystemó iî UCSÄ Pascaì iî sprinç oæ  1980®   Á  generalizeä  treatmenô  oæ  thå  Reviseä  Simpleø algorithí  appeaò  therå witè severaì examples®  Therå arå  alsï some references to books on operations research. Volumå  ±  oæ  thå Pascal/Ú Useró Grouð containeä  thå  samå programó  witè  alterationó  bù  Raù Penleù  sï  theù  woulä  ruî properlù undeò Pascal/Z®  Theså programó werå thå direcô  sourcå of the ones you are using. Programs provided on the disc are: LINEAR.COÍ Thió ió thå basiã optimizatioî  program®  Iô ió  generaì purposå excepô foò somå labeló iî the output routines. EDITFEED.COÍ Editó datá foò thå LINEAÒ program®  Thió  ió heavilù  altereä  iî thå B(uilä  functioî  tï assist the user in ration applications. EDITFILE.COÍ  Thå  generaì  purposå datá  editoò  foò  thå LINEAÒ program®  Iô anä LINEAR.COÍ havå beeî changeä   froí  thå  originaló  tï  allo÷  2° character labels. LINEAR.PAÓ  Sourceó foò LINEAR.COM®  Pascal/Ú  supportó PRINT.PAS separate compilation. INITIAL.PAS EDITFILE.PAS Sources for EDITFILE and EDITFEED. BUILD.PAS BUILDF.PAS MODIFY.PAS MODIFYF.PAS LINTEST.DAT Data files. FEED.DAT Rex A Buddenberg 1910 Ash Street North Bend, Or 97459 503/756-2180 7 Feb 83 4  .