File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -987,14 +987,14 @@ class ScipyAdapter:
987987 @classmethod
988988 def factory (
989989 cls ,
990- costs : xr .DataArray ,
990+ capacity_costs : xr .DataArray ,
991991 constraints : list [Constraint ],
992992 commodities : list [str ],
993993 timeslice_level : str | None = None ,
994994 ) -> ScipyAdapter :
995995 # Calculate costs for the linear problem
996996 lpcosts = lp_costs (
997- capacity_costs = costs ,
997+ capacity_costs = capacity_costs ,
998998 commodities = commodities ,
999999 timeslice_level = timeslice_level ,
10001000 )
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ def scipy_match_demand(
297297
298298 # Run scipy optimization with highs solver
299299 adapter = ScipyAdapter .factory (
300- costs = costs ,
300+ capacity_costs = costs ,
301301 constraints = constraints ,
302302 commodities = commodities ,
303303 timeslice_level = timeslice_level ,
You can’t perform that action at this time.
0 commit comments