def build(self):
     self._power_system_object = power_system.PowerSystem(
         self._raw_file, self._dyr_file)
     if self._channel_file == "":
         self._channel_file = "channels\\" + str(hex(
             randrange(1000000000))) + ".out"
     self._channels = channel_utils.Channels(self._channel_file,
                                             self._channels_to_include,
                                             self._power_system_object)
     return DynamicSimulation(self._disturbance, self._control_object,
                              self._end_time, self._num_iterations,
                              self._channels, self._plot,
                              self._power_system_object,
                              self._suppress_output, self._export_to_matlab,
                              self._export_figures)
예제 #2
0
 def build_system(self):
     return power_system.PowerSystem(self.build_buses(), self.build_lines())
def main():
    power_system_object = power_system.PowerSystem(
        "case39_pevs_everywhere.raw", "normal_case39.dyr")

    visualize(power_system_object, "no_control.out", "with_batterires.out")
예제 #4
0
 def build_system(self):
     """Builds a power system."""
     return power_system.PowerSystem(self.build_buses(), self.build_lines())