Skip to content

Commit

Permalink
changed default constructor to allow setting capital_cost
Browse files Browse the repository at this point in the history
  • Loading branch information
dean-krueger committed Nov 6, 2024
1 parent d94e124 commit 3b25592
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/toolkit/facility_cost.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ class FacilityCost {
public:

/// The default constructor for FacilityCost. This creates an object
/// with all costs set to 0.0.
FacilityCost() : capital_cost_(0) {}
/// with all costs set to 0.0 as default, but with the option to set
/// them manually.
FacilityCost(double capital_cost = 0) : capital_cost_(capital_cost) {}

/// The default destructor for FacilityCost
~FacilityCost() = default;
Expand Down

0 comments on commit 3b25592

Please sign in to comment.