void BUS_show(Bus* bus, int t) { printf("bus %d\t%d\t%d\t%d\t%d\t%d\t%d\n", BUS_get_number(bus), BUS_is_slack(bus), BUS_is_regulated_by_gen(bus), BUS_get_num_gens(bus), BUS_get_num_reg_gens(bus), BUS_get_num_loads(bus), BUS_get_num_shunts(bus)); }
void GEN_show(Gen* gen) { printf("gen %d\t%d\n",BUS_get_number(gen->bus),BUS_get_number(gen->reg_bus)); }