def cost(x, array, y):
    c = tf.cast(circuit(tf.constant(0.111), array, tf.constant(4.5)), tf.float32)
    return (((c + (0.5 * array[(0, 0)])) + x) - (0.4 * y))
def cost(x, array, y):
    c = tf.cast(circuit(tf.constant(0.111), array, tf.constant(4.5)), tf.float32)
    return (((c + (0.5 * array[(0, 0)])) + x) - (0.4 * y))