Classes | |
class | Optimizer |
Functions | |
def | run_scenario (optimizer, bmult, lock) |
Variables | |
sys | sys_dir = sys.argv[1] if len(sys.argv) > 1 else None |
Optimizer | optimizer = Optimizer(sys_dir) |
list | bmult_list = [0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3] |
Lock | lock = Lock() |
Thread | t = Thread(target=run_scenario, args=(optimizer, bmult, lock)) |
Function Documentation
◆ run_scenario()
def transport14.run_scenario | ( | optimizer, | |
bmult, | |||
lock | |||
) |
Definition at line 89 of file transport14.py.
89 def run_scenario(optimizer, bmult, lock):
90 obj = optimizer.solve(bmult, lock)
91 lock.acquire()
92 print(f"Scenario bmult={bmult}, Obj:{obj}")
93 lock.release()
94
Variable Documentation
◆ bmult_list
list transport14.bmult_list = [0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3] |
Definition at line 86 of file transport14.py.
◆ lock
Lock transport14.lock = Lock() |
Definition at line 87 of file transport14.py.
◆ optimizer
Definition at line 85 of file transport14.py.
◆ sys_dir
sys transport14.sys_dir = sys.argv[1] if len(sys.argv) > 1 else None |
Definition at line 84 of file transport14.py.
◆ t
Thread transport14.t = Thread(target=run_scenario, args=(optimizer, bmult, lock)) |
Definition at line 96 of file transport14.py.