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

Detailed Description

Definition at line 669 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()

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

Definition at line 670 of file knapsack_solver.cc.

Member Data Documentation

◆ efficiency

double operations_research::KnapsackItemWithEfficiency::efficiency

Definition at line 682 of file knapsack_solver.cc.

◆ id

int operations_research::KnapsackItemWithEfficiency::id

Definition at line 679 of file knapsack_solver.cc.

◆ profit

int64_t operations_research::KnapsackItemWithEfficiency::profit

Definition at line 680 of file knapsack_solver.cc.

◆ weight

int64_t operations_research::KnapsackItemWithEfficiency::weight

Definition at line 681 of file knapsack_solver.cc.


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