public FullSolution(double[] a, double[] b, double[] l, Solution solutionWithoutChange, double persentOfChange, Solution solutionWithChange) { A = OutputTransform.VectorTransform(a, "\t"); B = OutputTransform.VectorTransform(b, "\t"); L = OutputTransform.VectorTransform(l, "\t"); SolutionWithoutChange = solutionWithoutChange; PersentOfChange = OutputTransform.ValueTransform(persentOfChange); SolutionWithChange = solutionWithChange; }
public Solution(double[] optimalX, double functionValue, double[] alpha, double[] alphaChanged, double[][] cs, double[] fsForX, double[][] xs, double[] fsForXs, double[] deltas, double[] ys, double[] distances, int columns) { OptimalX = OutputTransform.MatrixTransform(optimalX, columns); FunctionValue = OutputTransform.ValueTransform(functionValue); Alpha = OutputTransform.VectorTransform(alpha, "\t"); AlphaChanged = OutputTransform.VectorTransform(alphaChanged, "\t"); Cs = OutputTransform.ArrayMatrixTransform(cs, columns); FsForX = OutputTransform.ArrayValuesTransform(fsForX); Xs = OutputTransform.ArrayMatrixTransform(xs, columns); FsForXs = OutputTransform.ArrayValuesTransform(fsForXs); Deltas = OutputTransform.ArrayValuesTransform(deltas); Ys = OutputTransform.ArrayValuesTransform(ys); Distances = OutputTransform.ArrayValuesTransform(distances); N = columns; }