Ejemplo n.º 1
0
 def _run_simulator(self):
     os.chdir(self.test_case_path)
     options = {**base_options}
     options['data_path'] = 'deterministic_with_network_scenarios_csv'
     options[
         'output_directory'] = 'deterministic_with_network_simulation_output_python_csv'
     options['input_format'] = 'rts-gmlc'
     Prescient().simulate(**options)
Ejemplo n.º 2
0
    def _run_simulator(self):
        """Runs the simulator for the test data set."""
        old_cwd = os.getcwd()
        os.chdir(self.test_case_path)

        simulator_config_filename = self.simulator_config_filename
        Prescient().simulate(config_file=simulator_config_filename)

        os.chdir(old_cwd)
Ejemplo n.º 3
0
    def _run_simulator(self):
        options = {**base_options}
        options['output_directory'] = 'custom_data_provider_output'
        options['data_provider'] = os.path.join(self.this_file_path,
                                                'custom_data_provider.py')
        options['data_path'] = 'custom_data.json'

        os.chdir(self.test_case_path)
        Prescient().simulate(**options)
Ejemplo n.º 4
0
    def _run_simulator(self):
        import custom_data_provider
        options = {**base_options}
        options['output_directory'] = 'custom_data_provider_output'
        options['data_provider'] = custom_data_provider
        options['data_path'] = 'custom_data.json'

        os.chdir(self.test_cases_path)
        Prescient().simulate(**options)
Ejemplo n.º 5
0
 def _run_simulator(self):
     os.chdir(self.test_case_path)
     options = {**base_options}
     options['data_path'] = 'deterministic_with_network_scenarios'
     options[
         'output_directory'] = 'deterministic_with_network_simulation_output_python'
     options['plugin'] = {
         'test': {
             'module': 'test_plugin.py',
             'print_callback_message': True
         }
     }
     Prescient().simulate(**options)
Ejemplo n.º 6
0
    def run_simulator(self, prescient_options: PrescientOptions) -> None:
        from prescient.simulator import Prescient

        sim = Prescient()
        sim.simulate(**prescient_options)
Ejemplo n.º 7
0
 def _run_simulator(self):
     os.chdir(self.test_case_path)
     options = {'config_file': self.simulator_config_filename}
     Prescient().simulate(**options)
# set some options
prescient_options = {
    "data_path": "./5bus/",
    "input_format": "rts-gmlc",
    "simulate_out_of_sample": True,
    "run_sced_with_persistent_forecast_errors": True,
    "output_directory": "5bus_output",
    "start_date": "07-10-2020",
    "num_days": 7,
    "sced_horizon": 1,
    "ruc_mipgap": 0.01,
    "reserve_factor": 0.1,
    "deterministic_ruc_solver": "cbc",
    "deterministic_ruc_solver_options": {
        "feas": "off",
        "DivingF": "on",
    },
    "sced_solver": "cbc",
    "sced_frequency_minutes": 5,
    "ruc_horizon": 36,
    "compute_market_settlements": True,
    "monitor_all_contingencies": True,
    "output_solver_logs": False,
    "price_threshold": 1000,
    "contingency_price_threshold": 100,
    "reserve_price_threshold": 5,
}
# run the simulator
Prescient().simulate(**prescient_options)