Optaplanner problem

90 views
Skip to first unread message

Kevin....@blum.com

unread,
Mar 2, 2016, 12:31:18 PM3/2/16
to optapla...@googlegroups.com, kevin....@hotmail.com
Hi OptaPlanner developers,

i am currently trying a lot of stuff with your OptaPlanner "Framework" because i write mit master thesis about optimization with using optaplanner.
I have already implemented and tested a DateValueRange and also a lot of other stuff.
At the moment i have not found any kind of DateValueRange so i attached the SourceCode maybe you want to use it.



I know it is not best practice because I have not used all of your libs but i cannot use maven, etc in my company so i had to
do so.

At the moment i am facing the following problem i hope you can help me.


I have Orders which should be finished at a specific date. This date is the EndDate of the Order. The Scheduling is responsible
for taking an Order  and take the right amount of MachineCapacity. It is important that the scheduling of the Order  is on the same machine
and all the used MachineCapacities are after each other (e.g. Order 1 is on Machine 1 at the dates 1.1.2016, 2.1.2016, 3.1.2016, ... as long
as it is not finished).

At the moment my problem is that i don't know how many Schedulings are needed, this number should be calculated from the OptaPlanner.
Is this possible? The given problem was simplified a lot.

I also tried a lot of other things e.g. Optimizing the StartDate from the Order, so that the EndDate is at the right time. Notice: The enddate had to
be calculated each time when the StartDate changed because the MachineCapacity is not at each day of the week. So it could happen
that when i start a order on monday it will be finished on thursday but when i start it on thursday it will be finished the following week.

Maybe you can help me, i would be very glad and would make a lot of advertising (i do it anyway :-P)
And pls can you also send me the answer to kevin....@hotmail.com

Regards,
Kevin Wallis (The guy with the DateValueRange)

DateValueRange.java
DateIncrementUnit.java
PlannerAssert.java
DateValueRangeTest.java
CodeAssertable.java

Geoffrey De Smet

unread,
Mar 7, 2016, 9:34:00 AM3/7/16
to optapla...@googlegroups.com

At the moment i have not found any kind of DateValueRange so i attached the SourceCode maybe you want to use it.
Yes, we need to support date value ranges out of of the box. Good suggestion!

However, java.util.Date is dead, so I don't want to add support for that any more.
Instead, we want to support for java.time.LocalDate etc, so based on this mail I created this issue:
  https://issues.jboss.org/browse/PLANNER-549
Your code can definitely inspire that too of course.

With kind regards,
Geoffrey De Smet

--
You received this message because you are subscribed to the Google Groups "OptaPlanner development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to optaplanner-d...@googlegroups.com.
To post to this group, send email to optapla...@googlegroups.com.
Visit this group at https://groups.google.com/group/optaplanner-dev.
For more options, visit https://groups.google.com/d/optout.

Geoffrey De Smet

unread,
Mar 7, 2016, 9:51:30 AM3/7/16
to optapla...@googlegroups.com
I am trying to grok this long question, but I am failing.

At the moment my problem is that i don't know how many Schedulings are needed, this number should be calculated from the OptaPlanner.
If your number of orders is fixed, that I would presume Order is your planning entity.
See docs section on "what is a planning entity and what is problem fact?" for some rules of thumb on how to design a good model.

Maybe not all orders can be scheduled, in which case you 'd have "overconstrained planning" (see docs for that keyword).


With kind regards,
Geoffrey De Smet

On 02/03/16 18:31, Kevin....@blum.com wrote:
Reply all
Reply to author
Forward
0 new messages