From 325c3faf046949996180812b9686d994e8eea088 Mon Sep 17 00:00:00 2001 From: jarchambault Date: Wed, 11 Dec 2024 12:18:52 +0100 Subject: [PATCH] Delete useless class for knitro stopping criteria Signed-off-by: jarchambault --- pom.xml | 2 +- .../DefaultKnitroSolverStoppingCriteria.java | 29 ------------------- .../solver/KnitroLoadFlowParameters.java | 14 +++++---- .../knitro/solver/KnitroSolver.java | 3 +- .../knitro/solver/KnitroSolverFactory.java | 8 ++--- .../knitro/solver/KnitroSolverParameters.java | 25 ++++++++-------- .../solver/KnitroSolverStoppingCriteria.java | 17 ----------- 7 files changed, 26 insertions(+), 72 deletions(-) delete mode 100644 src/main/java/com/powsybl/openloadflow/knitro/solver/DefaultKnitroSolverStoppingCriteria.java delete mode 100644 src/main/java/com/powsybl/openloadflow/knitro/solver/KnitroSolverStoppingCriteria.java diff --git a/pom.xml b/pom.xml index 497fb04..a7d1b2b 100644 --- a/pom.xml +++ b/pom.xml @@ -45,7 +45,7 @@ 17 6.6.0-RC1 1.14.0-SNAPSHOT - 14.1.0 + 14.0.0 0.7.0 diff --git a/src/main/java/com/powsybl/openloadflow/knitro/solver/DefaultKnitroSolverStoppingCriteria.java b/src/main/java/com/powsybl/openloadflow/knitro/solver/DefaultKnitroSolverStoppingCriteria.java deleted file mode 100644 index 930382f..0000000 --- a/src/main/java/com/powsybl/openloadflow/knitro/solver/DefaultKnitroSolverStoppingCriteria.java +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Copyright (c) 2024, Artelys (http://www.artelys.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.knitro.solver; - -/** - * @author Jeanne Archambault {@literal } - */ -public class DefaultKnitroSolverStoppingCriteria implements KnitroSolverStoppingCriteria { - - public final double convEpsPerEq; - - public DefaultKnitroSolverStoppingCriteria() { - this(KnitroSolverStoppingCriteria.DEFAULT_CONV_EPS_PER_EQ); - } - - public DefaultKnitroSolverStoppingCriteria(double convEpsPerEq) { - this.convEpsPerEq = convEpsPerEq; - } - - public double getConvEpsPerEq() { - return convEpsPerEq; - } - -} diff --git a/src/main/java/com/powsybl/openloadflow/knitro/solver/KnitroLoadFlowParameters.java b/src/main/java/com/powsybl/openloadflow/knitro/solver/KnitroLoadFlowParameters.java index 3d666e4..03e90c6 100644 --- a/src/main/java/com/powsybl/openloadflow/knitro/solver/KnitroLoadFlowParameters.java +++ b/src/main/java/com/powsybl/openloadflow/knitro/solver/KnitroLoadFlowParameters.java @@ -21,8 +21,7 @@ public class KnitroLoadFlowParameters extends AbstractExtension