├── LICENSE ├── README.md ├── StarGenLite_SCUC.gms ├── StarGenLite_SCUC.gpr └── StarGenLite_SCUC.xlsm /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Diego Alejandro Tejada Arango 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Security Constrained Unit Commitment Using Line Outage Distribution Factors 2 | 3 | - [Description](#description) 4 | - [Citation](#citation) 5 | - [Contact](#contact) 6 | - [Files](#files) 7 | - [How to Run the Model](#how-to-run-the-model) 8 | - [Input Data](#input-data) 9 | - [Output Results](#output-results) 10 | - [License](#license) 11 | 12 | ## Description 13 | Security-constrained unit commitment (SCUC) problem is one of the necessary tools for system operators to make operational planning and real-time operation. The internalization of transmission network and security constraints (e.g., N-1 criterion) could lead to different decisions in the generation dispatch. However, the computational burden of this problem is challenging mainly due to its inherent large problem size. This model proposes an N-1 security constrained formulation based on the line outage distribution factors (LODF) instead of the one based on injection sensitivity factors (ISF). Additionally, an iterative methodology for filtering the active N-1 congestion constraints is used. The computational efficiency of the proposed model is shown by solving the SCUC of the IEEE 118 bus system. 14 | 15 | The model is documented in: 16 | [D. A. Tejada-Arango, P. Sánchez-Martın and A. Ramos, "Security Constrained Unit Commitment Using Line Outage Distribution Factors," in IEEE Transactions on Power Systems, vol. 33, no. 1, pp. 329-337, Jan. 2018. 17 | doi: 10.1109/TPWRS.2017.2686701](http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=7886335&isnumber=8231802) 18 | 19 | The entire model is coded in [GAMS](https://www.gams.com/) and solved with [GUROBI](http://www.gurobi.com/). 20 | 21 | ## Citation 22 | Whenever you use this code, please refer to: 23 | 24 | [D. A. Tejada-Arango, P. Sánchez-Martın and A. Ramos, "Security Constrained Unit Commitment Using Line Outage Distribution Factors," in IEEE Transactions on Power Systems, vol. 33, no. 1, pp. 329-337, Jan. 2018. 25 | doi: 10.1109/TPWRS.2017.2686701](http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=7886335&isnumber=8231802) 26 | 27 | ## Contact 28 | Diego Alejandro Tejada-Arango, Universidad Pontificia Comillas, dtejada@comillas.edu 29 | 30 | ## Files 31 | * StarGenLite_SCUC.xlsm **Microsoft Excel interface** with IEEE 118 bus system information 32 | * StarGenLite_SCUC.gms has the GAMS code 33 | * StarGenLite_SCUC.gpr has the GAMS project 34 | 35 | ## How to Run the Model 36 | There are two possible ways to run the model. 37 | 38 | 1. _From the Microsoft Excel interface_: Click on the Run button. A command window will appear showing the problem being solved. After the execution click on the Load results button and the output results will be loaded in the corresponding worksheets of the Excel interface. 39 | 2. _GAMSIDE Application_: Open GAMS, create a new project in the directory where you have put the SCUC files and then open **StarGenLite_SCUC.gms**. The user parameter user1 has to be defined in the options window with the name of the Excel interface, e.g., **user1="StarGenLite_SCUC.xlsm"**. In both modes a Microsoft Excel workbook named **tmp.xlsx** that is read the Excel interface clicking the Load results button. Besides the Microsoft Excel interface, an additional file is written after the execution. It is the GAMS listing, **StarGenLite_SCUC.lst**. This file may display execution errors and always have to be checked to look for them. 40 | 41 | ## Input Data 42 | Input data are located in named ranges contained in green worksheets of the Microsoft Excel interface. The user can introduce or delete input data but the named ranges have to be kept. To avoid errors, it is advisable to insert/delete rows or columns between the first and the last ones, i.e., in any intermediate row or column. In order to ease the introduction of data the interface follows this coloring code: 43 | * blue is reserved for comments, 44 | * black for headings of rows or columns and 45 | * green for data introduced by the user. 46 | The light green cells can be modified by the user. It is suggested that the other ones are not modified. 47 | Some cells have conditional format to help in detecting inconsistencies in input data. 48 | The writing criteria follow the GAMS syntaxes. For example, the * in the first column indicates a comment. 49 | 50 | ## Output Results 51 | The output results are in salmon worksheets of the Microsoft Excel interface. 52 | 53 | ## License 54 | [License file](../master/LICENSE) 55 | -------------------------------------------------------------------------------- /StarGenLite_SCUC.gms: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datejada/SCUC-using-LODF/882eb1abbf88cdd7e2f9dc32395939a3e383e124/StarGenLite_SCUC.gms -------------------------------------------------------------------------------- /StarGenLite_SCUC.gpr: -------------------------------------------------------------------------------- 1 | [PROJECT] 2 | 3 | [RP:ZBUS_XM-COMILLAS_V3] 4 | 1= 5 | 6 | [GDXDISP: iic Set 3] 7 | PlaneDim=0 8 | RowDim=3 9 | Squeeze=1 10 | SqTrail0=0 11 | Order=1,2,3 12 | Decim=7 13 | PlaneRownr=-1 14 | 15 | [GDXDISP: pPTDF Par 4] 16 | PlaneDim=0 17 | RowDim=4 18 | Squeeze=1 19 | SqTrail0=0 20 | Order=1,2,3,4 21 | Decim=7 22 | PlaneRownr=-1 23 | 24 | [GDXDISP: is Set 1] 25 | PlaneDim=0 26 | RowDim=1 27 | Squeeze=1 28 | SqTrail0=0 29 | Order=1 30 | Decim=7 31 | PlaneRownr=-1 32 | 33 | [GDXDISP: pPmax Par 3] 34 | PlaneDim=0 35 | RowDim=3 36 | Squeeze=1 37 | SqTrail0=0 38 | Order=1,2,3 39 | Decim=7 40 | PlaneRownr=-1 41 | 42 | [GDXDISP: iic Set 4] 43 | PlaneDim=0 44 | RowDim=4 45 | Squeeze=1 46 | SqTrail0=0 47 | Order=1,2,3,4 48 | Decim=7 49 | PlaneRownr=-1 50 | 51 | [GDXDISP: pLSF Par 5] 52 | PlaneDim=0 53 | RowDim=5 54 | Squeeze=1 55 | SqTrail0=0 56 | Order=1,2,3,4,5 57 | Decim=7 58 | PlaneRownr=-1 59 | 60 | [GDXDISP: pPctmax Par 3] 61 | PlaneDim=0 62 | RowDim=3 63 | Squeeze=1 64 | SqTrail0=0 65 | Order=1,2,3 66 | Decim=7 67 | PlaneRownr=-1 68 | 69 | [GDXDISP: pISF Par 4] 70 | PlaneDim=0 71 | RowDim=4 72 | Squeeze=1 73 | SqTrail0=0 74 | Order=1,2,3,4 75 | Decim=7 76 | PlaneRownr=-1 77 | 78 | [RP:ZBUS_XM-COMILLAS_V5] 79 | 1= 80 | 81 | [RP:MPES_XM-COMILLAS_V16] 82 | 1= 83 | 84 | [RP:TRANSPORTATIONMODEL] 85 | 1= 86 | 87 | [RP:CLEARLAKEDAM_SCENARIOTREE] 88 | 1= 89 | 90 | [RP:FUNCTION] 91 | 1= 92 | 93 | [RP:STARGENLITE_SDUC_V6] 94 | 1= 95 | 96 | [RP:STORAGEANDNETWORK_V2.0] 97 | 1= 98 | 99 | [RP:STARGENLITE_SDUC] 100 | 1=user1=StarGenLite_SDUC 101 | 2= 102 | 103 | [RP:ZBUS_SDUC] 104 | 1= 105 | 106 | [RP:STARGENLITE_SCUC] 107 | 1=user1=StarGenLite_SCUC 108 | 109 | [MRUFILES] 110 | 1=C:\Users\dtejada\OneDrive - Universidad Pontificia Comillas\ProyectoXM-ACUC\02_GAMS-Model\StarGenLite_SCUC-DCOPF\StarGenLite_SCUC.lst 111 | 2=C:\Users\dtejada\OneDrive - Universidad Pontificia Comillas\ProyectoXM-ACUC\02_GAMS-Model\StarGenLite_SCUC-DCOPF\StarGenLite_SCUC.gms 112 | 3=C:\Users\dtejada\OneDrive - Universidad Pontificia Comillas\ProyectoXM-ACUC\02_GAMS-Model\StarGenLite_SCUC-DC\Zbus_SDUC.gms 113 | 4=C:\Users\DIEGO\Dropbox (Personal)\Modelo_DO\IEEE118_177ContGUROBI-BalNodo\StarGenLite_SDUC.gms 114 | 5=C:\Users\DIEGO\Dropbox (Personal)\Modelo_DO\IEEE118_177ContGUROBI-Opt1e-2\StarGenLite_SDUC.gms 115 | 6=C:\Users\DIEGO\Dropbox (Personal)\Modelo_LODF_Losses\StorageAndNetwork_v2.0.lst 116 | 7=C:\Users\DIEGO\Dropbox (Personal)\Modelo_EstadosYRed_14Barras_2\StorageAndNetwork_v2.0.gms 117 | 8=C:\Users\dtejada\Dropbox (Personal)\Modelo_LODF_Losses_V1\StarGenLite_SDUC_V6.lst 118 | 119 | [OPENWINDOW_1] 120 | FILE0=D:\IIT\06_XM-UC_ACOPF\StarGenLite_SCUC-DCOPF\StarGenLite_SCUC.gms 121 | FILE1=D:\IIT\06_XM-UC_ACOPF\StarGenLite_SCUC-DCOPF\StarGenLite_SCUC.lst 122 | FILE2=D:\IIT\06_XM-UC_ACOPF\StarGenLite_SCUC-DCOPF\StarGenLite_SCUC.lst 123 | MAXIM=0 124 | TOP=7 125 | LEFT=5 126 | HEIGHT=400 127 | WIDTH=579 128 | -------------------------------------------------------------------------------- /StarGenLite_SCUC.xlsm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datejada/SCUC-using-LODF/882eb1abbf88cdd7e2f9dc32395939a3e383e124/StarGenLite_SCUC.xlsm --------------------------------------------------------------------------------