Suppose we are given the experimental data of one pair of strain and stress measurement of a specimen, and we are tasked to infer the bulk and shear modulus of the material.
Let us define the loss function as the distance between the stress prediction and the stress measurement, i.e.
The material parameters, and , can then be "inferred" by minimizing the loss function
Calibration
The following Python script uses the simple gradient descent algorithm to find and :
which iterates until the loss function is sufficiently small. A constant learning rate is chosen in this example.