Description Usage Format Details Note See Also
generalized bin packing problem in 2 dimension, a.k.a rectangle fill.
1 |
An object of class C++Class
of length 1.
gbp2d init a profit vector p, a length vector l, a depth vector d, a length constraint ml, and a depth constraint md on l x d rectangle with geometry intepretation.
gbp2d solver would solve
maximize sum_j=1^n p_j k_j
subject to fit (l_j, d_j) at coordinate (x_j, y_j) such that no overlap in ml x md, j = 1, ...., n
and instantiate a gbp2d object with a x-axis coordinate vector x, a y-axis coordinate vector y, a selection vector k, and an objective o.
a gbp2d class instance has 6 fields:
- p: profit of it fit into bn <vector>
created via cluster max(l, d) and min(l, d) via gbp2d_solver_dpp_prep_create_p()
- it: it position and scale <matrix>
- x, y it position in the bin <numeric>
- l, d it scale along x and y <numeric>
- bn: bn scale <vector>
- l, d bn scale along x and y <numeric>
- k: selection indicator 0, 1 <vector>
- o: objective achivement volumn fit in over volumn overall <numeric>
- ok: a quick indicator of all it fit into bn? <bool>
p is a proxy of ranking on rectangle fit difficulty, often a function w.r.t max(l, d) and l x d
Other gbp2d: gbp2d_checkr
,
gbp2d_solver_dpp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.