'Cigar test objective function'

def cigar(self, x, rot=0, cond=1000000.0):

    if rot:
        x = rotate(x)
    x = ([x] if np.isscalar(x[0]) else x)
    f = [((x[0] ** 2) + (cond * sum((x[1:] ** 2)))) for x in x]
    return (f if (len(f) > 1) else f[0])
