Solar magnetic fields are closely related to various physical phenomena on the Sun, which can be extrapolated with different models from photospheric magnetograms. However, the open flux problem (OFP), the underestimation of the magnetic field derived from the extrapolated model, is still unsolved. To minimize the impact of the OFP, we propose three evaluation parameters to quantitatively evaluate magnetic field models and determine the optimal free parameters in the models by constraining the coronal magnetic fields and the interplanetary magnetic fields (IMFs) with real observations. Although the OFP still exists, we find that magnetic field lines traced from the coronal models effectively capture the intricate topological configurations observed in the corona, including streamers and plumes. The OFP is lessened by using the Helioseismic and Magnetic Imager synoptic map instead of the Global Oscillation Network Group daily synoptic maps, and the potential field source surface + potential field current sheet (PFSS+PFCS) model instead of the current sheet source surface (CSSS) model. For Carrington Rotation 2231 at the solar minimum, we suggest that the optimal parameters for the PFSS+PFCS model are R ss = 2.2–2.5 R ☉ and R scs = 10.5–14.0 R ☉, as well as for the CSSS model, are R cs = 2.0–2.4 R ☉, R ss = 11.0–14.7 R ☉, and a = 1.0 R ☉. Despite the IMFs at 1 au being consistent with the measurements by artificially increasing the polar magnetic fields, the IMFs near the Sun are still underestimated. The OFP might be advanced by improving the accuracy of both the weak magnetic fields and polar magnetic fields, especially considering magnetic activities arising from interplanetary physical processes.