We have performed first-principles calculations considering different patte
rns of oxygen/vacancy ordering in the Cu-O chains of YBa2Cu3O7-x. From the
total-energy values we determine the effective interactions of the oxygen a
toms within the basal plane by using the cluster expansion technique. Furth
ermore, we discuss the effect of ordering to the density of states at the F
ermi level.