0db048f831da3152d2f3575fd98590c7a46f3909,scipy/optimize/tests/test_minpack.py,TestRootHybr,test_pressure_network_with_gradient,#TestRootHybr#,145

Before Change


        k = np.ones(4) * 0.5
        Qtot = 4
        initial_guess = array([2., 0., 2., 0.])
        final_flows = optimize.root(pressure_network, initial_guess,
                                    args=(Qtot, k), method="hybr",
                                    jac=pressure_network_jacobian)
        assert_array_almost_equal(final_flows, np.ones(4))

    def test_pressure_network_with_gradient_combined(self):
        root/hybr with gradient and function combined, equal pipes -> equal flows

After Change


        k = np.ones(4) * 0.5
        Qtot = 4
        initial_guess = array([2., 0., 2., 0.])
        final_flows = optimize.root(pressure_network, initial_guess,
                                    args=(Qtot, k), method="hybr",
                                    jac=pressure_network_jacobian).x
        assert_array_almost_equal(final_flows, np.ones(4))

    def test_pressure_network_with_gradient_combined(self):
        root/hybr with gradient and function combined, equal pipes -> equal flows
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: 0db048f831da3152d2f3575fd98590c7a46f3909
Time: 2012-05-16
Author: denis@laxalde.org
File Name: scipy/optimize/tests/test_minpack.py
Class Name: TestRootHybr
Method Name: test_pressure_network_with_gradient


Project Name: scipy/scipy
Commit Name: 0db048f831da3152d2f3575fd98590c7a46f3909
Time: 2012-05-16
Author: denis@laxalde.org
File Name: scipy/optimize/tests/test_minpack.py
Class Name: TestRootLM
Method Name: test_pressure_network_no_gradient


Project Name: scipy/scipy
Commit Name: 0db048f831da3152d2f3575fd98590c7a46f3909
Time: 2012-05-16
Author: denis@laxalde.org
File Name: scipy/optimize/tests/test_minpack.py
Class Name: TestRootHybr
Method Name: test_pressure_network_with_gradient_combined


Project Name: scipy/scipy
Commit Name: 0db048f831da3152d2f3575fd98590c7a46f3909
Time: 2012-05-16
Author: denis@laxalde.org
File Name: scipy/optimize/tests/test_minpack.py
Class Name: TestRootHybr
Method Name: test_pressure_network_no_gradient