Description Usage Format Details See Also
generalized bin packing problem in 1 dimension, a.k.a knapsack 0-1 problem.
1 |
An object of class C++Class
of length 1.
gbp1d init a profit vector p, a weight vector w, and a weight constraint c, gbp1d solver would solve
maximize sum_j=1^n p_j x_j
subject to sum_j=1^n w_j x_j leq c x_j in 0, 1, j = 1, ...., n
and instantiate a gbp1d object with a selectin vector x and an objective z.
gbp1d is implemented as rcpp class, an instantiate can be solved by calling gbp1d_solver_dpp(p, w, c) and gbp1d_solver_min(p, w, c)
Other gbp1d: gbp1d_solver_dpp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.