eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.54k stars 1.43k forks source link

check and merge the kkw simulation into SUMO's mainline #5594

Open yunpangfloetteroed opened 5 years ago

yunpangfloetteroed commented 5 years ago

Background:

Todo:

yunpangfloetteroed commented 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')