An investigation of the application of programming techniques to farm management problems, with special reference to beef cattle feeding in the Lothians of Scotland and in Alberta