Skip to content

Commit d4cc65f

Browse files
committed
Allow negative generic policy targets
1 parent eb567f1 commit d4cc65f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

gridpath/system/policy/generic_policy/generic_policy_requirements.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Unless required by applicable law or agreed to in writing, software
1111
# distributed under the License is distributed on an "AS IS" BASIS,
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
13+
# See the License for the gitspecific language governing permissions and
1414
# limitations under the License.
1515

1616
"""
@@ -20,7 +20,7 @@
2020
import csv
2121
import os.path
2222

23-
from pyomo.environ import Set, Param, NonNegativeReals, Expression, value, Any
23+
from pyomo.environ import Set, Param, Reals, NonNegativeReals, Expression, value, Any
2424

2525
from gridpath.auxiliary.db_interface import directories_to_db_values
2626
from gridpath.common_functions import create_results_df
@@ -55,7 +55,7 @@ def add_model_components(
5555

5656
# Target specified as a scalar
5757
m.policy_requirement = Param(
58-
m.POLICIES_ZONE_BLN_TYPE_HRZS_WITH_REQ, within=NonNegativeReals, default=0
58+
m.POLICIES_ZONE_BLN_TYPE_HRZS_WITH_REQ, within=Reals, default=0
5959
)
6060

6161
# Target specified as a function of load

0 commit comments

Comments
 (0)