Guillotine cuts - and 2D surface packing in general - require a
non-simple model.
Like 2D surface packing or 3D volume packing, the trick is often
to use Local Search to decide an order of items
and then use that order in a Construction Heuristic or greedy
approach to decide the actual packing/cuts.
Similar to what I did here:
https://github.com/ge0ffrey/packing-santas-sleigh
In any case - it's far from straightforward to do in OptaPlanner
7.x or lower, as you'll see in that Santa code.
With kind regards,
Geoffrey De Smet
OptaPlanner lead
--
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/20a7e09a-dea3-4991-a7ac-96b87ef21809%40googlegroups.com.
need to cut from the stock piece are in differnet shape(star, circle, rectangle, square etc)
OptaPlanner does not handle this use case (2D surface cutting of
polygons) easily out of the box.
Although as far as I know, nor does any other production solver...
The trick is to use Local Search on top of a Construction
Heuristic (so not LS after CH as usual, but instead LS on top of
CH).
The Local Search creats a list of shapes. The Construction
Heuristic puts them in the left bottom corner, in the order of
that list created by Local Search.
You could hack OptaPlanner - like I did in the packing santa
sleigh's problem (see my github repo).
This will be a challenge.
Good luck.
With kind regards,
Geoffrey De Smet
To view this discussion on the web visit https://groups.google.com/d/msgid/optaplanner-dev/6388f449-f540-4e7d-8688-4426d73bee83n%40googlegroups.com.