Example #1
0
    def __init__(self, numerical_circuit: OpfSnapshotCircuit, solver: MIPSolvers = MIPSolvers.CBC):
        """
        DC time series linear optimal power flow
        :param numerical_circuit: NumericalCircuit instance
        """
        Opf.__init__(self, numerical_circuit=numerical_circuit, solver=solver)

        # build the formulation
        self.problem = self.formulate()
Example #2
0
    def __init__(self, numerical_circuit: StaticSnapshotInputs):
        """
        DC time series linear optimal power flow
        :param numerical_circuit: NumericalCircuit instance
        """
        Opf.__init__(self, numerical_circuit=numerical_circuit)

        # build the formulation
        self.problem = None
Example #3
0
 def __init__(self,
              numerical_circuit,
              solver_type: MIPSolvers = MIPSolvers.CBC):
     """
     DC time series linear optimal power flow
     :param numerical_circuit: NumericalCircuit instance
     """
     Opf.__init__(self,
                  numerical_circuit=numerical_circuit,
                  solver_type=solver_type)
Example #4
0
    def __init__(self, numerical_circuit: SnapshotOpfData, area_from_bus_idx, area_to_bus_idx,
                 solver_type: MIPSolvers = MIPSolvers.CBC):
        """
        DC time series linear optimal power flow
        :param numerical_circuit: NumericalCircuit instance
        """
        self.area_from_bus_idx = area_from_bus_idx

        self.area_to_bus_idx = area_to_bus_idx

        # this builds the formulation right away
        Opf.__init__(self, numerical_circuit=numerical_circuit, solver_type=solver_type)
Example #5
0
    def __init__(self, numerical_circuit: NumericalCircuit):
        """
        DC time series linear optimal power flow
        :param numerical_circuit: NumericalCircuit instance
        """
        Opf.__init__(self, numerical_circuit=numerical_circuit)

        self.v0 = None
        self.dva = None
        self.dvm = None
        self.Ql = None

        # build the formulation
        self.problem = self.formulate()
Example #6
0
    def __init__(self, numerical_circuit: StaticSnapshotInputs, solver: MIPSolvers = MIPSolvers.CBC):
        """
        DC time series linear optimal power flow
        :param numerical_circuit: NumericalCircuit instance
        """
        Opf.__init__(self, numerical_circuit=numerical_circuit, solver=solver)

        self.v0 = None
        self.dva = None
        self.dvm = None
        self.Ql = None

        # build the formulation
        self.problem = self.formulate()
Example #7
0
    def __init__(self,
                 numerical_circuit: SnapshotOpfData,
                 solver_type: MIPSolvers = MIPSolvers.CBC):
        """
        DC time series linear optimal power flow
        :param numerical_circuit: NumericalCircuit instance
        """
        Opf.__init__(self,
                     numerical_circuit=numerical_circuit,
                     solver_type=solver_type)

        self.v0 = None
        self.dva = None
        self.dvm = None
        self.Ql = None