def lambda_compliance(disp_vector, load_vector, function):
    """ Calculates the lambda parameter of the compliance function.

    Args:
        disp_vector (:obj:`numpy.array`): Displacement vector.
        load_vector (:obj:`numpy.array`): Force vector.
        function (:obj:`float`): Function value.

    Returns:
        Lambda parameter solution.
    """
    lam = (disp_vector.conjugate()@load_vector)/function
    return lam