示例#1
0
文件: bus.c 项目: entriken/PFNET
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));
}
示例#2
0
文件: gen.c 项目: ChenchenYo/PFNET
void GEN_show(Gen* gen) {
  printf("gen %d\t%d\n",BUS_get_number(gen->bus),BUS_get_number(gen->reg_bus));
}