General financial equilibrium modeling with policy interventions and transaction costs