In this study, we present the magnetic configuration of an erupting pseudostreamer observed on 2015 April 19, on the southwest limb of the Sun, with a prominence cavity embedded inside. The eruption resulted in a partial halo coronal mass ejection. The prominence eruption begins with a slow rise and then evolves to a fast-rise phase. We analyze this erupting pseudostreamer using the flux-rope insertion method and magnetofrictional relaxation to establish a sequence of plausible out-of-equilibrium magnetic configurations. This approach allows the direct incorporation of observations of structures seen in the corona (filament and cavity) to appropriately model the pseudostreamer based on SDO/HMI line-of-sight photospheric magnetograms. We also perform a topological analysis in order to determine the location of quasiseparatrix layers (QSLs) in the models, producing Q-maps to examine how the QSL locations progress in the higher iterations. We found that the axial flux in our best-fit unstable model was a factor of 20 times higher than we found in our marginally stable case. We computed the average magnetic field strength of the prominence and found that the unstable model exhibits twice the average field strength of the stable model. The eruption height from our modeling matches very well with the prominence eruption height measured from the AIA observation. The Q-maps derived from the model reproduce structures observed in LASCO/C2. Thus, the modeling and topological analysis results are fully consistent with the observed morphological features, implying that we have captured the large magnetic structure of the erupting filament in our magnetofrictional simulation.