(function from pyomo.contrib.sensitivity_toolbox.sens)
pyomo.contrib.sensitivity_toolbox.sens
This function returns the line number that contains ‘target’ in the file_name. This function identifies constraints that have variables in theta_names.
file_name (string) – file includes the variable order (i.e. col file)
target (string) – variable name to check
count – line number of target in the file
int
Exception – When file does not include target