lope, as it will be done here. In the second case, the
objective is to pack the items on stocked rectangles
of known geometric dimensions. Separation lines are
used to ensure non-overlapping. In (Kallrath, 2009),
the problem is addressed using Branch&Reduce Op-
timization Navigator (BARON) (Tawarmalani and
Sahinidis, 2005; Sahinidis, 2014) and LindoGlobal
from Lindo Systems, Inc., which is part of the GAMS
22.5 distributions.
In (Stoyan et al., 2012) a model for packing prob-
lem of circles and non-convex polygons into a strip
with prohibited regions was proposed. The objective
of the problem is to maximize space utilization. Fur-
thermore, the authors ensures non-overlapping by us-
ing the phi-function.
In (Mundim et al., 2017) two heuristics for
packing circles and non-convex polygons into two-
dimensional bin in order to minimize one or both di-
mensions of the bin are proposed. These heuristics
are based on bottom-left moves and the no-fit raster
concept. For the development of the heuristics, the se-
quence in which items are packed must be determined
and this is done by a Biased Random Key Genetic Al-
gorithm.
The model proposed here is an extension of the
one presented in (Peralta et al., 2017), which is a non-
linear mathematical model for an irregular strip pack-
ing problem of polygons, which may be convex or
non-convex, that can rotate freely. This model yielded
good solutions for large instances in rather reasonable
execution time, and it should be noted that this model
has a significantly smaller number of variables, when
compared to the model proposed in (Kallrath, 2009).
Here, we propose a nonlinear mathematical model for
a packing problem in which the items are not only
polygons, but also circles. The container is no longer
a strip, but a rectangular envelope; the objective is to
minimize the area of the rectangular envelope. In this
model, we use direct trigonometry, in particular sep-
aration lines, to ensure the non-overlapping between
items. A separation line is a straight line such that,
given two items, one of them is on one side of the line
and the other on the opposite side. A polygon is on
one side of the line if all its vertices are on that side
of the line or on the line. A circle is on one side of the
line if its center is on that side of the line and if the dis-
tance from center to the line is greater than or equal
to its radius. The use of separation lines allows us
to find good solutions, even when dealing with non-
convex polygons, since in this case the non-convex
polygons are partitioned into convex polygons and we
must have lines separating each convex sub-polygon
belonging to the partition of the remaining items.
Both the polygons and the separation lines can ro-
tate freely. We use a code for nonlinear programming
to solve the problem, IPOPT (W
¨
achter and Biegler,
2006).
This paper is organized as follows. In the next sec-
tion we develop a model for packing circles and poly-
gons from one rectangular envelope, which considers
free rotations of the polygons. In Section 3, the nu-
merical results obtained are presented and discussed.
We end up presenting some conclusions in Section 4.
2 MODEL FOR A CIRCLES AND
POLYGONS PACKING
PROBLEM
We assume that n items, which can rotate freely,
should be positioned into one rectangular envelope,
obeying containment constraints and non-overlapping
constraints, in order to minimize the area of the rect-
angular envelope. Items can be circles or irregular
(convex or non-convex) polygons. The ideas used to
model this problem are based in the ones presented in
(Peralta et al., 2017).
If a polygon is non-convex, it is partitioned into
convex polygons. The coordinates of a vertex of a
non-convex polygon P
i
are given by:
(v
l
x
i
k
,v
l
y
i
k
),
with k = 1,..., p
i
and l = 1, . . . , v
i
k
, being p
i
the num-
ber of convex polygons belonging to the partition of
the non-convex polygon P
i
and v
i
k
the number of ver-
tices of the convex polygon P
i
k
.
The problem is modeled using the following vari-
ables: for each circle i, the coordinates of its center
(x
c
i
,y
c
i
); for each polygon i, the coordinates of its ref-
erence point (x
P
i
,y
P
i
) and its angle of rotation θ
i
; for
each separation line, which separates item i from item
j, the coordinates of its reference point (x
`
i, j
,y
`
i, j
) and
its rotation angle α
i, j
; and, the width W and the length
L of the rectangular envelope.
The reference point of a polygon is used to repre-
sent all the vertices of the polygon, even after transla-
tions and/or rotations are undergone; a separation line
is given by two points, one is its reference point and
the other is rewritten in terms of its reference point
(see more details in (Peralta et al., 2017)).
The nonlinear mathematical model which is pro-
posed here, as said before, consists of minimizing the
area (W × L) of the rectangular envelope, subject to
constraints ensuring that all items do not exceed the
bounds of the rectangular envelope (that are presented
in Section 2.1), and others ensuring that the items do
not overlap (that are presented in Section 2.2).
ICORES 2018 - 7th International Conference on Operations Research and Enterprise Systems
72