Modeling of the Vela complex including the Vela supernova remnant, the binary system γ2 Velorum, and the Gum nebula