bump product version to 4.1.6.2
[LibreOffice.git] / nlpsolver / ThirdParty / EvolutionarySolver / src / net / adaptivebox / problem / UnconstrainedProblemEncoder.java
blobc06db87d83b7b3e05ba9eb7f821219c3638f57ac
1 /**
2 * Description: For unconstrained function
4 * @ Author Create/Modi Note
5 * Xiaofeng Xie Dec 28, 2001
6 * Xiaofeng Xie Mar 02, 2003
7 * Xiaofeng Xie May 11, 2004
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * Please acknowledge the author(s) if you use this code in any way.
21 * @version 1.0
22 * @Since MAOS1.0
25 package net.adaptivebox.problem;
27 import net.adaptivebox.global.*;
29 public abstract class UnconstrainedProblemEncoder extends ProblemEncoder {
30 protected UnconstrainedProblemEncoder(int NX) throws Exception {
31 super(NX, 1);
32 setDefaultYAt(0, BasicBound.MINDOUBLE, BasicBound.MINDOUBLE);
35 protected double calcTargetAt(int index, double[] VX) {
36 return calcTarget(VX);
38 abstract public double calcTarget(double[] VX);