cashocs.verification#

Taylor tests for verifying gradient correctness.

Functions

compute_convergence_rates(epsilons, residuals)

Computes the convergence rate of the Taylor test.

control_gradient_test(ocp[, u, h, rng])

Performs a Taylor test to verify that the computed gradient is correct.

shape_gradient_test(sop[, h, rng])

Performs a Taylor test to verify that the computed shape gradient is correct.