Kaydet (Commit) aa7908cd authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Andras Timar

tdf#43388: add missing info for Evolutionary Algorithm Solver

Add SolverConstraintOperator.INTEGER_value case and in the same time
the also missing SolverConstraintOperator.BINARY_value case

Change-Id: I18b826e74a2381dedaea3090919118b8d5dad072
Reviewed-on: https://gerrit.libreoffice.org/56359
Tested-by: Jenkins
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
(cherry picked from commit 02a66f29)
Reviewed-on: https://gerrit.libreoffice.org/56435Reviewed-by: 's avatarMichael Stahl <Michael.Stahl@cib.de>
(cherry picked from commit 12e092b4)
üst e81d65e6
......@@ -105,6 +105,12 @@ public abstract class BaseEvolutionarySolver extends BaseNLPSolver {
case SolverConstraintOperator.LESS_EQUAL_value:
setDefaultYAt(i + 1, BasicBound.MINDOUBLE, constraint.Data);
break;
case SolverConstraintOperator.INTEGER_value:
setDefaultYAt(i + 1, BasicBound.MINDOUBLE, BasicBound.MAXDOUBLE);
break;
case SolverConstraintOperator.BINARY_value:
setDefaultYAt(i + 1, 0, 1);
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment