pub fn write_mpc<W: Write>( w: W, case: &Case, bus: &[Bus], gen: &[Gen], branch: &[Branch], gencost: &[GenCost], dcline: &[DCLine], ) -> Result<W>