File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343 )
4444
4545 callback = (nlp, solver, stats) -> begin
46- # Check that everything is well computed
47- @test all (solver. mν∇fk + solver.∇fk/ stats. solver_specific[:sigma_cauchy ] .≤ eps (eltype (solver. mν∇fk)))
48- # TODO : add a few tests here.
49-
46+ # We could add some tests here as well.
47+
5048 # Check user status
5149 if stats. iter == 4
5250 stats. status = :user
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ function test_solver(
4141 @test stats_optimized. status == expected_status
4242 @test obj (reg_nlp, stats_optimized. solution) == stats_optimized. objective
4343 @test stats_optimized. objective <= obj (reg_nlp, x0)
44+ @test all (solver. mν∇fk + solver.∇fk/ stats_optimized. solver_specific[:sigma_cauchy ] .≤ eps (eltype (solver. mν∇fk)))
4445
4546 # TODO : test that the optimized entries in stats_optimized and stats_basic are the same.
4647
You can’t perform that action at this time.
0 commit comments