sonarfix: Remove transient keyword from non-Serializable class
This commit is contained in:
parent
6969438fda
commit
6ea87d0adc
|
@ -59,7 +59,7 @@ import org.apache.commons.math4.legacy.core.MathArrays;
|
||||||
*/
|
*/
|
||||||
public class DerivativeStructure implements RealFieldElement<DerivativeStructure> {
|
public class DerivativeStructure implements RealFieldElement<DerivativeStructure> {
|
||||||
/** Compiler for the current dimensions. */
|
/** Compiler for the current dimensions. */
|
||||||
private transient DSCompiler compiler;
|
private DSCompiler compiler;
|
||||||
|
|
||||||
/** Combined array holding all values. */
|
/** Combined array holding all values. */
|
||||||
private final double[] data;
|
private final double[] data;
|
||||||
|
|
|
@ -41,7 +41,7 @@ import org.apache.commons.math4.legacy.linear.RealVector;
|
||||||
*/
|
*/
|
||||||
public class LinearConstraint {
|
public class LinearConstraint {
|
||||||
/** Coefficients of the constraint (left hand side). */
|
/** Coefficients of the constraint (left hand side). */
|
||||||
private final transient RealVector coefficients;
|
private final RealVector coefficients;
|
||||||
/** Relationship between left and right hand sides {@code (=, <=, >=)}. */
|
/** Relationship between left and right hand sides {@code (=, <=, >=)}. */
|
||||||
private final Relationship relationship;
|
private final Relationship relationship;
|
||||||
/** Value of the constraint (right hand side). */
|
/** Value of the constraint (right hand side). */
|
||||||
|
|
|
@ -37,7 +37,7 @@ public class LinearObjectiveFunction
|
||||||
implements MultivariateFunction,
|
implements MultivariateFunction,
|
||||||
OptimizationData {
|
OptimizationData {
|
||||||
/** Coefficients of the linear equation (c<sub>i</sub>). */
|
/** Coefficients of the linear equation (c<sub>i</sub>). */
|
||||||
private final transient RealVector coefficients;
|
private final RealVector coefficients;
|
||||||
/** Constant term of the linear equation. */
|
/** Constant term of the linear equation. */
|
||||||
private final double constantTerm;
|
private final double constantTerm;
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ class SimplexTableau {
|
||||||
private final List<String> columnLabels = new ArrayList<>();
|
private final List<String> columnLabels = new ArrayList<>();
|
||||||
|
|
||||||
/** Simple tableau. */
|
/** Simple tableau. */
|
||||||
private transient Array2DRowRealMatrix tableau;
|
private Array2DRowRealMatrix tableau;
|
||||||
|
|
||||||
/** Number of decision variables. */
|
/** Number of decision variables. */
|
||||||
private final int numDecisionVariables;
|
private final int numDecisionVariables;
|
||||||
|
|
Loading…
Reference in New Issue