StochasticSampleSolver¶
-
class passengersim.rm.linear_program.StochasticSampleSolver(carrier: str, num_samples=
5, debug=False)[source]¶ Bases:
LpBaseTesting a sample-based LP solver. The x variables correspond to each sample The y variables are the actual (nested) controls We have constraints so that the x variables nest in the y variables Based on [Kleywegt 2002]
Methods
__init__(carrier[, num_samples, debug])initialize(sim)solve(sim)test_status(status)update(eng)Attributes
- carrier¶
- num_samples¶
- set_bp¶
- debug¶
- solver¶
- objective¶
- lp_vars¶
- constraints¶