I like this one

http://thedailywtf.com/Articles/Are-You-Cool,-Man-and-More.aspx  (scroll
down)

*Not to be Confused with the Abstract F*cktory Pattern*

On Fri, Jun 20, 2008 at 12:44 PM, Peter Lin <[EMAIL PROTECTED]> wrote:

> that's why there's robots. Who needs human lathe workers anymore :)
>
> j/k
>
> On Fri, Jun 20, 2008 at 12:36 PM, Jason Morris <[EMAIL PROTECTED]>
> wrote:
> > Problems of this type usually have the added wrinkle that the production
> > capacities of the lathes are different or the skill of the workers is
> > different, and you have to choose which machines to operate and for how
> long
> > and / or which workers to assign to which machines.
> >
> > All in all, I was pretty happy with my solution :-)
> >
> > On Fri, Jun 20, 2008 at 8:55 AM, Peter Lin <[EMAIL PROTECTED]> wrote:
> >>
> >> the solution looks pretty pretty straight forward. it could probably
> >> be generalized to allow for n number of lathes.
> >>
> >> peter
> >>
> >> On Fri, Jun 20, 2008 at 3:02 AM, Jason Morris <[EMAIL PROTECTED]
> >
> >> wrote:
> >> > Hi All,
> >> >
> >> > Peter Lin sent me a manual for Xpress-MP (a Fair Isaac product), since
> >> > we'd
> >> > been discussing some work in the operations research / optimization
> >> > domain.
> >> >
> >> >
> >> > In that manual, the first problem that the authors give is the
> >> > following:
> >> >
> >> > The Chess Set Problem
> >> > =====================
> >> > A small joinery makes two different sizes of boxwood chess sets. The
> >> > small
> >> > set requires 3 hours of machining on a lathe, and the large set
> requires
> >> > 2
> >> > hours. There are four lathes with skilled operators who each work a 40
> >> > hour
> >> > week, so we have 160 lathe-hours per week. The small chess set
> requires
> >> > 1 kg
> >> > of boxwood, and the large set requires 3 kg. Unfortunately, boxwood is
> >> > scarce and only 200 kg per week can be obtained.  When sold, each of
> the
> >> > large chess sets yields a profit of $20, and one of the small chess
> set
> >> > has
> >> > a profit of $5.
> >> >
> >> > Q. How many sets of each kind should be made each week so as to
> maximize
> >> > profit.
> >> >
> >> > Now, I happen to play chess and I do own an ebony and boxwood chess
> set,
> >> > so
> >> > I couldn't resist trying to solve this problem using rules and Jess.
> >> >
> >> > I am posting my solution, but don't peek if you want to try it
> yourself!
> >> >  :-)
> >> >
> >> > I think that it shows how elegant and powerful the Jess language is.
> >> >
> >> > Cheers,
> >> > Jason
> >> >
> >> > -----------------------------------------------------------
> >> > Morris Technical Solutions LLC
> >> > [EMAIL PROTECTED]
> >> > (517) 304-5883
> >> >
> >>
> >>
> >> --------------------------------------------------------------------
> >> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> >> in the BODY of a message to [EMAIL PROTECTED], NOT to the list
> >> (use your own address!) List problems? Notify
> [EMAIL PROTECTED]
> >> --------------------------------------------------------------------
> >>
> >
> >
> >
> > --
> > -----------------------------------------------------------
> > Jason Morris
> > Morris Technical Solutions LLC
> > [EMAIL PROTECTED]
> > (517) 304-5883
>
>
> --------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the list
> (use your own address!) List problems? Notify [EMAIL PROTECTED]
> --------------------------------------------------------------------
>
>


--
-----------------------------------------------------------
Jason Morris
Morris Technical Solutions LLC
[EMAIL PROTECTED]
(517) 304-5883

Reply via email to