Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::KnapsackAssignment Struct Reference

#include <knapsack_solver.h>

Public Member Functions

 KnapsackAssignment (int _item_id, bool _is_in)
 

Public Attributes

int item_id
 
bool is_in
 

Detailed Description

Todo

(user): Add a new propagator class for conflict constraint.

(user): Add a new propagator class used as a guide when the problem has several dimensions.

--— KnapsackAssignment --— KnapsackAssignment is a small struct used to pair an item with its assignment. It is mainly used for search nodes and updates.

Definition at line 301 of file knapsack_solver.h.

Constructor & Destructor Documentation

◆ KnapsackAssignment()

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

Definition at line 302 of file knapsack_solver.h.

Member Data Documentation

◆ is_in

bool operations_research::KnapsackAssignment::is_in

Definition at line 305 of file knapsack_solver.h.

◆ item_id

int operations_research::KnapsackAssignment::item_id

Definition at line 304 of file knapsack_solver.h.


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