Multi-dimentional planning in C#
by Wierdbeard65
Hi,
I came across the OptaPlanner site / product as part of researching
solutions to a project I am working on for my employer.
In essance, it's a timetabling system, however all of the solutions I have
found so far don't actually go far enough!
I am writing in C#, is there a port of Optaplanner? Or is it available as a
library I can call?
I need to schedule classes for a training organization. I have a number of
locations and in each location 1 or more classrooms. I have instructors
based in various locations, but they can travel.
Each class runs from between 1 and 5 days
Each instructor can teach 1 or more classes
Each room can host 1 or more classes
I need to run a certain number of each class at each location in a quarter.
But
Each room can only hold one class at a time
Each instructor can only teach one class at the same time
I don't want the same class running at multiple locations simultaneously
I want to minimise travel
I want instructors to be able to have preferred classes, rooms and
locations.
I want classes to have preferred rooms.
I'm thinking Genetic Algorithm, but the only one I have found online is
written in C++ and is more aimed at a university, where the class <->
instuctor link is fixed.
Am I in completely the wrong place? If so, days of Googling hasn't helped,
so can anyone offer some pointers?
Many thanks in advance!
--
View this message in context: http://drools.46999.n3.nabble.com/Multi-dimentional-planning-in-C-tp40241...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 6 months
POJO model jar?
by Jervis Liu
Hi, cant catch your guys on IRC, so I asked here. How do i upload a pojo
jar as fact model now adays? We dont seem to have this menu anymore from
"New"
Thanks,
Jervis
12 years, 6 months
Eclipse Rete Tree Viewer Error with good DRL.
by Ramon Buckland
Hi,
I have a Drools file that runs not a problem in Drools, but the Rete Viewer in Eclipse fails to view it.
the error is :
java.lang.Exception: Unable to parse rules to show RETE View! 1 build errors
Ho do I debug what that error is ?
regards
Ramon
Ramon Buckland
ramon(a)thebuckland.com
12 years, 6 months
RuntimeException "cannot invoke method" ArrayIndexOutOfBoundsException in Drools expert 5.5
by aleste
I've found a problem (probably a bug in mvel) running drools expert 5.5.
The MessageSourceElement constructor uses variable arguments:
public MessageSourceElement(Enum<?> enumerationElement, Object...
parameters) {
My drl contains a method with consequence:
then
insert (new
MessageSourceElement(ValidationException.MESSAGE_LIST.USER_CANT_OVERRIDE_THEMSELVES,
new Object[]{}))
end
If I manually create the array of objects and pass it to the constructor it
works correctly, but if I try to use variable parameters:
insert (new
MessageSourceElement(ValidationException.MESSAGE_LIST.USER_CANT_OVERRIDE_THEMSELVES))
insert (new
MessageSourceElement(ValidationException.MESSAGE_LIST.USER_CANT_OVERRIDE_THEMSELVES,
something, somethingElse))
I experince a very strange behavior: The first time the rule executes
properly, but any subsequent execution fails with RuntimeException "cannot
invoke method" ArrayIndexOutOfBoundsException 1
This happens because the second time mvel tries to call the two parameters
constructor (Enum, Object[]) no matter what the real constructor we are
trying to use (Enum), (Enum, SomeObject, SomeAnotherObject) and fails when
trying to extract the parameters by reflection.
I don't know if this is a known bug or if it should be reported, I hope it
will save some time someone.
--
View this message in context: http://drools.46999.n3.nabble.com/RuntimeException-cannot-invoke-method-A...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 6 months
[drools-planner] please advice on IntConstraintOccurrence weight
by Michiel Vermandel
Hi,
(using drools-planner 5.5.0.Final)
I'm struggling with assigning weights to IntConstraintOccurrence in a rule's LHS.
If I assign different weights for different rules (because we think one rule is more important than an other) our end result is far worse than when we assign all equal weights.
I do not look at the total value of hard and soft score but at the number of violations.
I can imagine that the planner can evolve much easier to a better solution with all weights being the same because if not then "transient" moves will be made impossible to take.
But how should we then implement importance in rules?
Thanks
-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials
12 years, 6 months
Guvnor-5.5
by Ricardo
Is any one tried guvnor-5.5 in websphere application server?
What happen to the conponents.xml?
Why guvnor is tightly coupled with jbossAS even each version (jbossAS) got
separate war file?
this seems a big impediment for using guvnor as rule authoring tools.
Is one knows well aware these and already know how to deal this, please
advise me?
-----
with kind regards,
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-5-tp4022096.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 6 months