MPC TS Documentation

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

MPC-TS routine Documentation

This document includes some descriptions about the structure and how to start the
program.
1. Notes
This part of code is well tested under Matlab R2011b. It is noted that there
will be some issues with Matlab R2009a when using the Matlab Parallel
Computing Toolbox to perform parallel computing
As of 04/18/2012, this code is tested for the two-area and the WECC system
without any problem. However, it is not tested on other test cases
As of 04/18/2012, this code is only applicable to under frequency load
shedding problem. However, it can be easily extended to other problems.
The choice of those MPC parameters would have great impacts on the
performance of the program. For more information about this part of work,
please refer to Chapter 9 of my dissertation
NO GUI is available for this part of code.
About the flowchart of this code, please refer to my dissertation for more
information
Be careful with the jump condition when calculating the bus frequency using
numerical methods. This will cause errors to your results.
2. Getting started
This part of work requires two pieces of codes:
- psat-2.1.6-mpc_bus
- remote_routine_No_Global
The first one is the primary codes of this MPC-TS method. The second one is mainly
about trajectory sensitivity calculations and used to perform TS calculations in
parallel.
To enable the Matlab PCT, after starting the Matlab, type
matlabpool open
It will automatically determine the availability of cores in your computer and start those
available cores accordingly.
Then change the work directory of Matlab to the folder where the MPC-TS code
is located.
Write a script to start the mpc-ts program. Two sample scripts are available as
examples to create a workable script. These two sample scripts are:
mpc_test_wecc .m and mpc_test_2area.m, which are located under the folder of
psat-2.1.6-mpc_bus/psat. Detailed description about this script has been
provided in the script files, please read the comments in those files very carefully.
Please note that you need to specify the path of the folder Remote_routine_No_Global
in this script in order to run the TS calculations.
Also, this script requires you create a MPC parameter file which should be assigned to TS.
MPC_paraFile. For more information about this file, please check the two sample files:
MPC_paraFile.m and MPC_paraFile_2area.m.

Run the new script you just wrote, then you should be able to run the program. At
the beginning, try to play with different MPC parameter settings to see how these
parameters impact the whole program.

You might also like