#NEWLINE# def test_minimize_tnc45( self ) : #NEWLINE# #INDENT# ( x0 , bnds ) = ( ( [ 2 ] * 5 ) , [ ( 0 , 1 ) , ( 0 , 2 ) , ( 0 , 3 ) , ( 0 , 4 ) , ( 0 , 5 ) ] ) #NEWLINE# xopt = [ 1 , 2 , 3 , 4 , 5 ] #NEWLINE# x = optimize . minimize ( self . f45 , x0 , method = 'TNC' , jac = self . g45 , bounds = bnds , options = self . opts ) . x #NEWLINE# assert_allclose ( self . f45 ( x ) , self . f45 ( xopt ) , atol = 1e-08 )