<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000'><P>I think a rules engine could do what you are asking, but you have to ask the right questions of it. What any rules engine can do is allow you to declare "rules" and then you reason using those rules. Once you setup your rules, I would guess you would want to "guess" if a plant can go in a bed, near, X other plants and see if you broke the rules. If you are looking for the "best" solution you make want to read this blog on drools solver (<A href="http://blog.athico.com/search/label/solver">http://blog.athico.com/search/label/solver</A>). If you just want to see if your plant can go in a certain place you simple brute force the check. Assuming you don't have huge amounts of data, and plants you can try all possible solutions and you wouldnt have to use anything as fancy as solver.</P>
<P>&nbsp;</P>
<P>So the question you need to answer is do you want a constraint engine (aka drools), "can i put x plant here", or a solver type engine that you ask, "where do i put all my plants". Hopefully that helps you a bit.</P>
<P>&nbsp;</P>
<P>-Michael</P>
<P><BR>----- Original Message -----<BR>From: "Ari Fainchtein" &lt;ari@lechido.com&gt;<BR>To: "Rules Users List" &lt;rules-users@lists.jboss.org&gt;<BR>Sent: Sunday, November 16, 2008 12:31:13 PM GMT -06:00 US/Canada Central<BR>Subject: [rules-users] Introduction to my project <BR><BR>Hello,<BR>I would appreciate the opportunity to get your feedback. &nbsp;The question &nbsp;<BR>I have is "Is a Rule Engine the best solution to my problem or do i &nbsp;<BR>have to write a custom algorithm?"<BR><BR>What follows is a one paragraph background and then the actual problem.<BR><BR>I live in a farm 90km north of Melbourne. &nbsp;My farm is my PhD project, &nbsp;<BR>which i call the Suburban Micro Farm. &nbsp;The idea is to grow food in the &nbsp;<BR>farm and have a commercial kitchen (in the farm) to prepare take away &nbsp;<BR>meals which will &nbsp;be sold in downtown Melbourne. &nbsp;I am writing a J2EE &nbsp;<BR>compliant web based application to control the operation of the farm/ <BR>delivery service. &nbsp;THe farm will &nbsp;be certified organic and is not &nbsp;<BR>connected to the grid. &nbsp;All of my intellectual property is opens &nbsp;<BR>source under the idea of Open Source Franchising.<BR><BR>The problem at hand is as follow.<BR><BR>In my vegetable garden, I have planting beds of different sizes. &nbsp;i &nbsp;<BR>will plant seedlings in those beds. &nbsp;i have all the data for how long &nbsp;<BR>should the seeds be in the seedling trays before transplanting to &nbsp;<BR>beds. &nbsp;I have the data for how far apart should be placed and how long &nbsp;<BR>should they be in the ground. &nbsp;I also have data as which ones should &nbsp;<BR>be placed next to which others and which should not be planted &nbsp;<BR>together. &nbsp;How should the seedlings be placed in the beds assuming &nbsp;<BR>that we also need to take into account a rotation of beds across &nbsp;<BR>seasons? The rotation will be created using rules as "if bed 1 had &nbsp;<BR>tomatoes then next season plant beans".<BR><BR>This is a typical problem I need to solve. &nbsp;Like the problem described &nbsp;<BR>above, I have many more in different parts of the supply chain. &nbsp; <BR>Should I use a rules engine or should i write custom algorithms?<BR><BR><BR>Thanks<BR>_______________________________________________<BR>rules-users mailing list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR></P></div></body></html>