コード例 #1
0
ファイル: test_run.py プロジェクト: sylviatos/OpenEMPIRE
dict_countries = {"DE": "Germany", "DK": "Denmark", "FR": "France"}

print('++++++++')
print('+EMPIRE+')
print('++++++++')
print('Solver: ' + solver)
print('Scenario Generation: ' + str(scenariogeneration))
print('++++++++')
print('ID: ' + name)
print('++++++++')

if scenariogeneration:
    generate_random_scenario(filepath=scenario_data_path,
                             tab_file_path=tab_file_path,
                             scenarios=NoOfScenarios,
                             seasons=regular_seasons,
                             Periods=NoOfPeriods,
                             regularSeasonHours=lengthRegSeason,
                             peakSeasonHours=lengthPeakSeason,
                             dict_countries=dict_countries)

generate_tab_files(filepath=workbook_path,
                   tab_file_path=tab_file_path,
                   scenariogeneration=scenariogeneration)

run_empire(name=name,
           tab_file_path=tab_file_path,
           result_file_path=result_file_path,
           scenariogeneration=scenariogeneration,
           scenario_data_path=scenario_data_path,
           solver=solver,
           temp_dir=temp_dir,
コード例 #2
0
print('++++++++')
print('+EMPIRE+')
print('++++++++')
print('Solver: ' + solver)
print('Scenario Generation: ' + str(scenariogeneration))
print('++++++++')
print('ID: ' + name)
print('++++++++')

if scenariogeneration:
    generate_random_scenario(filepath=scenario_data_path,
                             tab_file_path=tab_file_path,
                             scenarios=NoOfScenarios,
                             seasons=regular_seasons,
                             Periods=len(Period),
                             regularSeasonHours=lengthRegSeason,
                             peakSeasonHours=lengthPeakSeason,
                             dict_countries=dict_countries,
                             time_format=time_format,
                             fix_sample=fix_sample)

generate_tab_files(filepath=workbook_path, tab_file_path=tab_file_path)

run_empire(name=name,
           tab_file_path=tab_file_path,
           result_file_path=result_file_path,
           scenariogeneration=scenariogeneration,
           scenario_data_path=scenario_data_path,
           solver=solver,
           temp_dir=temp_dir,
           FirstHoursOfRegSeason=FirstHoursOfRegSeason,