public void Matrix_DecompositionByCornerPoint_Success( Matrix matrix, int[] cornerPoint, Decomposition expected) { var dut = matrix.DecompositionByCornerPoint(cornerPoint); CollectionAssert.AreEqual(expected.BasicVariables, dut.BasicVariables); CollectionAssert.AreEqual(expected.FreeVariables, dut.FreeVariables); CollectionAssert.AreEqual(expected.Coefficients, dut.Coefficients); }
public SimplexMethodSolver(ObjectiveFunction objectiveFunction, Matrix augmentedConstraintList, IEnumerable<int> cornerPoint = null, ILogger logger = null, ILogger loggerForArtBasic = null, UserChoice userChoice = null, UserChoice userChoiceForArtBasic = null, bool isDecimalFractions = false) { _objectiveFunction = objectiveFunction; _augmentedConstraintList = augmentedConstraintList; _logger = logger; _loggerForArtBasic = loggerForArtBasic; _userChoice = userChoice; _userChoiceForArtBasic = userChoiceForArtBasic; _isDecimalFractions = isDecimalFractions; _cornerPoint = cornerPoint as IReadOnlyList<int>; }