// Path: src/main/java/de/jannlab/optimization/exception/IterativeMethodException.java
// public class IterativeMethodException extends JANNLabException {
//     private static final long serialVersionUID = -4578796617966258713L;
// 
//     
//     public IterativeMethodException(
//         final String msg
//     ) {
//         super(msg);
//     }
// 
//     public IterativeMethodException(
//         final String msg,
//         final Throwable cause
//     ) {
//         super(msg, cause);
//     }
// 
//     
//     public IterativeMethodException() {};
// 
// 
// }
// 
// Path: src/main/java/de/jannlab/optimization/exception/NoObjective.java
// public class NoObjective extends OptimizerException {
//     private static final long serialVersionUID = -3687981706725406116L;
// 
//     public NoObjective() {
//         super("no objective given.");
//     }
//     
// }
// 
// Path: src/main/java/de/jannlab/optimization/exception/RequiresDifferentiableObjective.java
// public class RequiresDifferentiableObjective extends IterativeMethodException {
//     private static final long serialVersionUID = -4578796617966258713L;
// 
//     public RequiresDifferentiableObjective() {
//         super("differentiable objective required.");
//     }
// 
// }


import de.jannlab.optimization.exception.IterativeMethodException;
import de.jannlab.optimization.exception.NoObjective;
import de.jannlab.optimization.exception.RequiresDifferentiableObjective;
/*******************************************************************************
 * JANNLab Neural Network Framework for Java
 * Copyright (C) 2012-2013 Sebastian Otte
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/

package de.jannlab.optimization;


public abstract class OptimizerBase<I extends Optimizer<I>> 
    extends IterativeMethodBase<I> implements Optimizer<I> {
    //
    public static final String KEY_PARAMS = "parameters";
    //
    private Objective objective;
    
    private int parameters;
    
    public void setParameters(final int parameters) {
        this.parameters = parameters;
    }
    
    public int getParameters() {
// Path: src/main/java/de/jannlab/optimization/exception/IterativeMethodException.java
// public class IterativeMethodException extends JANNLabException {
//     private static final long serialVersionUID = -4578796617966258713L;
// 
//     
//     public IterativeMethodException(
//         final String msg
//     ) {
//         super(msg);
//     }
// 
//     public IterativeMethodException(
//         final String msg,
//         final Throwable cause
//     ) {
//         super(msg, cause);
//     }
// 
//     
//     public IterativeMethodException() {};
// 
// 
// }
// 
// Path: src/main/java/de/jannlab/optimization/exception/NoObjective.java
// public class NoObjective extends OptimizerException {
//     private static final long serialVersionUID = -3687981706725406116L;
// 
//     public NoObjective() {
//         super("no objective given.");
//     }
//     
// }
// 
// Path: src/main/java/de/jannlab/optimization/exception/RequiresDifferentiableObjective.java
// public class RequiresDifferentiableObjective extends IterativeMethodException {
//     private static final long serialVersionUID = -4578796617966258713L;
// 
//     public RequiresDifferentiableObjective() {
//         super("differentiable objective required.");
//     }
// 
// }


// Path: src/main/java/de/jannlab/optimization/OptimizerBase.java
import de.jannlab.optimization.exception.IterativeMethodException;
import de.jannlab.optimization.exception.NoObjective;
import de.jannlab.optimization.exception.RequiresDifferentiableObjective;

/*******************************************************************************
 * JANNLab Neural Network Framework for Java
 * Copyright (C) 2012-2013 Sebastian Otte
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/

package de.jannlab.optimization;


public abstract class OptimizerBase<I extends Optimizer<I>> 
    extends IterativeMethodBase<I> implements Optimizer<I> {
    //
    public static final String KEY_PARAMS = "parameters";
    //
    private Objective objective;
    
    private int parameters;
    
    public void setParameters(final int parameters) {
        this.parameters = parameters;
    }
    
    public int getParameters() {
        return this.parameters;