OR-Tools  9.6
KnapsackItemWithEfficiency

Detailed Description

Definition at line 656 of file knapsack_solver.cc.

Public Member Functions

 KnapsackItemWithEfficiency (int _id, int64_t _profit, int64_t _weight, int64_t _profit_max)
 

Public Attributes

int id
 
int64_t profit
 
int64_t weight
 
double efficiency
 

Constructor & Destructor Documentation

◆ KnapsackItemWithEfficiency()

KnapsackItemWithEfficiency ( int  _id,
int64_t  _profit,
int64_t  _weight,
int64_t  _profit_max 
)
inline

Definition at line 657 of file knapsack_solver.cc.

Member Data Documentation

◆ efficiency

double efficiency

Definition at line 669 of file knapsack_solver.cc.

◆ id

int id

Definition at line 666 of file knapsack_solver.cc.

◆ profit

int64_t profit

Definition at line 667 of file knapsack_solver.cc.

◆ weight

int64_t weight

Definition at line 668 of file knapsack_solver.cc.


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