import math


def cost(a,b,c,e,f,p_min,p):
    """cost: fuel cost based on "standard" parameters
    (with valve-point loading effect)
    """
    return a + b*p + c*p*p + abs(e*math.sin(f*(p_min-p)))