/*
 * jcobyla
 *
 * The MIT License
 *
 * Copyright (c) 2012 Anders Gustafsson, Cureos AB.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 * 
 * Remarks:
 * 
 * The original Fortran 77 version of this code was by Michael Powell
 * (M.J.D.Powell @ damtp.cam.ac.uk). The Fortran 90 version was by Alan Miller
 * (Alan.Miller @ vic.cmis.csiro.au). Latest revision - 30 October 1998
 */
package de.xypron.jcobyla;

/**
 * Interface for calculation of objective function and constraints in COBYLA2
 * optimization.
 *
 * @author Anders Gustafsson, Cureos AB.
 */
public interface Calcfc {

    /**
     * The objective and constraints function evaluation method used in COBYLA2
     * minimization.
     *
     * @param n Number of variables.
     * @param m Number of constraints.
     * @param x Variable values to be employed in function and constraints
     * calculation.
     * @param con Calculated function values of the constraints.
     * @return Calculated objective function value.
     */
    double compute(int n, int m, double[] x, double[] con);
}

@@ -1,11 +1,10 @@
 /*
-%0D
 %0A * jcob
@@ -6,21 +6,19 @@
  jcobyla
-%0D
 %0A *
-%0D
 %0A * The 
@@ -28,21 +28,19 @@
  License
-%0D
 %0A *
-%0D
 %0A * Copy
@@ -83,21 +83,19 @@
 reos AB.
-%0D
 %0A *
-%0D
 %0A * Perm
@@ -166,17 +166,16 @@
 g a copy
-%0D
 %0A * of t
@@ -247,17 +247,16 @@
  to deal
-%0D
 %0A * in t
@@ -327,17 +327,16 @@
 e rights
-%0D
 %0A * to u
@@ -404,17 +404,16 @@
 /or sell
-%0D
 %0A * copi
@@ -477,17 +477,16 @@
 tware is
-%0D
 %0A * furn
@@ -537,21 +537,19 @@
 ditions:
-%0D
 %0A *
-%0D
 %0A * The 
@@ -618,17 +618,16 @@
 luded in
-%0D
 %0A * all 
@@ -673,21 +673,19 @@
 oftware.
-%0D
 %0A *
-%0D
 %0A * THE 
@@ -754,17 +754,16 @@
 PRESS OR
-%0D
 %0A * IMPL
@@ -830,17 +830,16 @@
 ABILITY,
-%0D
 %0A * FITN
@@ -905,25 +905,24 @@
 NT SHALL THE
-%0D
 %0A * AUTHORS 
@@ -983,17 +983,16 @@
 OR OTHER
-%0D
 %0A * LIAB
@@ -1064,17 +1064,16 @@
 NG FROM,
-%0D
 %0A * OUT 
@@ -1145,17 +1145,16 @@
 S IN THE
-%0D
 %0A * SOFT
@@ -1158,22 +1158,19 @@
 OFTWARE.
-%0D
 %0A *
- %0D
 %0A * Rema
@@ -1177,14 +1177,11 @@
 rks:
-%0D
 %0A *
- %0D
 %0A * 
@@ -1246,17 +1246,16 @@
 l Powell
-%0D
 %0A * (M.J
@@ -1325,17 +1325,16 @@
 n Miller
-%0D
 %0A * (Ala
@@ -1397,22 +1397,20 @@
 ber 1998
-%0D
 %0A */
-%0D
 %0Apackage
@@ -1432,16 +1432,13 @@
 yla;
-%0D%0A%0D
+%0A
 %0A/**
-%0D
 %0A * 
@@ -1511,17 +1511,16 @@
  COBYLA2
-%0D
 %0A * opti
@@ -1532,13 +1532,11 @@
 ion.
-%0D
 %0A *
-%0D
 %0A * 
@@ -1576,14 +1576,12 @@
  AB.
-%0D
 %0A */
-%0D
 %0Apub
@@ -1606,19 +1606,17 @@
 fc %7B
-%0D%0A%0D
+%0A
 %0A    /**
 %0D%0A  
@@ -1611,17 +1611,16 @@
 %0A    /**
-%0D
 %0A     * 
@@ -1691,17 +1691,16 @@
  COBYLA2
-%0D
 %0A     * 
@@ -1716,17 +1716,15 @@
 ion.
-%0D
 %0A     *
-%0D
 %0A   
@@ -1756,17 +1756,16 @@
 riables.
-%0D
 %0A     * 
@@ -1787,33 +1787,32 @@
  of constraints.
-%0D
 %0A     * @param x
@@ -1870,17 +1870,16 @@
 straints
-%0D
 %0A     * 
@@ -1890,17 +1890,16 @@
 ulation.
-%0D
 %0A     * 
@@ -1955,17 +1955,16 @@
 traints.
-%0D
 %0A     * 
@@ -2011,17 +2011,16 @@
 lue.
-%0D
 %0A     */
 %0D%0A  
@@ -2015,17 +2015,16 @@
 %0A     */
-%0D
 %0A    dou
@@ -2079,9 +2079,7 @@
 on);
-%0D
 %0A%7D
-%0D
 %0A

remove trailing whitespace