public void Should_CalculateCorrectly_When_TwoSamplePharmaciesAndProducersAreGiven() { //given ISimplexData data = SetupTwoPharmaciesAndProducers(); _algorithm.SetData(data); //when _algorithm.Compute(); //than ValidateExtremeAndVariables( _algorithm.GetCalculatedExtreme(), _algorithm.GetComputedVariables(), 82425, new double[] { 450, 450, 0, 240 }); }
public void Setup() { _data = new SimplexData(); }
public SimplexAlgorithm(ISimplexData data) => _table = data.CreateSetOfSimplexData();