def Init(
     self, profits: 'std::vector< int64,std::allocator< int64 > > const &',
     weights:
     'std::vector< std::vector< int64,std::allocator< int64 > >,std::allocator< std::vector< int64,std::allocator< int64 > > > > const &',
     capacities: 'std::vector< int64,std::allocator< int64 > > const &'
 ) -> "void":
     return _pywrapknapsack_solver.KnapsackSolver_Init(
         self, profits, weights, capacities)
Beispiel #2
0
 def Init(self, profits: "std::vector< int64 > const &", weights: "std::vector< std::vector< int64 > > const &", capacities: "std::vector< int64 > const &") -> "void":
     r"""Initializes the solver and enters the problem to be solved."""
     return _pywrapknapsack_solver.KnapsackSolver_Init(self, profits, weights, capacities)
 def Init(self, profits, weights, capacities):
     return _pywrapknapsack_solver.KnapsackSolver_Init(
         self, profits, weights, capacities)
Beispiel #4
0
 def Init(self, profits: "std::vector< int64 > const &",
          weights: "std::vector< std::vector< int64 > > const &",
          capacities: "std::vector< int64 > const &") -> "void":
     return _pywrapknapsack_solver.KnapsackSolver_Init(
         self, profits, weights, capacities)