Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ src/ algorithms/

operations_research::KnapsackAssignment Struct Reference

The following code defines needed classes for the KnapsackGenericSolver class which is the entry point to extend knapsack with new constraints such as conflicts between items. More...

#include <knapsack_solver.h>

List of all members.

Public Member Functions

 KnapsackAssignment (int _item_id, bool _is_in)

Public Attributes

int item_id
bool is_in


Detailed Description

The following code defines needed classes for the KnapsackGenericSolver class which is the entry point to extend knapsack with new constraints such as conflicts between items.

Constraints are enforced using KnapsackPropagator objects, in the current code there is one propagator per dimension (KnapsackCapacityPropagator). One of those propagators, named master propagator, is used to guide the search, i.e. decides which item should be assigned next. Roughly speaking the search algorithm is:

Todo:
TODO(user): Add a new propagator class for conflict constraint.
Todo:
TODO(user): Add a new propagator class used as a guide when the problem has several dimensions.
KnapsackAssignement KnapsackAssignement is a small struct used to pair an item with its assignment. It is mainly used for search nodes and updates.

Definition at line 191 of file knapsack_solver.h.


Constructor & Destructor Documentation

operations_research::KnapsackAssignment::KnapsackAssignment ( int  _item_id,
bool  _is_in 
) [inline]

Definition at line 192 of file knapsack_solver.h.


Member Data Documentation

Definition at line 196 of file knapsack_solver.h.

Definition at line 197 of file knapsack_solver.h.


The documentation for this struct was generated from the following file: