@@ -62,7 +62,7 @@ pub fn calculate_prices(model: &Model, solution: &Solution, year: u32) -> Result
6262 ensure ! (
6363 !matches!( investment_set, InvestmentSet :: Cycle ( _) ) ,
6464 "Cannot calculate prices using the `marginal` and `full` pricing strategies \
65- for Cycle investment sets ."
65+ for markets with cyclical commodity dependencies ."
6666 ) ;
6767 }
6868
@@ -551,7 +551,7 @@ where
551551 // Start by looking at existing assets
552552 // Calculate highest full cost for each commodity/region/time slice
553553 // Keep track of keys with prices - missing keys will be handled by candidates later
554- let mut annual_capital_costs_cache = HashMap :: new ( ) ;
554+ let mut annual_fixed_costs_cache = HashMap :: new ( ) ;
555555 let mut priced_by_existing = HashSet :: new ( ) ;
556556 for ( asset, time_slice) in activity_keys_for_existing {
557557 let annual_activity = annual_activities[ asset] ;
@@ -571,10 +571,10 @@ where
571571 continue ;
572572 }
573573
574- // Calculate/cache annual capital cost for this asset
575- let annual_capital_cost_per_flow = * annual_capital_costs_cache
574+ // Calculate/cache annual fixed costs for this asset
575+ let annual_fixed_costs_per_flow = * annual_fixed_costs_cache
576576 . entry ( asset. clone ( ) )
577- . or_insert_with ( || asset. get_annual_capital_cost_per_flow ( annual_activity) ) ;
577+ . or_insert_with ( || asset. get_annual_fixed_costs_per_flow ( annual_activity) ) ;
578578
579579 // Iterate over all the SED/SVD marginal costs for commodities we need prices for
580580 for ( commodity_id, marginal_cost) in asset. iter_marginal_costs_with_filter (
@@ -583,8 +583,8 @@ where
583583 time_slice,
584584 |cid : & CommodityID | markets_to_price. contains ( & ( cid. clone ( ) , region_id. clone ( ) ) ) ,
585585 ) {
586- // Add capital cost per flow to marginal cost to get full cost
587- let marginal_cost = marginal_cost + annual_capital_cost_per_flow ;
586+ // Add annual fixed costs per flow to marginal cost to get full cost
587+ let marginal_cost = marginal_cost + annual_fixed_costs_per_flow ;
588588
589589 // Update the highest cost for this commodity/region/time slice
590590 let key = ( commodity_id. clone ( ) , region_id. clone ( ) , time_slice. clone ( ) ) ;
@@ -619,12 +619,12 @@ where
619619 continue ;
620620 }
621621
622- // Calculate/cache annual capital cost per flow for this asset assuming full dispatch
622+ // Calculate/cache annual fixed cost per flow for this asset assuming full dispatch
623623 // (bound by the activity limits of the asset)
624- let annual_capital_cost_per_flow = * annual_capital_costs_cache
624+ let annual_fixed_costs_per_flow = * annual_fixed_costs_cache
625625 . entry ( asset. clone ( ) )
626626 . or_insert_with ( || {
627- asset. get_annual_capital_cost_per_flow (
627+ asset. get_annual_fixed_costs_per_flow (
628628 * asset
629629 . get_activity_limits_for_selection ( & TimeSliceSelection :: Annual )
630630 . end ( ) ,
@@ -638,8 +638,8 @@ where
638638 time_slice,
639639 |cid : & CommodityID | should_process ( cid) ,
640640 ) {
641- // Add capital cost per flow to marginal cost to get full cost
642- let full_cost = marginal_cost + annual_capital_cost_per_flow ;
641+ // Add annual fixed costs per flow to marginal cost to get full cost
642+ let full_cost = marginal_cost + annual_fixed_costs_per_flow ;
643643
644644 // Update the _lowest_ cost for this commodity/region/time slice
645645 let key = ( commodity_id. clone ( ) , region_id. clone ( ) , time_slice. clone ( ) ) ;
0 commit comments