#NEWLINE# def test_SolveUsingSimplex_SSQABS_2D( self ) : #NEWLINE# #INDENT# coefficientsShouldBe = numpy . array ( [ ( - 8.01913562 ) , 1.52644729 ] ) #NEWLINE# model = pyeq2 . Models_2D . Polynomial . Linear ( 'SSQABS' ) #NEWLINE# model . estimatedCoefficients = numpy . array ( [ 1.0 , 1.0 ] ) #NEWLINE# pyeq2 . dataConvertorService ( ) . ConvertAndSortColumnarASCII ( DataForUnitTests . asciiDataInColumns_2D , model , False ) #NEWLINE# coefficients = pyeq2 . solverService ( ) . SolveUsingSimplex ( model ) #NEWLINE# self . assertTrue ( numpy . allclose ( coefficients , coefficientsShouldBe , rtol = 1e-06 , atol = 1e-300 ) )