From 6ad57be439ec1cc8ed1a122f932d214133a66b1a Mon Sep 17 00:00:00 2001 From: ktehranchi Date: Fri, 27 Sep 2024 15:53:41 -0700 Subject: [PATCH] update pmax pwl --- src/r2x/parser/parser_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r2x/parser/parser_helpers.py b/src/r2x/parser/parser_helpers.py index caba5b7e..6897dffa 100644 --- a/src/r2x/parser/parser_helpers.py +++ b/src/r2x/parser/parser_helpers.py @@ -206,7 +206,7 @@ def construct_pwl_from_quadtratic(fn, mapped_records, num_tranches=6): b = fn.proportional_term c = fn.constant_term x_min = mapped_records["min_rated_capacity"].magnitude - x_max = mapped_records["rating"].magnitude + x_max = mapped_records["active_power_limits_max"].magnitude # Use evenly spaced X values for the tranches # Future iteration should accept custom X values for Bid Cost Markup