A method for constructing a 
superconducting magnet for 
magnetic resonance imaging, including: determining a 
superconducting wire material, a running current and a feasible current-carrying zone; dividing the feasible current-carrying zone into a plurality of rectangular grids, 
rounding off rectangular grids at the boundary, adjusting the boundary of the feasible current-carrying zone, and acquiring the number of the rectangular grids in the feasible current-carrying zone; with the centre of a 
magnet as an origin, establishing a coordinate 
system to obtain the space coordinate of the centre of each rectangular grid; with the minimal wire consumption as an optimization goal, and the 
field intensity of the centre, the 
magnetic field uniformity and the stray field as constraint conditions, 
programming the feasible current-carrying zone with a linear 
integer programming algorithm to obtain each concentrated distribution area of an initial wire of the 
magnet; according to the degree of influence of each concentrated distribution area on the 
magnetic field uniformity, and according to the degree of influence on the 
magnetic field uniformity in descending order, with the minimal wire consumption as the optimization goal, and the 
field intensity of the centre, the magnetic 
field uniformity and the stray field as the constraint conditions, rectangularizing each concentrated distribution area with the linear 
integer programming algorithm; and acquiring the parameters of a 
superconducting magnet coil.