how could i set a constraint that prefers no-allocation rather than allocation to an incompatible line ?

20 views
Skip to first unread message

Shi Alexander

unread,
Aug 15, 2023, 5:13:04 AM8/15/23
to OptaPlanner development
Hi there,

Because of the limitation of line resources, I would rather not allocate, nor allocate to an incompatible line. Is any idea of how set such constraint ?

thank you.

Anna Dupliak

unread,
Aug 17, 2023, 5:51:53 AM8/17/23
to optapla...@googlegroups.com
I would suggest you use overconstrained planning.

In the demo model I shared before https://github.com/dupliaka/optasamples/tree/master/warehouse-plan
You may want to make Row nullable

 @PlanningVariable(nullable = true)
Row row;


--
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 view this discussion on the web visit https://groups.google.com/d/msgid/optaplanner-dev/eb16920f-239b-4fbd-a35b-2d3191275cfbn%40googlegroups.com.


--

Dupliak Anna

She /Her /Hers

QE, Business Automation

Red Hat

adup...@redhat.com    

 +42-0773-016991




Reply all
Reply to author
Forward
0 new messages