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: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
parent
757d9e4331
commit
02a66f29fe
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue