// ======================================================================================================================= // Class name: TDVariationalCalculus // // Description: // // Copyright (c) 2010 Deltares // // Date ID Modification // 2010-02-10 Sel Created // 2010-02-11 Sel Distinguished InvalidResult between GA and LM; Extended role of bounds // 2010-05-20 Sel Finetuned use of GA in general // ======================================================================================================================= using Deltares.Mathematics; namespace Deltares.Stability.Calculation2.Levenberg { public interface IFittingCalculation { double[] ComputeFittingResult(double[] parameters); } public abstract class VariationalCalculus { public TBounds[] BoundsPtr { get; set; } public int DefaultBoundsMin { get; set; } public int DefaultBoundsInc { get; set; } public double InvalidResult { get; set; } public abstract void Calculation(); public TBounds GetBounds(int genomeIndex) { return BoundsPtr[genomeIndex]; } public void SetBounds(int genomeIndex, TBounds value) { BoundsPtr[genomeIndex] = value; } } }