count_free_variables

(函数来自 pyomo.contrib.viewer.report)

pyomo.contrib.viewer.report.count_free_variables(blk)[source]

计算在活动等式约束中的自由变量。忽略不等式,因为这用于自由度计算。