I’m not sure I understand your question exactly, but the placement of generators in your system is defined in the case file. You can create your own case file by copying one of the existing ones (like case9.m) and editing it with data from your own system.
Ray > On Sep 7, 2018, at 2:07 AM, amir ali Hosseini <tpmhosse...@gmail.com> wrote: > > Hello > may name is amir ali .I am student . I like work with MATPOWER tool . > because MATPOWER is faster simulation in the MATLAB. > my subject study is : > Distributed generation planning .and use TLBO , PSO algorithm for answers > Optimization . > ok ! > so tow variables 1- where must be generation on the buses( place of > generator) > 2- how many product energy (capacity of generator) > I have tow scope 1- the network parameters be better than last. > 2-The who's have power plane ( DG ,PV, Wind, etc ) have Max benefit > so I do this > I study TLBO and PSO .then give ones exercise of them. > > In the MATPOWER ues > > The create M-file flow the below > > clc; > clear; > close all; > %% Power flow case9 IEEE > mpc = loadcase('case9');% case load on the mpc > results = runopf(mpc);% Optimiz power flow & put result on result metrix > I need know! , where put a generator on the which place ? > > Can you Help me ?! > > Thanks a lot .! >