Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::ProjectSelectionResult< Value_Type > Struct Template Reference

Result of project selection. More...

#include <net_apps.H>

Collaboration diagram for Aleph::ProjectSelectionResult< Value_Type >:
[legend]

Public Attributes

Value_Type max_profit {0}
 Maximum achievable profit.
 
std::vector< size_tselected
 IDs of selected projects.
 
Value_Type total_revenue {0}
 Sum of positive profits.
 
Value_Type total_cost {0}
 Sum of negative profits (costs)
 

Detailed Description

template<typename Value_Type>
struct Aleph::ProjectSelectionResult< Value_Type >

Result of project selection.

Definition at line 414 of file net_apps.H.

Member Data Documentation

◆ max_profit

template<typename Value_Type >
Value_Type Aleph::ProjectSelectionResult< Value_Type >::max_profit {0}

Maximum achievable profit.

Definition at line 416 of file net_apps.H.

Referenced by Aleph::solve_project_selection().

◆ selected

template<typename Value_Type >
std::vector<size_t> Aleph::ProjectSelectionResult< Value_Type >::selected

IDs of selected projects.

Definition at line 417 of file net_apps.H.

Referenced by Aleph::solve_project_selection().

◆ total_cost

template<typename Value_Type >
Value_Type Aleph::ProjectSelectionResult< Value_Type >::total_cost {0}

Sum of negative profits (costs)

Definition at line 419 of file net_apps.H.

Referenced by Aleph::solve_project_selection().

◆ total_revenue

template<typename Value_Type >
Value_Type Aleph::ProjectSelectionResult< Value_Type >::total_revenue {0}

Sum of positive profits.

Definition at line 418 of file net_apps.H.

Referenced by Aleph::solve_project_selection().


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