## Power Flow Optimization

How to dispatch electric power
system variables in order to minimize an operation criteria, while
attending load and feasibility.
*file: * ordinary power flow -
pf4.txt
*file: * active/reactive optimal power flow -
opf4.txt
*file: * active nonlinear optimal power flow -
aopf4.txt
*file: * simple active linear optimal power flow -
dcopf.txt
*file: * active linear optimal power flow with loss representation -
dcopf2.txt
*file: * active linear optimal power flow with loss representation
and branch flow constraints -
dcopf4.txt
*file: * reactive nonlinear optimal power flow -
ropf4.txt

Each AMPL model above needs two data files, a ".bus" file and a ".branch" file.
Each ".bus" file has a corresponding ".branch" file with the same prefix.
There are multiple data sets one can choose:
After selecting and downloading an AMPL model file and two corresponding AMPL
data files, you need to edit the model file so that it includes the correct
data files.
The active dispatche models generate out.bus and out.branch files, that can
be read by ropf4.mod in order to take their active dispatch to make
the reactive dispatch.