Open yunpangfloetteroed opened 5 years ago
The related Codes in the duaIterate.py
argParser.add_argument("--cost-modifier", dest="costmodifier", choices=['grohnde', 'isar', 'None'],
default='None', help="Whether to modify link travel costs of the given routes")
def getweightfilename(options, step, prefix):
if options.costmodifier != 'None':
prefix = options.costmodifier + "" + prefix
return get_dumpfilename(options, step, prefix)
if options.costmodifier != 'None':
pyPath = os.path.abspath(os.path.dirname(sys.argv[0]))
sys.path.append(os.path.join(pyPath, "..", "..", "..", "..", "..", "tools", "kkwSim"))
from kkwCostModifier import costModifier
print('Use the cost modifier for KKW simulation')
if options.costmodifier != 'None':
currentDir = os.getcwd()
costModifier(get_weightfilename(options, step, "dump"), step, "dump",
options.aggregation, currentDir, options.costmodifier, 'dua-iterate')
Background:
Todo: