|
Can I have more than one planning entity, let say 4, is it recommended or poor design?
If any performance related warnings? thanks in advance
with kind regards,
|
|
Administrator
|
If you mean more then 1 planning entity class:
Yes, you can, but the construction heuristics in 5.4.0.Final cannot handle more than 1 class currently. 5.5.0.Beta1's "unified selectors" will fix that. If you mean more then 1 planning entity instance: Of course, real problems can have 50 000 entities and more. Op 18-06-12 21:36, domingo schreef: > Can I have more than one planning entity, let say 4, is it recommended or > poor design? > If any performance related warnings? > > thanks in advance > > ----- > with kind regards, > > -- > View this message in context: http://drools.46999.n3.nabble.com/drools-planner-planning-entity-tp4018034.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [hidden email] > https://lists.jboss.org/mailman/listinfo/rules-users > -- With kind regards, Geoffrey De Smet _______________________________________________ rules-users mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/rules-users |
|
thanks Geoff,
I mean planning entity class. I am using planner-5.4.0.Final. I have 4 planning entity class, what is your advise? what algorithm is best fit for this or you want me to change the object design? warm regards
with kind regards,
|
|
Administrator
|
Either go for a custom SolutionInitializer (which is a lot of work and
easy to get wrong), like this example https://github.com/droolsjbpm/drools-planner/blob/41b5e306ec8d1221c7620ee4077ad561c417e8a0/drools-planner-examples/src/main/java/org/drools/planner/examples/pas/solver/solution/initializer/PatientAdmissionScheduleSolutionInitializer.java Or, change the design (if possible) so you only have 1 planning entity class (and then just configure the 3 lines for First Fit, First Fit Decreasing or BF or BFF as you can find in the manual and in all other examples). What's your use case? It's first time I hear about a use case with more then 2 entity classes, it's very rare. Op 19-06-12 16:43, Ricardo schreef: > thanks Geoff, > > I mean planning entity class. I am using planner-5.4.0.Final. I have 4 > planning entity class, what is your advise? what algorithm is best fit for > this or you want me to change the object design? > > warm regards > > ----- > with kind regards, > > -- > View this message in context: http://drools.46999.n3.nabble.com/drools-planner-planning-entity-tp4018034p4018068.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [hidden email] > https://lists.jboss.org/mailman/listinfo/rules-users > -- With kind regards, Geoffrey De Smet _______________________________________________ rules-users mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/rules-users |
|
thanks Geoff you are right, this is due to poor object design in our use case. I will change the design and keep you posted the changes.
thanks lot,
with kind regards,
|
|
Hello Geoff,
As advised, I am reading the drools-planner.5.4.0.Final user guide, section 4.3.5.5. Cached problem fact, I noticed in the example method explaining about finding out the topic conflict, in this method multiple for loop and if condition are there, since we use drools expert can I create a drl file for this logic to handle instead of using java code here, please advise me. thanks,
with kind regards,
|
|
Administrator
|
section *4.3.5.5. Cached problem fact* is about precalculated problem facts,
you probably don't need that in a beginner example. In that example, a topic confict is not the detection of a constraint, but the combination of any 2 topics that share students and therefor could trigger a constraint, if and only if their exams are scheduling at the same time. Op 19-06-12 21:16, Ricardo schreef: > Hello Geoff, > > As advised, I am reading the drools-planner.5.4.0.Final user guide, section > *4.3.5.5. Cached problem fact*, I noticed in the example method explaining > about finding out the topic conflict, in this method multiple for loop and > if condition are there, since we use drools expert can I create a drl file > for this logic to handle instead of using java code here, please advise me. > > thanks, > > ----- > with kind regards, > > -- > View this message in context: http://drools.46999.n3.nabble.com/drools-planner-planning-entity-tp4018034p4018080.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [hidden email] > https://lists.jboss.org/mailman/listinfo/rules-users > -- With kind regards, Geoffrey De Smet _______________________________________________ rules-users mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/rules-users |
|
Hello Ge0ffrey, I am learning drools-planner to use in my project. I created a sample project for my practice (copy from example project in the example project), but it is not working correctly. Please kindly review the attached project folder, help me to understand and find the problem. thanks, PlannerProject.rar
with kind regards,
|
|
Administrator
|
Op 20-06-12 15:17, Ricardo schreef:
> it is not working correctly You 'll have to be more specific then that :) Also, community support doesn't include full project code audits... -- With kind regards, Geoffrey De Smet Op 20-06-12 15:17, Ricardo schreef: > Hello Ge0ffrey, > > I am learning drools-planner to use in my project. I created a sample > project for my practice (copy from example project in the example project), > but it is not working correctly. Please kindly review the attached project > folder, help me to understand and find the problem. > > thanks, > http://drools.46999.n3.nabble.com/file/n4018098/PlannerProject.rar > PlannerProject.rar > > ----- > with kind regards, > > -- > View this message in context: http://drools.46999.n3.nabble.com/drools-planner-planning-entity-tp4018034p4018098.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [hidden email] > https://lists.jboss.org/mailman/listinfo/rules-users > -- With kind regards, Geoffrey De Smet _______________________________________________ rules-users mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/rules-users |
| Powered by Nabble | Edit this page |
