com.powsybl.openloadflow.ac.solver.AbstractAcSolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powsybl-open-loadflow Show documentation
Show all versions of powsybl-open-loadflow Show documentation
An open source loadflow based on PowSyBl
The newest version!
/**
* Copyright (c) 2023, RTE (http://www.rte-france.com)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
* SPDX-License-Identifier: MPL-2.0
*/
package com.powsybl.openloadflow.ac.solver;
import com.powsybl.openloadflow.ac.equations.AcEquationType;
import com.powsybl.openloadflow.ac.equations.AcVariableType;
import com.powsybl.openloadflow.equations.EquationSystem;
import com.powsybl.openloadflow.equations.EquationVector;
import com.powsybl.openloadflow.equations.JacobianMatrix;
import com.powsybl.openloadflow.equations.TargetVector;
import com.powsybl.openloadflow.network.LfNetwork;
import java.util.Objects;
/**
* @author Geoffroy Jamgotchian {@literal }
*/
public abstract class AbstractAcSolver implements AcSolver {
protected final LfNetwork network;
protected final EquationSystem equationSystem;
protected final JacobianMatrix j;
protected final TargetVector targetVector;
protected final EquationVector equationVector;
protected boolean detailedReport;
protected AbstractAcSolver(LfNetwork network,
EquationSystem equationSystem,
JacobianMatrix j,
TargetVector targetVector,
EquationVector equationVector,
boolean detailedReport) {
this.network = Objects.requireNonNull(network);
this.equationSystem = Objects.requireNonNull(equationSystem);
this.j = Objects.requireNonNull(j);
this.targetVector = Objects.requireNonNull(targetVector);
this.equationVector = Objects.requireNonNull(equationVector);
this.detailedReport = detailedReport;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy