/** * Creates a new instance of AbstractParameterCostMinimizer * @param costFunction * Cost function that computes the cost of the object to optimize * @param maxIterations * Maximum number of iterations before stopping * @param tolerance * Stopping criterion for the algorithm, typically ~1e-5 */ public AbstractParameterCostMinimizer( CostFunctionType costFunction, int maxIterations, double tolerance ) { super( maxIterations ); this.setCostFunction( costFunction ); this.setTolerance( tolerance ); this.setResultCost( null ); }
public NamedValue<Double> getPerformance() { return new DefaultNamedValue<Double>( ObjectUtil.getShortClassName( this.getCostFunction() ), this.getResultCost() ); }
public NamedValue<Double> getPerformance() { return new DefaultNamedValue<Double>( ObjectUtil.getShortClassName( this.getCostFunction() ), this.getResultCost() ); }
/** * Creates a new instance of AbstractParameterCostMinimizer * @param costFunction * Cost function that computes the cost of the object to optimize * @param maxIterations * Maximum number of iterations before stopping * @param tolerance * Stopping criterion for the algorithm, typically ~1e-5 */ public AbstractParameterCostMinimizer( CostFunctionType costFunction, int maxIterations, double tolerance ) { super( maxIterations ); this.setCostFunction( costFunction ); this.setTolerance( tolerance ); this.setResultCost( null ); }
public NamedValue<Double> getPerformance() { return new DefaultNamedValue<Double>( ObjectUtil.getShortClassName( this.getCostFunction() ), this.getResultCost() ); }
/** * Creates a new instance of AbstractParameterCostMinimizer * @param costFunction * Cost function that computes the cost of the object to optimize * @param maxIterations * Maximum number of iterations before stopping * @param tolerance * Stopping criterion for the algorithm, typically ~1e-5 */ public AbstractParameterCostMinimizer( CostFunctionType costFunction, int maxIterations, double tolerance ) { super( maxIterations ); this.setCostFunction( costFunction ); this.setTolerance( tolerance ); this.setResultCost( null ); }