allagash.problem module
Problem
- class allagash.problem.Problem(pulp_problem, coverages, problem_type)
A representation of the linear programming problem that can be solved. This is not intended to be created on it’s own but rather from one of the factory methods
lscp()
ormclp()
Problem.lscp(coverage) Problem.lscp([coverage1, coverage2])
- Parameters:
- classmethod bclp(coverages, max_supply)
Creates a new
Problem
object representing the Backup Covering Location Problem
- classmethod lscp(coverages)
Creates a new
Problem
object representing the Location Covering Set Problem
- classmethod mclp(coverages, max_supply)
Creates a new
Problem
object representing the Maximum Covering Location Problem
- selected_demand(coverage)
Gets the list of the demand locations that were selected when the optimization problem was solved.
- selected_supply(coverage, operation=<built-in function eq>, value=1)
Gets the list of the supply locations that were selected when the optimization problem was solved.
- Parameters:
- Returns:
The list of location ids of the selected locations
- Return type: