Confinement-deconfinement Transitions In A Model of Interacting Dislocations