Skip to content

Commit

Permalink
Rename build_params() function to build_common_params()
Browse files Browse the repository at this point in the history
  • Loading branch information
tarnold17 committed Sep 20, 2024
1 parent d1d9be9 commit ca56569
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@
from pyomo.core.base.constraint import simple_constraint_rule

from pyomo.common.config import ConfigBlock, ConfigValue, In, Bool
from enum import Enum

from pareto.utilities.units_support import units_setup
from pareto.utilities.build_utils import build_sets, build_params
from pareto.utilities.build_utils import build_sets, build_common_params
from pareto.utilities.enums import (
ProdTank,
WaterQuality,
Expand Down Expand Up @@ -108,7 +107,7 @@ def create_model(df_sets, df_parameters, default={}):
build_sets(model)

# Build parameters #
build_params(model)
build_common_params(model)

model.p_LLT = Param(
model.s_L,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
model_infeasibility_detection,
)
from pareto.utilities.units_support import units_setup
from pareto.utilities.build_utils import build_sets, build_params
from pareto.utilities.build_utils import build_sets, build_common_params
from pareto.utilities.enums import (
Objectives,
PipelineCapacity,
Expand Down Expand Up @@ -251,7 +251,7 @@ def create_model(df_sets, df_parameters, default={}):
build_sets(model)

# Build parameters #
build_params(model)
build_common_params(model)

model.p_chi_OutsideCompletionsPad = Param(
model.s_CP,
Expand Down
2 changes: 1 addition & 1 deletion pareto/utilities/build_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def build_sets(model):
)


def build_params(model):
def build_common_params(model):
"""Build parameters common to operational and strategic models."""

# Define dictionaries used to build arc Params
Expand Down

0 comments on commit ca56569

Please sign in to comment.