get_master_dr_degree
(function from pyomo.contrib.pyros.master_problem_methods)
- pyomo.contrib.pyros.master_problem_methods.get_master_dr_degree(master_data)[source]
Determine DR polynomial degree to enforce based on the iteration number.
Currently, the degree is set to:
0 if iteration number is 0
min(1, config.decision_rule_order) if iteration number otherwise does not exceed number of uncertain parameters
min(2, config.decision_rule_order) otherwise.
- Parameters:
master_data (MasterProblemData) – Master problem data.
- Returns:
DR order, or polynomial degree, to enforce.
- Return type: