OR-Tools  8.2
KnapsackItemWithEfficiency

Detailed Description

Definition at line 654 of file knapsack_solver.cc.

Public Member Functions

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

Public Attributes

int id
 
int64 profit
 
int64 weight
 
double efficiency
 

Constructor & Destructor Documentation

◆ KnapsackItemWithEfficiency()

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

Definition at line 655 of file knapsack_solver.cc.

Member Data Documentation

◆ efficiency

double efficiency

Definition at line 667 of file knapsack_solver.cc.

◆ id

int id

Definition at line 664 of file knapsack_solver.cc.

◆ profit

int64 profit

Definition at line 665 of file knapsack_solver.cc.

◆ weight

int64 weight

Definition at line 666 of file knapsack_solver.cc.


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