Home

An USER'S GUIDE

image

Contents

1. 746 50R00302 3752 22R00402 469 77R00502 164703 28B03502 10 505 14B04502 109581 31A00103 140648 88 00203 62767 29A01 703 29046 67A01803 27955 45A401 903 2115 38R00103 29 99R00203 676 45R00303 3360 43R00403 gt 4797 of days season in a Thu 02 Oct 2003 22 51 10 Figure 4 4 5 3l Al xl Choose Output Filename From Cplex Lindo NE Save in 5 Local Disk 3 ex ea Personal13 nk10 op Anula CPersonali4 nk1S op ARRPEEC PROJECT Results n nk2095 op Chang Ngoc Softwares an nk30 op Econo CI Tam an nkS op Final utilities soft Gabrial_back_up Work11 IRP manual Work12 Part TRP nk op File name zi is Save as type Optimal Files My N etwork pe fo 122077 65A00102 B8855 08A01702 32287 21A01802 No of hours 3112657401902 block ofthe 2350 53500102 811 96R00202 746 50R00302 3752 22R00402 469 77R00502 164703 28B03502 107606 14804502 109581 31A00103 140648 88A00203 62767 29A01703 29046 67 401803 2795545401903 2115 38R00103 729 99R00203 676 45R00303 3360 43R00403 zi 4r nnraa Thu 02 Oct 2003 22 59 49 Figure 4 4 6 Choose Executable File Cplex Lindo Look in Local Disk Eg Personali3 C Personali Results
2. Click the selection box OK to carry out running Cplex of course the Cplex environment should be activated in advance by running Cplex license file in the ILOG directory before After clicking the selection box OK the model will be switched into the Dos mode for Cplex running For activating activities of Cplex license available before running the IRP model please refer the section of Familiar with Cplex software or the notification below Notification In case you do not have the IRP version that includes direct running Cplex in IRP you should do as following steps Access the hard drive that installed with CPLEX software suppose Cplex version 8 0 installed in Do activate the ilog license by running the license file as C ILOG ILM ilmd exe The following license activating procedure will be appeared gradually in a DOS mode display window refer Figure 4 4 10 Oct 4 22 16 07 0 ILOG License Manager v2 60 pid 1316 Oct 4 22 16 09 3 Using license file C ILOG ILM ACCESS ILM Oct 4 22 16 11 n TOKEN reservation period 0 sec Oct 4 22 16 13 c Licensed to asianinstitute thailand Oct 4 22 16 15 J Tokens for CPLEX on et218 1 1 pcwinnt Wait for a few minutes after this progress finished do start the Cplex application by running the cplex exe as C ILOG CPLEX80 BIN MS VC6 cplex exe Another DOS mode display window will be appeared that indicates the cplex application is ready for
3. File 2 5 2003 3 53 AM AMPL Size 2 19 MB a temp 1KB File 10 6 2003 12 26 PM H Bootable CD copro Attributes normal H Documents anc svcb cplex exe Oj x EI ILOG M moix L7 CONCERT PESE E 4 cplexso bin add constraints to the problem 3 solve using barrier algorithm 24 ms change the problem Ca exampl i display problem solution or parameter settings include enter a new problem a lib provide information on CPLEX commands i solve a mixed integer program ILM solve the problem using network method ViewsSO imi solve the problem i solve using the primal method xe i leave CPLEX OALDTS read problem or basis information from a file FH 7 Program Files set parameters j solve using the dual method bs public i write problem or solution info to a file w siseso execute a command from the operating system SOPHTEMP T Enter enough characters to uniquely identify commands amp options emp Commands be entered partially lt will prompt you for C3 unzipped further information or as a whole H WINDOWS l 9 Removable Disk D Removable Disk E H E Local Disk F amp Compact Disc G Control Panel amp 28 My Network Places al Recycle Bin Internet Explorer CPLEX gt Application Size 2 19 MB 2 19 MB My Computer Figure 4 5 4 3 Here are the problems or options related to optimization issues and setting avai
4. Startup Shutdown Hardware Profiles User Protiles General Performance Environment System Variables L amSpec SINN Tw ES Ssustemdzsemd exe ILOG LICENSE Fl CCSIEOGSILMSSCDCE S5 ILM NUMBER 1 05 windows MT Os2LibPath CW INA TWE S Ssystema2sos2 dll User Variables for Administrator ILEHDME C Nilogsbroke221 TEMP C ATEMP TMP Variable ILU LICENSE FILE Value EILOGNILM SALLESS ILIM Set Delete es Click on the Set button This will set a new System Variable e Under Windows 2000 you must be logged on as Administrator or have the appropriate privileges Open the Control Panel and double click on the System icon Click on the Advanced tab then on the Environment Variables button Create a new system variable and set it to C ILOG ILM ACCESS ILM Step 8 Check the License File To check that the license file has no syntax errors and that the variable ILOG LICENSE FILE is properly set call ILMCHECK from the directory where you have installed ILM by typing the following line C ILOG ILM ILMCHECK EXE This command should issue the message Checking license file C ILOG ILM ACCESS ILM License file C ILOG ILM ACCESS ILM is correct 50 Otherwise something is wrong with the license file or with the setting of ILOG LICENSE FILE Please read section Troubleshooting for help 4i The client station must have a copy of C ILOG ILM ACCESS ILM or
5. capacity limit of external supplier real MW GROUP DATA Thermal Plant Sites Data grptnam Name of Thermal Plant Site string grptc j Total capacity of Thermal Plant Site in year j real MW Hydro Plant Development Data grphnam Name of Hydro Project string DSM Group Data grpdnam Name of DSM Group string DPG Group Data grpdgnam Name of DPG Group string grpdc j Total capacity of DPG Plant Site in year j real MW 88
6. 10 The annual emission level of each pollutant from total generation system should not exceed the pre specified value of each year P Big Cy Na Oy S Ema for all t n nj Parameters and decision variables Parameters include Load forecast system and end use load shape at time t of planning period T Existing system existing power plants with salvage value of capital costs O amp M and fuel costs emission emitted factors for different technologies under service at time t of planning period T New projects or candidate power plants with capital investments and O amp M and fuel costs emission emitted factors for different technologies at time t of planning horizon T DSM options data Constraints reliability and plant fuel investment hydro energy availabilities and DSM emission target and so on Decision variables include Expansion planning schedule including mixes of optimal capacity and electricity generation mixes of fuel requirements Environmental implications in terms of global and local emissions Cost implications in terms of expansion capital cost O amp M cost fuel cost electricity pricing emission abatement costs environmental cost 3 How to install IRP package The IRP package uses for setting should comprise of three cabinet files of IRP one setup file and one LST file These are packaged from the program source code 11 Whenever you have sufficient those files in your
7. 3 1 Copying files process Integrated Resource Planning Analyses 12 137 My Computer The figure 3 2 then 1s appeared to welcome all users to installation progress for the s Integrated Resource Planning Analyses Setup 3 Integrated Resource Planning Welcome to the Integrated Resource Planning Analyses installation program Setup cannot install system Files or update shared Files if they are in use Before proceeding we recommend that you close any applications you may be running Exit Setup Figure 3 2 The Welcome Screen to IRP installation program Click OK button to start the installation process and following the instructions given on the screen to select the destination directory integrated Resource Planning Analyses Setup Y Integrated Resource Plar ining Analys x Begin the installation by clicking the button below i Click this button to install Integrated Resource Planning Analyses software to ij the specified destination directory Directory C Program Files Integrated Resource Planning Analyses Change Directory Exit Setup Figure 3 3 Selection of installed directory From here you can either select the default working directory for IRP program files or change into the other one in your computer To quit the setup press Exit button After 13 position the working directory click the icon located on the left top of the setting up screen to c
8. Emission Data Setting Annual Emission Limitation O Fuel Type Data Setting Annual Emission in Base Case Plant Type Data References of Emission Factor Data Existing Thermal Plan Data 906950 y Existing DPG Plant Data Existing Renewable Technology Plant Data Existing Hydro Plant Data Existing Pump Storage Plant Data 41 5218 45 9257 53 919 55 5009 56 1339 60 5796 55 7003 62 3667 73 p Candidate Thermal Plant Data Candidate DPG Plant Data Candidate Renewable Technology Plant Data Candidate Hydro Plant Data 24 Candidate Pump Storage Plant Data nual SO2 Emission Released in the Base case Unit k tons Demand Side Management Data Annual Loss Data 130 5148 132 8275 141 999 144 2983 144 3028 148 8918 135 5138 144 7371 158 No of I blocko External Supplier s Data load cu Group Data Input Data Undo Data Annual NOx Emission Released in the Base case Unit k tons seasor Analysis Result MIP Code File Chronological Load Curve es Total Discounted Cost in Base Case 13991 725 IRP Reading Lindo Cplex Data It takes time Please be patient Fri 17 Oct 2003 22 57 58 Figure 4 4 22 amp IRPA File Edit Forms Utilities Window Help m Basic Data Basic Data Optimal XM Emission Data Annual Expected CO2 Emission Limit Unit M tons Year 2017 2018 2019 2020 2021 2022 2023 2024 2025 Reduction Rate 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
9. Hydro 5x 5 Mw 9414 09 1126 83 8287 26 32500 00 2011 Khe 1x153 Mwv 45882 84 7688 79 38194 05 158400 00 2011 Dong Nai3 4 1x510 Mvv 180953 34 30323 15 150630 18 624700 00 2011 Buon Kuop 2x280 MVv 14830816 2485266 123455 51 512000 00 ANINA Tle samre ee I ee 700 130r Anne aad narn nA Ono nn Figure 4 4 18 4 4 1 Running a case with emission constraints 4 After running the base case you are now carrying out the case with emission constraints by following the steps below Stepl Open the base case that you have run yet before Step2 Select the output CPLEX file op by clicking the Optimal Output File button in the Basic Data form then choose the file Step3 Loading the base value of emission in the base case by accessing the menu Form Emission Data Setting Annual Emission in Base Case In the appeared new Emission Data you should press the two buttons of Reset Base Value then Set Base Value Finally the total emissions and annual emission will be loaded automatically in the Data Emission Form Step4 Setting the emission reduction targets by accessing the menu Form Emission Data Setting Annual Emission Limitation then put the value of emission reduction rate Press the button Emission target Step5 Coming back the Basic Data form then select the option Yes for Emission Constraint Step6 Run the case by following all the steps as you run
10. Softwares Tam Utilities soft Work11 Work12 Files of type Exe Files bat My Network P Open as read only 24 Jo 122077 65 00102 69855 08A01702 32287 21401802 Ho of hours 31126 57 01902 block of the 2350 53R00102 load curve 811 96R00202 746 50R00302 3752 22R00402 469 77R00502 164703 28B03502 107606 14B04502 109581 31 00103 140648 88 00203 62767 29A01703 29046 67401803 27955 45401903 2115 38R00103 729 99R00203 676 45R00303 3360 43R00403 4 Thu 02 Oct 2003 23 02 11 Figure 4 4 7 Click the selection box Open There is a Cplex setting form appear as Figure 4 4 9 with zero setting value You are required to put the setting value for Cplex running Upon various versions of Cplex we have different setting values for that Basically we can get the following setting as default setting in any case Set mip lim tre 300 this is as normal value you can change this value setting 22 Set mip int 500 this is as normal value you can change this value setting Set tol mipgap 0 001 you can change this value setting the less value setting the more accuracy result you will get from the Cplex software n the case we run with Lindo there no Lindo setting required like this and please refer section of Familiar with Cplex software for more understanding on the Cplex setting i xl Choose Executable File Cple
11. commands are found on the installation CD ROM of any ILOG product You need to install ILM using the procedure described in the CD ROM booklet 4 5 2 2 The ilmcheck Command Syntax ilmcheck v filename This command checks whether the license files given as arguments are correct Without arguments ilmcheck checks the default file C ILOG ILM ACCESS ILM or the files 22 specified by ILOG LICENSE FILE if this variable is defined The ilmcheck command detects syntax errors expired licenses duplicate lines incorrect hostids and so on With the v option ilmcheck prints the ILM version number and shows the checked licenses 4 5 2 3 The ihostid Command Syntax ihostid This command displays the current host s hostname hostid and hostid checksum warning The hostid of a machine changes when its hard disk is reformatted This invalidates any previous licenses If you reformat the hard disk of your machine you need to get its new hostid and contact ILOG to get new licenses for your products 4 5 2 4 The ilmd Command Syntax ilmd v filename This command runs the token server The token server must be running before any product using token keys The other types of keys do not require a token server The filename arguments specify the license files to use With no arguments ilmd uses the default file C ILOG ILM ACCESS ILM or the files specified by LICENSE FILE if this variable is defined The v option enable
12. does exist IRP software installed with same old version that already expired a If the notification of Time Error appears after the first trial run please do setup again the software in another computer or reformat your computer hard disk before do set up the software a This is not allowable to be run through a share folder directory in a local network 4 Familiar with the Integrated Resource Planning program 4 1 How can we start running the program Normally we install the IRP program in the directory of C Program filesMntegrated Resource Planning so we easily to start running it by accessing from the button Start in Windows and select Programs icon then move the pointer to the sub icon Integrated Resource Planning and choose the IRP icon as indicated in Figure 4 1 1 This progress can be addressed as the flowchart below Start button in the windows screen Programs Integrated Resource Planning IRP G Lacviet mtdEvA 300 gt AP acrobat Reader 5 1 E Internet Explorer Microsoft Access Microsoft Excel Microsoft FrontPage Microsoft Outlook Microsoft PowerPoint gt ntegrated Resource Plannin Y stet 4 E A ys Gypack Gytam na Simnbo ozsam Figure 4 1 1 How can we start the IRP model The activated screening frame of IRP program is shown in the Figure 4 1 2 You need to click the mouse on this for entering the main interface of t
13. for existing DPG plant in percentage normalized available load in block j of season 1 real normalized to maximum capacity Existing Hydro Plant Data Similar to existing thermal plants set of data 1s needed for each hydropower plant Please refer 4 6 Input Data Format Used In IRP Analysis Existing Pump Storage Plant Data Please refer 4 6 Input Data Format Used In IRP Analysis Candidate Thermal Plant Data Please refer 4 6 Input Data Format Used In IRP Analysis Candidate DPG Plant Data Please refer 4 6 Input Data Format Used In IRP Analysis Candidate Hydro Plant Data Please refer 4 6 Input Data Format Used In IRP Analysis Candidate Pump Storage Hydro Plant Data Please refer 4 6 Input Data Format Used In IRP Analysis Demand Side Management DSM Data Please refer 4 6 Input Data Format Used In IRP Analysis External Supper Data Please refer 4 6 Input Data Format Used In IRP Analysis Group Data Please refer 4 6 Input Data Format Used In IRP Analysis 24 Thermal Plant Sites Data Please refer 4 6 Input Data Format Used In IRP Analysis Hydro Plant Development Data Please refer 4 6 Input Data Format Used In IRP Analysis DPG Group Data Please refer 4 6 Input Data Format Used In IRP Analysis 4 3 Other utilities in the model We have 6 pull down menu on the task menu in the main IRP model screen including File Edit Form Utility Windows and Help menu
14. for more information common source of problems on Windows is that the directory CATEMP does not exist or 1s periodically emptied a invalid password XXX in file run ilmcheck The password XXX in the license file named file is incorrect One of the following cases then applies e The password has a typing error A typical mistake is to type a capital instead of zero Also remember that case is significant e Some information in the key does not match the password This information could be the expiration date the number of tokens the product name or version the site name etc Check the key in the license file against the original text provided by ILOG Also check that you are not using a RUNTIME key in a license file a invalid expiration date date in file run ilmcheck The expiration date in the license file named file is incorrect The date format is dd Mmm yyyy where Mmm is a three letter English abbreviation for the month a nolicense available The licensed product cannot be run because doing so would exceed the number of allowed simultaneous users To see the number of available tokens as well as tokens checked out reserved by users use the ilmlist command On Windows C ILOG ILM ILMLIST EXE a wrong hostid expected hostid1 found hostid2 run ihostid This error message occurs in two cases e When you try to start the token server ilmd on a host which is not the token server host sp
15. for the base case The result now is gained from the case with emission constraints with different emission targets Please refer figures below IRPA File Edit Forms Utilities Window Help ear ears 1998 2006 Es ees eee Emission Constraints No z Externality Cost No z Solver Type Cplex DSM Case No Restriction artin No of No Discount No of of T xu Seasons of Blocks Factor FuelT ypes PlantT ypes Existing Plants Candidate Plants DSM External G Thermal DPG Hydro Pump Renewable Thermal DPG Hydro Pump ble Options Suppliers FOU Storage Technology Storage Techn Thermal DPG Hydro DSM faa o fe fo fo fs fas fF fo f fo f f fo f No of days of season in a vear Fri 17 Oct 2003 22 54 27 Figure 4 4 19 42 IRPA File Edit Forms Utilities Window Help Baske Data Load Data Emission Data Setting Annual Emission Limitation Fuel Type Data Setting Annual Emission in Base Case Plant Type Data References of Emission Factor Data Existing Thermal Plan Data Discount of Existing Plant Data of Blocks Factor FuelT ypes PlantT ypes Existing Renewable Technology Plant Data fi 1 fi fi 1 fi 0 Existing Hydro Plant Data Existing Pump Storage Plant Data No Solver Type Cplex DSM Case No Restriction Candidate Thermal Plant Data Candidate DPG Plant Data Therme 24 Candidat
16. from committed and existing power plant of vintage v in block p of season s in year t Emission factors from committed and existing power plant j of vintage v in block p of season s in year t Discounted cost of installing emission control devices in power plant j to be commissioned in year v Price of imported power from source in block p of season s in year t Number of DSM programs Number of candidate power plants Number of existing and committed power plants Number of external power sources Scheduled maintenance hours year of candidate power plant j of vintage v Scheduled maintenance hours year of existing or committed plant k of vintage v Transmission and distribution loss in transmitting power from candidate generating station j to load center in block p of season s in year t Transmission and distribution loss in transmitting power from existing generating station k to load center in block p of season s in year t Transmission and distribution loss in transmitting power from imported source to load center in block p of season s in year t Number of days in season s of year t Distribution loss for distributing power among consumer group r in block p of season s in year t Number of blocks in chronological load curves Power savings by the efficient appliance under DSM program 1 for consumer type r in block p of season s Grid power demand in block p of season s in year t Local load demand in block p of season s
17. locate the optimization cplex output file irpl op in hard drive F V C Cplex dis sol v 1 J Enter v C Cplex set log Enter This is below the summary of cplex running progress in DOS model Welcome to CPLEX Interactive Optimizer 8 0 0 with Simplex Mixed Integer amp Barrier Optimizers Copyright c ILOG 1997 2002 CPLEX is a registered trademark of ILOG Type help for a list of available commands Type help followed by a command name for more information on commands CPLEX gt set mip lim tre 300 36 New value for upper limit on size of tree in megabytes 300 CPLEX gt set mip int 500 New value for interval for printing mixed integer node display 500 CPLEX gt set mip tol mipgap 0 001 New value for mixed integer optimality gap tolerance 0 001 CPLEX gt read f Nrpl lp Problem f Nrpl lp read Read time 3 28 sec CPLEX gt mip Tried aggregator l time MIP Presolve eliminated 27438 rows and 4381 columns MIP Presolve modified 7 coefficients Aggregator did 1590 substitutions Reduced MIP has 29312 rows 36533 columns and 321905 nonzeros Presolve time 1 83 sec Clique table members 51 MIP emphasis balance optimality and feasibility Root relaxation solution time 110 75 sec Nodes Cuts Node Left Objective IInf Best Integer Best Node Gap 0 1 2985e 007 26 1 2985 007 60431 1 298 007 41 Cuts 59 61097 1 2988 007 43 Cuts 29 61793 0 0 1 3054 007 1 2988
18. machine only This machine 15 called the token client host You must provide the name of this machine If you have purchased several fixed tokens you must repeat the token installation procedure for each machine Step 2 Get the Token Client Hostid Log on to the token client host and open an MS DOS command prompt window Then call IHOSTID EXE from the directory where you have installed ILM using the following command C ILOG ILM IHOSTID EXE This command displays the hostname hostid and hostid checksum of your machine Here is an example The hostname of this machine is helios Step 3 Choose a Host to The hostid of this machine is 6430bd3b Server The checksum of this hostid is 03933 Run the Token Token keys are managed by an ILM process called the token server Token keys can only be used if there is a token server running on your network First of all identify the machine on which you will run the token server This can be any Windows machine on your local network You can also choose a Unix machine as the 47 server of your local network In this case read the Unix section to know how to install the token server If there is already a token server running on some machine identify this machine Otherwise you must choose one Try to choose a stable machine a file server is a common choice In the rest of this section the machine you have selected will be called the token server host The token server host can also be th
19. optimization problem into solving Cplex optimization tool because the IRP model will do it automatically itself 4 5 4 3 Trouble shooting For helps you can type help command from the Cplex dos mode promp as presented in Figure 4 5 4 3 For finding the unfeasibility problem in running the optimization problem you can use the display command as CPLEX gt display Enter 58 Then you can select one of the problems or options that you want to find out and type in the Display what as below File E dit Favorites Tools Help Back gt search Fyrolders CBristory AZ GF XxX A Address ca msvc Go Norton AntiVirus LE Folders x p E T Modified Desktop convert 60KB Application 4 22 2002 8 00 AM 51 4 My Documents I cplex 2 252 KB Application 4 22 2002 8 00 AM 2 My Music cplex 166 KB Text Document 10 6 2003 12 26 PM a My Pictures cplex amp 0 dll 2 328 KB Application Extension 4 22 2002 8 00 AM i L7 nhanait S error 1KB Text Document 6 11 2003 12 37 AM SRCI p Computer Application n lir 2KB File 8 13 2003 7 19 PM E 25 Modified 4 22 2002 8 00 AM ie mip 2KB File 8 13 2003 7 29 PM E Local Disk C1 a nodelp xxx 203 KB File 2 5 2003 3 53 AM H AMPL Size 2 19 MB s temp 1KB File 10 6 2003 12 26 PM Bootable CD C Attributes normal 2 C3 Documents anc LOG cplex80 2C CONCERTI Welco
20. power generation of candidate DPG plant real kg MWh emcdnox NOx emission per unit power generation of candidate DPG plant real kg MWh Record 38 82 capdc cpmdc ncmdc npldc avadc ccldc cnddc htrdc copdc tridc hmndc lifdc cfxdc nfudc npdyc ngrpdc capdc unit capacity of candidate DPG plant real MW cpmde minimum operating capacity of candidate DPG unit real MW ncmdc earliest available year of candidate DPG plant integer npldc allowable maximum number of units per year of the candidate DPG plant integer avadc availability of plant real ccldc depreciable capital cost of unit of plant real 000 cnddc non depreciable capital at of a unit of plant real 000 htrdc heat rate of plant real Mcal MWh copdc operating cost of plant real 000 MWh trldc transmission loss note of plant real hmndc annual maintenance hours of a unit of plant real lifdc life time of a unit of plant integer cfxdc fixed operating and maintenance cost of plant real 000 MW month ntudc fuel type plant integer npdyc plant type of plant integer ngrpdc Site No of candidate DPG Plant integer Record 39 mnldc 1 mnldc 2 mnldc nyear mnldc minimum number of units of plant to be selected in year j integer Record 40 ntndc 1 ntndc 2 ntndc nyear ntndc j maximum possible incremental number of units tunnel with
21. read access to that file Step 9 Install the ILOG License Manager Service Log on to the server host On Windows NT and Windows 2000 you should have administrator privileges Open and MS DOS command prompt window and install the ILOG License Manager Service by typing the following commands mkdir C TEMP cd C I LOG ILM ILMSERV EXE install The token server will be automatically started each time rebooting takes place On Windows 95 Windows 98 or Windows Millenium you need to restart your computer to launch the service On Windows NT or Windows 2000 make sure that the service 1s started by opening the Control Panel and double clicking on the Services icon If it is not select the ILOG License Manager service and click on the Start button To remove the service use the following commands cd C ILOG ILM ILMSERV EXE remove The log file of the Licence Manager service is C ILOG ILM ILM LOG A typical output of this log file 1s Apr 24 15 16 59 License Manager v2 6 pid 28934 Apr 24 15 16 59 Using license file C ILOG ILM ACCESS ILM Apr 24 15 16 59 Licensed to Springfield Computing Inc Apr 24 15 16 59 Tokens for Views on jupiter 3 pcwinnt Apr 24 15 16 59 Tokens for Solver 4 any Step 10 Check the Token Server and the Available Tokens Call ILMLIST from the directory where you have installed ILM by typing the following line C ILOG ILM ILMLIST EXE The command ILMLIST will display the server status and the numbe
22. running refer Figure 4 4 11 Welcome to CPLEX Interactive Optimizer 8 0 0 with Simplex Mixed Integer amp Barrier Optimizers Copyright c ILOG 1997 2002 CPLEX is a registered trademark of ILOG Type help for a list of available commands 34 Type help followed by a command name for more information on commands CPLEX Back Qisearch Folders Uz X A address ILM Go Norton AntiVirus Lb M File F dit eui za a des di a Lg O a F1 t Desktop a 4 My Documents doc access ihostid ihostid ilm26bdoc ilmcheck C3 My Music ILM 23 My Pictures eee r3 H E nhanait Select an item to view its E 0 My Computer description m 9 29 3 Floppy A ilmd ilmlist ilmserv ilmserv exe ILOGLicens index m See also Local Disk C 5 My Documents AMPL Ti 3 7 Bootable CD My Network Places 2 CDPRO readme C3 Documents and Settings ci ilmd exe cpl 4 22 16 07 ILOG License Manager v2 66 pid 1316 e 0 4 22 16 09 3 Using license file C ILOG ILM ACCESS BP Ld C3 bin 4 22 16 11 n TOKEN reservation period sec C msvc6 4 22 16 13 Licensed to asianinstitute thailand Cy 4 22 16 15 J Tokens for CPLEX on et218 1 1 pewinnt t 4 22 25 43 d gt CPLEX on et218 1 lt pcwinnt gt 08 000 used by Administ et218 1 include usage I
23. seapc 1 seapc 2 seapc nsea seapc available hydro energy of pump storage plant in season j real MWh DEMAND SIDE MANAGEMENT DSM DATA Each DSM option is represented by a set of records i e records 50 51 52 53 and 54 Each DSM option has nsea number of record 40 to represent power saving in each season separately Record 50 dsnam name of DSM option 80 characters 86 Record 51 ctdsm ncdsm lfdsm ngrpdd ctdsm cost per unit of DSM option real 000 for 1000 units ncdsm initial available year of DSM option integer lfdsm life time of DSM option integer ngrpdd Group No of DSM Option Record 52 pndsm 1 pndsm 2 pndsm nyear pndsm t penetration limit of DSM option in year t real thousand units Record 53 slbds j 1 slbds j 2 slbds j nblk slbds nsea 1 slbds nsea 2 slbds nsea nblk slbds j k power saving per 1000 units of DSM option in block k in season j real MW Record 54 lossr 1 lossr 2 lossr t lossr 1 transmission and distribution losses in year t at the point of introduction of DSM EXTERNAL SUPPER DATA Each external supplier s data represented in two records i e records 55 and 56 87 Record 55 exnam name of external supplier 19 characters Record 56 ctenl cpenl ctenl cost per unit energy purchasing from external supplier real 000 MWh cpenl
24. 0 MW month ngrphc belong to hydropower project integer ngrpoc phase order of plant integer Record 45 seahc 1 seahc 2 seahc nsea seahc available energy of hydropower plant in season j real MWh CANDIDATE PUMP STORAGE HYDRO PLANT DATA Records 46 47 48 and 49 are to be used for representing a pump storage hydro plant Record 46 npcan name of pump storage plant i 19 characters Record 47 cpgpc ncmpc nplpc avgpc cclpc cogpc trlpc tlfpc cfxpc cpgpc unit capacity of pump storage plant real MW ncmpc earliest possible available year of pump storage plant integer nplpc maximum number of units of pump storage plant integer avgpc availability of pump storage plant real 85 capital cost of a unit of pump storage plant real 000 cogpc operating costing of pump storage plant real 000 MWh trlpc transmission loss ratio of pump storage plant real tlfpc life time of pump storage plant integer cfxpc fixed operating and maintenance cost of pump storage plant real 000 MW month Record 48 cpppc avppc coppc effpc cpppc capacity of pump storage plant i in pumping mode real MW avppc availability of pump storage plant i in pumping mode real operating cost of pump storage plant i in pumping mode real 000 MWh effpc efficiency of pump storage plant i in pumping mode real Record 49
25. 007 61793 0 51 1 2988 007 43 1 3054 007 1 61794 0 51 Heuristic still looking Heuristic still looking Heuristic still looking Heuristic complete 37 10 10 1 3043e 007 1 2988 007 62536 0 43 20 20 1 3023 007 1 2988 007 63042 0 27 For running with LINDO please refer LINDO handbook for LINDO commands Step 3 Running IRP Analysis from the optimization cplex output file for IRP final output results a From the IRP screen display opened with irpl txt file click the button Optimal output file on the right then select the irpl op file as Figure 4 4 12 a Click the select button Open then the optimal output file f irpl op will be positioned into the optimal output file box as Figure 4 4 13 IRPA File Edit Forms Utilities Window Help Basic Data Optimal Output File JF sie Op El Base Year Starting No of of Max No Discount No of No Year Years Seasons of Blocks Factor FuelT ypes Pant ypes 2 Select Lindo or Cplex Output File ase Restriction Look in amp Local Disk F z Ca nk op ur Anula 14 o ARRPEEC PROJECT Results Yo 0 s pU iea EUM Chang Ngoc softwares 65 0 o o Econo Tam Final C Utilities soft Gabrial back up C3 worki1 IRP manual C workiz2 amm Optimal Files Op Open as read only 4 Grou Sat 04 Oct 2003 23 32 03 Fig
26. 5 38R00103 729 99R00203 676 45R00303 3360 43R00403 Pstart 4 3g s Hythe Gypres 1 10 33PM Figure 4 4 3 lt Step 2 Running directly CPLEX LINDO to solve the optimization problem from the MIP code output file generated from step 1 in the model a Select Run Cplex Lindo commands in the Utilities menu as presented in Figure 4 4 4 Q You will be asked to select the MIP code input file that is the MIP code output file generated from step in the positioned working directory for Cplex Lindo running as Figure 4 4 5 In this example we select the irpl1 a Click the selection box Open to proceed the next step You will be then required to give the name of the optimization output file that will be generated from Cplex Lindo shortly This optimization file will be defaulted in form of op Suppose we put the name as irpl again then the optimization output file from Cplex Lindo will be obtained in the selected working directory in form of irpl op refer Figure 4 4 6 Click the selection box Save 30 Here you will be required to start activating Cplex Lindo by find and select the executive Cplex Lindo file saying cplex exe or lindo exe in the working directory refer Figure 4 4 7 In this example we select the Cplex executive file in own working directory C Cplex8 O bin refer Figure 4 4 8 IRPA File
27. CD do insert CD with IRP package into the CD drive choose and run the setup file from your directory consisting of those The Figure 3 1 shows the copying files process for preparing your computer installation Package File Edit View Favorites Tools Folders Desktop u My Documents C3 My Music My Pictures C nhanait My Computer 29 3 Floppy A Local Disk C Removable Disk D Removable Disk E Local Disk F HE AIM Anula 9 C3 ARRPEEC PROJECT H Chang Ngoc Final H Gabrial_back_up 77 IRP manual C Part TRP 7 Personal13 C Personali4 C Results C Softwares 2 Tam 7 Utilities soft 2 worki1 E Worki2 Package amp Compact Disc G s Control Panel g My Network Places Recycle Bin u D E aff H E Internet Explorer Support EIRP Package rez setup setup Application je SETUP LST Modified 6 18 1998 12 00 AM Pime A979 1 281 KB 1 424 KB 674 KB 138 KB 5 KB File Folder Cabinet File Cabinet File Cabinet File Application LST File Copying Files please stand by Processing MSVBVMBD DLL 7 of 7 8 19 2003 3 56 PM 8 19 2003 3 56 PM 8 19 2003 3 56 PM 8 19 2003 3 56 PM 6 18 1998 12 00 AM 8 19 2003 3 56 PM Type Application Size 137 KB Figure
28. EANING This penne is protected Ds copyright irer ang rhemational trealisa Lr hone repocduchor cr disibukan of his progam aeg iid di aires end anal corra perles and be morente bo the muime eadeni poskia uida bw Less _ Figure 4 5 5 7 63 zs SLOG Server Setup Installing ILOG Server 5 2 Select Installation Mode Common option vell allow ALL uses af s machine 10 see thes ret Personal ophon wal allow ONLY pou to ther instalashon Commer C Patterns Figure 4 5 5 8 LOG Server Setup Installing ILOG Server 5 2 Chaos Beztination Location vell mata LOG Server in thee o maksi n iis lakdan chek Mesa inzbal io a ditenemt folder ckck Drewes smd peleri loda nsu cn choses mot io OG Geres by clicking Cancel in eun Daiman LIUDGNSEFVEFEZ rcv t Mack Had Cancel Figure 4 5 5 9 64 ILOG Server Setup Installing ILOG Server 5 2 Setup Type Click the type of Setup you prefer then click Next Typical Program will be installed with the most common options Recommended for most users C Compact Program will be installed with minimum required options Custom You may choose the options you want to install Recommended for advanced users lt Back Cancel Figure 4 5 5 10 ILOG Server Setup Installing ILOG Server 5 2 Select Pr
29. Edit Forms Utilities Window Help MIP Code Run Cplex Lindo Output Options IRP Data Analysis Sasic Data Optimal Output File oc E Base Year Starting No of Max Discount of Objective Function F irpi Lp in 35826 61A01801 3459492401901 2607 28R00101 901 53R00201 822 52R00301 Themal L 4181 69R00401 520 64R00501 24 fo 122077 65A00102 B9855 08A01702 32287 21A01802 31125 57A01902 2350 53R00102 811 96R00202 746 50R00302 3752 22R00402 469 77R00502 154703 28B03502 107606 14804502 108581 31A00103 140648 88 00203 B2757 28A01703 29046 67 01803 27955 45A01903 2115 38R00103 729 99R00203 676 45R00303 3360 43R00403 4 Thu 02 Oct 2003 22 38 28 Figure 4 4 4 Choose MIP code Input Fle Look in Local Disk eck AIM LPersonali3 nk1095 Anula CPersonali4 nki1595 History LL ARRPEEC PROJECT Results nk20 E I Chang Ngoc C Softwares Tam Desktop C Final Utilities soft Gabrial_back_up worki 1 IRP manual Work12 Part TRP irpi File name fire Open w Files of type MIP Code Files Lp Cancel My Network P Open as read only 2 a fo 122077 65A00102 6985508401702 3228721401802 31126 57A01902 235053800102 No of hours block of the load curve 811 96R00202
30. FTWARE COMPONENTS For Wmpows Install Products The ILOG Visisaliration Susie groups C and Jana biranmes and components for develepsing heah peda portable hae and dlieag rich graphical user imbesfaces OUT eonnmecling Them lo 7 databasns and zyrschranizing tnam ILOG Miren Component Suhe allows to build nighea igeni fr rm shandind dialogs up i advanced 2D H graphics and specialized editors cu IL 045 ews Connon Suse diyat m3 crate nighty custornitzed amd visualhy rich GUIE beyond yang and ANT allow available on ILOG Visualization Suite VA Sofware Coi n amd s IL OG Optimization Suite roading an po jo Sonal IL License Manager databases farm diff Wi vendors ere ILOG Rules Figure 4 5 5 2 ILOG SOFTWARE COMPONENTS For Waeow Install Products LOG rg a horar for buibdeng malier archilethe s based en re actme bpeci Sereda Dy application lo dynamically amp h re common eat ef bucinecs LOIS Saree zr nre hign gesToermaeiu informer Seber ILOG Views Component Suite ILOG DEBELINE ILOG Serer Figure 4 5 5 3 All follow charts and figures 4 5 5 below give the demonstration progresses of LOG components installed Product ILOG Visualization Suite ILOG Solver ILOG Concert Technology do not ins
31. File menu In File menu Figure 4 3 1 there are some functions like New Open Save Save As Close Close Forms Exit that may be similar with other windows applications In this menu you can open quickly some latest IRP cases that you may be or may not complete last time by selecting directly the file indicated with the names There are 4 latest IRP cases restored in this log function Edit menu In Edit menu Figure 4 3 2 there are some functions like Paste Select All for editing data activities this 1s still not complete in the latest version of IRP 29 IRPA File Edit Forms Utilities Window Help New Open Save Save As Close Form Close All Forms Print Ctrl P ear Starting No of No of Max No Discount No of No of nu Year Years Seasons of Blocks Factor FuelT ypes PlantT ypes 1 trpdpgi txt e NDA EE 3 trp1 txt No ExtemalityCost No Solver Type Lindo NoRestriction 4 nk59 5 Ext Candidate Plants DSM External Thermal DPG Hydro Pump Renewable Thermal DPG Hydro Pump Renewable Options Suppliers Storage Technology Storage Technology J pra DEM o o o o go go o o MENO Lo Milo jo Mo jo Ho of days of season in a year Thu 02 Oct 2003 11 06 24 Figure 4 3 1 File menu IRPA File Edit Forms Utilities Window Help Gut Ghrl Gopy Gtr G Glear Del je Select All Ctr A Dele
32. Guarantee condition for energy supply from the mixed hydrothermal system These conditions ensure that total possible electricity generation by thermal and hydro plants plus imported electricity generation and electricity energy saved by DSM should be at least equal to the seasonal energy demand under the defined critical hydro conditions jb E XE D VN E337 N NH M iu k 1 v V 1 j l 1 p l UEM 1 hydro j hydro t NA I R P 2 2 Pues F D 5 Pod irpst Em 1 i 1 p 1 t 1 oe P 0 pst 1 for all t s where aj and Qu are mean expected quantities and averageenergy output from hydro plant typeh of vintage v in critical period s ina dry year hvts mean expected energy output in this period in an average year A seasonal model is needed here 1 In addition the following condition also must be satisfied by each hydro plant during a critical season Total electricity generation from a hydro plant h of vintage v during a critical season s cannot exceed the average energy output from hydro plant type h of vintage v in critical season s in a day year That is hzh hi p S s prom OEN SE ty VSS a Tes cest J External power availability constraints I SI for all l p s t K DSM constraints f t 1 bim Zir A Pa mu 1 1 Extension of the model for all 1 r t 1 Annual Emission limit
33. IRP data isi xi Sat 04 Oct 2003 23 41 18 a analysis Give the name for irp result output file in you working directory suppose as f irp1 The file extension of this is defaulted as out mean the output file is in form of irpl out refer Figure 4 4 16 then click the button Save Forms Utilities Window Help Basic Data Optimal Output File EJ ck E3 Personali3 El S CJPersonali4 nk1S ARRPEEC PROJECT Results nk2094 Exis Chang Ngoc C Softwares nk30 es Es soft Hydro dis Gabrial back up CI worki 1 JIRP manual C workiz Part TRP nk Final Output Files 0u Figure 4 4 16 a Then a form of setting value of load duration curve points will be appeared You need to put the value into the boxes as Initial No 7000 this 1s as normal value for a big irp case for smaller case you can put the value of 3000 Maximum No 40 8000 this is as normal value for a big irp case for smaller case you can put the value of 4000 Click the button Accept refer Figure 4 4 17 File Edit Forms Utilities Window Help Setting value of Load Duration Curve Points No of Load Duration Curve Points Initial No roo Maximum No sooo ax No Discount of No of f Blocks Factor FuelT ypes PlantT ypes Accept Solver Type Cplex DSM Case Restriction Existing Plants Candidate Plants DSM External E Groups Thermal DPG Hydro Pump Ren
34. KI E Total CO2 Emission Limit During Planning Period 1384 41 825 Thermal DPG Annual Expected SO2 Emission Limit Unit k to a4 p ns 128 1948 128 2098 130 5148 132 8275 141 999 144 2983 144 3028 148 8818 135 5138 144 73 gt No of hours of a block of the daily a Total SO2 Emission Limit During Planning Period 30963823 Annual Expected NOx Emission Limit Unit k tons n n n n 101 9362 109 3578 121 6496 137 6624 163 9968 173 7279 175 9749 190 7359 173 2148 194 20 _ Total NOx Emission Limit During Planning Period 4859 1529 IRP Reading Lindo Cplex Data It takes time Please be patient Fri 17 Oct 2003 22 59 08 Figure 4 4 23 44 IRPA File Edit Forms Utilities Window Help Basic Data Optimal Output File r dpa Op Base Year Starting No of No of Max No Discount of Years Seasons of Blocks Factor FuelT ypes PlantT ypes 1998 2006 r NP NM N NU Emission Constraints ves Externality Cost No Solver Type Cplex DSM Case No Restriction a TF Emission Data 2017 2018 2018 2020 2021 2022 2023 2024 2025 Total CO2 Emission Limit During Planning Period 1384 41 825 Annual Expected 502 Emission Limit Unit tons n n 128 1948 128 2098 130 5148 132 8275 141 999 144 2983 144 3028 148 8918 135 5138 144 73 _ Total SO2 Emission Limit D
35. LOCPK3EC 3C lib C msvc 3 ILM doc views50 Nhan 7 OALDTS Program Files public C3 sis650 C SOPHTEMP C3 Temp unzipped WINDOWS H Removable Disk D H Removable Disk E Local Disk F 7 E ARRPEEC PROJECT 13 object s Disk free space 5 45 GB i 1 761 KB 1 icy My Computer Figure 4 4 10 us E lt Back j search Fyrolders CBristory AS GZ X A E Address ca msvc Go Norton Antivirus L Folders x Modified Desktop a P convert 60 Application 4 22 2002 8 00 B A My Documents Acplex 2 252 KB Application 4 22 2002 8 00 AM 2 My Music 2 cplex 161 KB Text Document 9 17 2003 3 18 PM 23 Pictures cplex80 dll 2 328 KB Application Extension 4 22 2002 8 00 AM H nhanait Select an item to view its E error 1KB Text Document 6 11 2003 12 37 4M m Computer description n lim 2KB File 8 13 2003 7 19 PM ai 3 Floppy A Sams e mip 2KB File 8 13 2003 7 29 PM pi Disk vara a nodelp xxx 203KB File 2 5 2003 3 53 AM AMPL gt T MN Doors ep Mv Network Places a temp 1KB File 6 11 2003 12 44 AM 9 CDPRO My Computer Ca Documents and Settings ILOG ILOG cplex80 bin msyvc6 cplex exe CONCERT12 3 cplexso Welcome to CPLEX Interactive Optimizer 8 6 6 E bin with Simplex Mixed Integer amp Barrier Optimizers X msvce Copyright lt c gt ILOG 1997 2002 d CPLEX is
36. MLMlihostid EN E 2 488 C 12 03 Figure 4 5 5 20 After installing the ILOG license manager you should try to get some necessary information on your computer system by clicking the ihostid exe file in the working directory C LOG ILM thostid exe as given in the Figure 4 5 5 20 These are presented as below The hostname of this machine is ET218 1 The hostid of this machine is bcOf6c4Af 70 The checksum of this hostidis 64606 The next step you should send those information to the ILOG supplier for license access key then following the installation steps presented in previous section for installing the ILOG License Manager Service 4 ILOG Rules You can either install this component for your references or just ignore this if not necessary 4 6 Input Data Format Used In IRP Analysis BASIC DATA Record 1 fnamlp name of the Lindo or Cplex output file string Record 2 byear syear nyear nsea nblk disrt nfuel nplant ifemi ifpty ifcty byear base year for cost calculation integer eg 1997 syear starting year for analysis integer eg 2000 nyear number of years in the planning horizon integer eg 15 nsea number of seasons per year integer eg 2 nblk number of blocks in the load curve integer eg 12 disrt discount factor real eg 1 1 nfuel 2 number of fuel types integer eg 4 nplant number of plant types integer ifemi flag for emission constraints
37. NCERT12 C ILOG ILM ilmd exe 28 13 ILOG License Manager v2 68 pid 13681 bin z 515 license file cane ILM reservation examples Li o EE 1t e Select an item to view its description il s i See also My Documents My Network Places My Computer readme m Ga i ludi at TIC 9 16 28 21 Token for CPLEX on et218 1 lib ILM views50 H Nhan H OALDTS 9 7 Program Files C SOPHTEMP C Temp H unzipped H WINDOWS 3 Removable Disk D H E Removable Disk E Local Disk F 9 9 Compact Disc G Control Panel lt Recycle Bin amp Internet Explorer 113 object s Disk Free space 5 43 GB P 761 KB My Computer Figure 4 5 4 1 4 5 4 2 Starting the Cplex optimization tool After activating the ILOG license manager file you should start the Cplex executive file as the following steps Note in case that you run Cplex directly in the IRP model you should not do starting the Leaving this DOS mode screen of license manager in service then accessing the windows directory of CPLEX as C ILOG CPLEX80 BIN MS VC6 Running the cplex exe in the MSVC6 directory by double click the cplex exe file as C ILOG CPLEX80 BIN MS VC6 cplex exe The CPLEX optimization tool is ready when the CPLEX DOS mode prompt appears as presented in Figure 4 5 4 2 From here you can enter Cplex setting commands and put the
38. NDO For detailed running procedure please refer the section of running the IRP model Windows menu This consists of all windows of data forms opened and arranging appearance of these data forms on the model screen IRPA File Edit Forms Utilities Window Help Cascade Tile Horizontal Tile Vertical Pica Basic Data 1 Basic Data Optimal Out 71984 Data Em 3 Fuel Type Data Base Year Starting No of No of Max No Discount of No of Year Years Seasons of Blocks Factor FuelT ypes PlantT ypes Jc Mc Bo po Jo go Emission Constraints No Externality Cost No Solver Type Lindo DSM Case No Restriction Existing Plants Candidate Plants DSM Exte Thermal DPG Hydro Rume Renewable Thermal DPG Hydro Rump Renewable Options Sup mal Groups torage Technology Technology Thermal DPG Hydro DSM No of hours of a block of the daily load curve No of days of season in a year Figure 4 3 5 Windows menu in the IRP model Help menu This is under construction 4 4 Running the IRP model 4 4 1 Running a base case After finishing the input data file needed for a case study you should follow the steps as Step I Creating the MIP mix integer programming code a Creating the MIP code file in term of Ip file from the IRP model by selecting Utilities MIP Code as presented in Figure 4 4 1 28 a Then you will be aske
39. Ngoc softwares 4 Econo Tam skto L Final Utilities soft L Gabrial_back_up C3 worki1 L IRP manual Worki2 No of No of My Documents L Part TRP nk1095 FuelTypes PlantTypes n fi 0 Cplex DSM Case Restriction lores File name iol Save as type Code Files Lp Cancel DSH External le Options Suppliers r c I DSM My N etwork m YeanBlock 2006 of days of Season 1 2 MINIM 183 182 1 2 3 4 5 5 tf 5 2 2 3 4 1 1 5 2 2 3 4 1 1 E 2 2 2 A 4 4 i Thu 02 Oct 2003 22 28 15 Figure 4 4 2 29 a Waiting for a few minutes until MIP code running completed the MIP output file will be appeared on the screen as in Figure 4 4 3 IRPA File Edit Forms Utilities Window Help Basic Data Optimal Output File F pdpa No Discount of No of in 35826 61A01801 34594 92A01901 2607 28R00101 901 53R00201 22 52R00301 Thermal 4181 69R00401 520 54R00501 2 o 122077 65A00102 69855 08 01702 32287 21A01802 No of hours 31126 57A01902 blockofthe 2350 53500102 load 511 96500202 746 50R00302 3752 22R00402 NE 469 7 7R00502 season ina 19 3 03 28B03502 107606 14604502 109581 31 00103 140648 88A00203 62767 29A01703 29046 67 01803 27955 45 01903 211
40. THE INTEGRATED RESOURCES PLANNING IRP MODEL AN USERS GUIDE Developed by Professor Ram M Shrestha Nguyen Thanh Nhan RA IRPA Version 4 1 rogram Windows 2000 Asian Institute of Technology Bangkok April 2003 Energy Program School of Environment Resources and Development Asian Institute of Technology PO Box 4 Klong Luang Pathumthani 12120 Thailand Telphone 66 02 524 5406 Email address ram ait ac th AIT October 2003 1 Introduction The Integrated Resource Planning IRP model is formulated as a Mixed Integer Linear Programming problem and has been developed by Professor Ram M Shrestha since 1998 from Energy Program under School of Environment and Resources Development of Asian Institute of Technology The flowchart of the model is presented as figure 1 1 below In this model the number of power generation units to be installed in each year of the planning horizon is addressed as integer decision variables The other decision variables of the model express the power generation of each power plant at each block of a season in a year number of DSM appliances to be incorporated into the power system in each year and expected power supply from foreign importation in each block of a season in a year System Load Shape Load Existing amp Candidate Plants Forecast yearly Data TRP Model Optimal expansion plan Capacity mix Generation mix Fuel mix Cost implications DSM d
41. Wwoows Install ILOG License Manager 2 6 ILOG License Manager ILM Every ILOG Product on this CD ROM requires the installation of an access key Your access key depends on your license contract You will find your access key on an access key sheet access keys are documented in the ILM documentation Some types of access key require extra software for their creation and or their usage all this software is referenced as the ILOG License Manager ILM The ILM documentation will let you know if you should install ILM ILOG License Manager ILOG License Manager PC 64 bit Figure 4 5 5 14 67 ILOG SOFTWARE COMPONENTS For Wnpows Install ILOG License Manager 2 6 ILOG License Manager for 0 5 Windows NT 3 5 or 4 Windows 2000 ager PC 64 bit ILOG License Manager Setup is preparing the InstallShield F Wizard which will quide you through the rest of the setup process Please wait 99 Figure 4 5 5 15 Installing ILOG License Manager 2 6 Choose Destination Location Setup will install ILOG License Manager the following folder To install to this folder click Next To install to a different folder click Browse and select another folder You can choose not to install ILOG License Manager by clicking Cancel to exit Setup Destination Folder C NLOGSILM Browse lt Back Cancel Figure 4 5 5 16 68 zd ILOG License Manager Setup select Program Folder Setup will add pr
42. a registered trademark of ILOG i 7 examples include help for a list of available commands j help followed by a command name for more lib gt information on commands Ga msvce 5 ILM gt doc Views50 Nhan i OALDTS 31 7 Program Files public 1 55650 SOPHTEMP Temp unzipped H WINDOWS J Removable Disk D H E Removable Disk E Sy Local Disk F AIM 29 Anula C3 ARRPEEC PROJECT E object s Disk free space 5 45 GB 4 88 MB 1 My Computer Figure 4 4 11 a From the Dos command prompt type cplex setting commands as same as 35 Y Set mip lim tre 300 Enter this is as normal vavlue you can change this value setting v Set mip int 500 1 Enter this is as normal value you can change this value setting Y Set mip tol mipgap 0 001 J Enter you can change this value setting the less value setting the more accuracy result you will get from the Cplex software a Then give the cplex running commands v C Cplex read F irpl lp Enter suppose the irpl lp located in hard drive F v C Cplex _ Enter a The optimization irpl lp will be then computed by cplex Q After the optimization problem solved the DOS mode window will be back with Dos prompt as C Cplex Do give the following commands for cplex output file as v C Cplex set log Enter v C Cplex set log f irpl op Enter suppose you
43. age Technology Thermal DPG Hydro DSM fa f f de fs fs fe f f gt fo f doe f No of days of 4 4 4 4 4 4 Season 1 2 183 182 Sat 04 Oct 2003 23 34 34 Figure 4 4 14 Do tick the output components in the output options form you want refer Figure 4 4 15 then click the button OK 39 12 xl File Edit Forms Utilities Window Help Basic Data Basic Data Optimal Output File Base Year Output Option Emission Constraints Existing Pl Thermal DPG Hydro Pum Store o je fo No of hours of a block of the daily load curve YeanBloc 2t 2t of days of season in a year Season Value Starting Year 1 Op No of Years Discount Factor No of No of FuelT ypes PlantT ypes xl 10 Generation and Capacity Expansion Plan v No of Max No Seasons of Blocks m DSM Case Restriction m xternal G uppliers themal DPG Hydro DSM 0 o o o fo mmm Details by Individual Plants Details by Plant Types Details by Central Renewable Generation Plant Details by DPG Plant Details by Thermal Fuel Types Demand Side Management Details Energy Fuel Consumption Emission co2 502 lt NOx Summary Output Sellect all M E 4 Sat 04 Oct 2003 23 38 27 Figure 4 4 15 Select the data analysis item in the menu utilities as Utilities
44. ahe nsea seahe j available hydro energy of plant in season j real MWh 78 EXISTING PUMP STORAGE PLANT DATA Four records i e records 27 26 29 and 30 are to be used for each of the existing pump storage plant Record 27 pxnam name of the pump storage plant maximum 19 character Record 28 cpgpe ncmpe avgpe cogpe trlpe nrepe fxope cpgpe capacity of pump storage plant at generating mode real MW numpe earliest available year of pump storage plant i integer avgpe availability of pump storage plant at generating mode real operating cost of pump storage plant generating mode real 000 MWh tripe transmission loss rate of pump storage plant real nrepe retirement year of pump storage plant integer fxope fixed operating and maintenance cost of pump storage plant real 000 MW month Record 29 cpppe avppe coppe effepe cpppe capacity of pump storage plant at pumping mode real MW avppe availability of pump storage plant at pumping mode reall coppe operating cost of pump storage plant at pumping mode real 000 MWh effepe pumping efficiency of pump storage plant real 79 Record 30 seape 1 1 seape 1 2 seape 1 seape ij available hydro energy of pump storage plant in season j real MWh CANDIDATE THERMAL PLANT DATA Data of a candidate thermal plant are represented by a set of 5 records i e r
45. aints These constraints state that the sum of power generation by all power plants existing and candidate in a period of a day in a year and power generation avoided by the use of a D5M option is equal to the total projected grid power demand including local load demand in the period under the business as usual case pog YU I ES J x XU l LS TE jpst v J I R 1 1 L 2 22 Es T 2 ips m LI isp gt o for all p 5 1 b Local load demand constraints for DPGs This constraints state that the sum of power generation by all DPG power plants that existing and candidate in a period of a day in a year is equal to or larger than the total BUE local load demand in the period under the business as usual case Y X Udpe 15 X E LUMPS pn 1 LS gt QL yy for all p s t yz J l c DPGs power generation constraints This constraint requires that the power generation by a DPG plant in meeting required local power demand plus its surplus power generation that transferred to the electricity network 1f any in a period of a day in a year should be equal to the actual power generated by the plant in that period Y 3 pd 5 x 2 UMP 88 s 15 Y X Upas for all p s t v V k l y V k l t Ms Updgl Updg for all p s t pow ZLS J Y LUMP EE p OLS ipa II v l J v l J d Plant availability constraints Power generat
46. ants DSM External Groups PG Hydro Pump Renewable Options Suppliers t DPG Hydro DSM Candidate DPG Plant Data erm Candidate Renewable Technology Plant Data Candidate Hydro Plant Data Storage Technology fo Candidate Pump Storage Plant Data p b hb Pf b b hb Demand Side Management Data Annual Loss Data External Supplier s Data Group Data Input Data No of Lindo Cplex Data seasor Data Analysis Result MIP Code File Chronological Load Curve Thu 02 Oct 2003 11 23 27 Figure 4 3 3 Forms of detailed input data in IRP IRPA Fie Edit Forms Utilities Window Help Run Cplex Lindo Output Options IRP Data Analysis Basic Data Optimal Output File Base Year Starting No of No of Max No Discount No of No of Year Years Seasons of Blocks Factor FuelT ypes PlantT ypes p h f p p f fp Emission Constraints No Externality Cost Nc Solver Type Lindo DSM Case No Restriction Existing Plants Candidate Plants Thermal DPG Hydro Pump ble Thermal DPG Hydro Pump Renewabl Opti Groups mal ro p enewa T ro p ene ptions Suppliers Storage Technology Storage Technology Thermal DPG Hydro DSM fo fo de fo f jf fo fo f f de f f Pf f No of days of season in a year Thu 02 Oct 2003 22 03 18 Figure 4 3 4 Utilities menu in the IRP model Utilities menu 27 This comprises mainly of procedures of running the IRP model and associated solvers of CPLEX or LI
47. art at the first column e Check the spelling of the shell variable A typical mistake is to use LICENCE FILE with two Cs instead of LICENSE FILE e Check that the path contained in the variable ILOG LICENSE FILE points to the right file In particular the prefix C ILOG ILM must be replaced with the actual installation directory e If you are adding a new key to an existing license file check that the LICENSE line in the text you received and the LICENSE line in the original license file if any match exactly If they don t match please contact your ILOG sales representative e Check that the license file has been saved in Text format e On Windows check that the license file does not have an extra txt extension To do so open an MS DOS command prompt window and type DIR C ILOG ILM 4 5 3 2 Error messages Here s the list of error message that can be generated cannot connect to token server on host The licensed product cannot reach the token server running on the host specified on the SERVER line of your license file 54 e The machine host is down or unreachable or the name host domain is required To check this run the following command On Windows ping host e There is no token server process running on host On this machine look for error messages and warnings in the log file of the License Manager usually CAMLOGMLMMLM LOG or usr ilog ilm ilm log Refer to the sections Installing a Token Key and
48. ata SO and NOx emission implications Figure I I The framework of the Integrated Resources Planning IRP model The IRP model is then developed not only to decide the size and types of power plant capacities corresponding generation and determine the optimal schedule for new capacity addition and the size type timing of various efficient demand side technologies but it also incorporates distributed power generation sources DPG as decentralized power generation to primarily meet the separate local energy demand of customers served from remote areas without T amp D losses and contribute surplus power generation if it is connected to grid to the electricity network with T amp D losses in meeting the network system demand that excluding the above local demand Additionally the different system and local load sharp curves in each year are also presented in the model The IRP model package basically programmed in Visual Basic is working on windows base of 2000 NT or XP and incorporated with CPLEX the software for solving the optimization problem 2 The Formulation of IRP Model In order to describe this model the algebraic expressions of the objective function and constraints and a set of symbols are defined as follows div Air XC X Ekv CC Eirpst Eman Emh s ECipsty Availability of candidate power plant j of vintage v Availability of ex
49. d to position and name your MIP code output file in your computer as presented in figure 4 4 2 The file extension of MIP code output file 1s defaulted by the model as Ip meants that you just give the name for the MIP code file as irp1 then press the selection box Yes then the MIP code file will be in form of irpl Ip otherwise you can select No to cancel and resume again the MIP code running IRPA File Edit Forms Utilities Window Help Run Cplex Lindo Output Options IRP Data Analysis basic Data Optimal Output File r trpdpq op No of No of Max No Discount of No of Years Seasons of Blocks Factor FuelT ypes PlantT ypes 2006 20 2 11 ha 11 fio Emission Constraints No ExtemalityCost No Cplex DSM Case Restriction Existing Plants Candidate Plants DSM External Thermal DPG Hydro Pump Renewable Thermal DPG Hydro Pump Renewable Options Suppliers Storage Technology Storage Technology fo 6 hf do ps f fas f fo Ho of hours of a block of the daily No of days of Season 1 2 Mun 183 182 Base Year Starting Year Groups Thermal DPG Hydro DSM Thu 02 Oct 2003 22 15 15 Figure 4 4 1 81 Select MIP Code Output File Save in 2 Local Disk E3 AIM Personali3 nkiS Personali4 nk2095 LJ ARRPEEC PROJECT Results Chang
50. e Plants DSM External IPG Hydro Pump Renewable Groups Candidate Renewable Technology Plant Data E 5 Options Suppliers Storage Technology Thermal DPG Hydro DSM Candidate Hydro Plant Data Candidate Pump Storage Plant Data Demand Side Management Data Annual Loss Data No of I blocko External Supplier s Data load cu Group Data Input Data Lindo Cplex Data Data Analysis Result MIP Code File Chronological Load Curve IRP Reading Lindo Cplex Data It takes time Please be patient Fri 17 Oct 2003 22 56 26 Figure 4 4 20 IRPA File Edit Forms Utilities Window Help m Basic Data Basic Data Optimal FE A Setting Emission in Base Case Reset base value Year Emission 36 0062 38 0972 41 5218 45 9257 53 919 55 5009 56 1339 60 5796 55 7003 62 3667 73 Calculated Annual SO2 Emission Released in the Base case Unit k tons Year Basecase 128 1848 128 2088 130 5148 132 8275 141 999 144 2883 144 3028 148 8918 135 5138 144 7371 158 Elia Calculated Annual NOx Emission Released in the Base Unit k tons Year 101 9362 109 3578 121 6496 137 6624 163 9968 173 7279 175 9749 190 7359 173 2148 194 2051 229 Total Discounted Cost in Base Case 13881 725 IRP Reading Lindo Cplex Data It takes time Please be patient Fri 17 Oct 2003 22 57 08 Figure 4 4 21 43 IRPA File Edit Forms Utilities Window Help See Data Basic LoadData
51. e token client host typically if you have purchased only one fixed token Step 4 Get the Token Server Hostid Log on to the token server host and open an MS DOS command prompt window Then call IHOSTID EXE from the directory where you have installed ILM using the following command C ILOG ILM IHOSTID EXE This command displays the hostname hostid and hostid checksum of the machine An example output would be The hostname of this machine is helios The hostid of this machine is 6430bd3b The checksum of this hostidis 03933 Step 5 Get the Token Key from The information displayed by the ihostid command must be sent to ILOG to get your token key To do so follow the instructions in the Access Key Request form Step 6 Add the Token Key to the License File You should do this step once you have received your token key from ILOG Here is an example of the text you may have received LICENSE Springfield Computing Inc SERVER 3000 helios 6430bd3b 03933 TOKEN Views 2 400 NEVER 918MK37CCG523 pcwin95 license 186 The LICENSE and SERVER lines identify your site and token server host The next line contains the token key If you have purchased licenses for several products or product components the text you received may actually contain several token keys If the license file does not exist create one by saving the whole text you received as the license file 48 If the license file exists edit it using your favorite edi
52. ecified on the SERVER line of the license file You must log on to the host with hostid hostidl to start the token server e When trying to run a licensed product protected by a node key which has been set up for another host You can run this product only on the machine with hostid hostidl 55 e On Windows the hostid of a machine changes when its hard disk 15 reformatted If your hard disk has been reformatted since you have received your key you should contact ILOG to get a new key To print the hostid of a host use the ihostid command access key has expired The licensed product cannot be run because the key has expired Please contact your ILOG sales representative a warning cannot get hostid dev lanO is unreadable This error occurs on HP UX platforms when dev lanO is not readable 4 ie On HP UX ILM needs read permission on the file dev lan0 You need to grant i read permission on this file for all users To do this log on as root and type the following command chmod 644 dev lan0 license file not found or unreadable run ilmcheck The license file in ILOG_LICENSE_FILE does not exist or is unreadable Check the contents of this variable On Windows check that the file has no txt extension To do so type in an MS DOS command prompt window DIR access ilm warning License files must be edited and saved in text format If you are using Notepad to edit files this is automatic If you are using another text ed
53. ecords 31 52 33 34 and 35 These sets of 5 records should be repeated for each candidate thermal power plant Record 31 tcnam ftypc cmnutc tcnam name of candidate thermal plant 19 characters name of the fuel used 19 characters cmnutc units used to input fuel consumption rate e g 000 kg MWh 10 characters Record 32 fcmsc calvtc emcco2 emcso2 emcnox fcmsc fuel consumption real unit 000 kg MWh calvte calorific value real unit kBtu kg emcco2 CO emission per unit power generation of candidate plant real kg MWh emcso2 SO emission per unit power generation of candidate plant real kg MWh emcnox NOx emission per unit power generation of candidate plant real kg MWh 80 Record 33 captc cpmtc ncmtc npltc avatc ccltc cndtc htrtc coptc tvltc hmntc liftc cfxtc nfutc nptyc ngrptc captc unit capacity of candidate thermal plant real MW cpmte minimum operating capacity of candidate thermal unit real MW earliest available year of plant integer npltc allowable maximum number of units per year of the candidate plant integer avatc availability of plant real ccltc depreciable capital cost of unit of plant real 000 cndtc non depreciable capital at of a unit of plant real 000 htrtc heat rate of plant real Mcal MWh coptc operating cost of plant real OOO MWh trltc transm
54. ed DSM program data in the DSM program data form in the menu Form Solver type the optimization problem formulated by the IRP model can be solved with the two kinds of optimization solver software as CPLEX and LINDO Thus you should determine what kind of solver you are using CPLEX or LINDO for running the Ip code generated from IRP in order the model gives the consistent output format of Ip file You 21 cannot run CPLEX or LINDO properly if you select inconsistent format of solver type in IRP No of hours of a block of the daily load curve is the number of hours in a block divided based on the characteristic of the daily load sharp curve in a country The total hours in all divided blocks should be equal to 24 and the number of hours in each block can be different yearly due to the differences in load sharp curves No of days of a season is the number of days in a season you have for the country case study Important notification a For creating the new IRP input data case you should put the data into the boxes in order from the top down and the left right of the Basic data form This is due to the links between data boxes that would cause the error time error if you put data incorrectly a After put the data values into the boxes you should save you your work by clicking mouse left button on the screen or choose the save item in the menu File otherwise you may be lost your data 4 2 3 Detailed data f
55. ewable Thermal DPG Hydro Pump Renewable Options Suppliers Storage Technology Storage Technology Thermal DPG Hydro DSM Sat 04 Oct 2003 23 48 15 Figure 4 4 17 a Wait until the analysis result is given as Figure 4 4 18 IRPA File Edit Forms Utilities Window Help Basic Data m Analysis Result F irp1 Out GENERATION AND CAPACITY EXPANSION PLAN 11 GENERATION EXPANSION PLAN Year Plant Selection Discounted cap Salvage value Net capital Nominal cost cost k ik Cost k k 2008 TBNKCTHH 1x435 Mwv 100626 80 5067 61 95559 19 261000 00 2008 Than Bac 1 x 300 MW 117976 25 8487 53 109488 62 306000 00 2008 Srok Phu Mieng 1x 54M 33889 26 3900 98 29988 28 87900 00 2008 Dai Thi 1x 300 MVV 159845 25 18399 84 141446 41 414600 00 2008 Tuyen Quang 1 196 104432 88 12021 23 92411 65 270872 00 2009 Than Bac 1 x 300 MW 107251 13 9194 93 98056 21 306000 00 2009 Nhon Trach 1x1200 Mwv 252355 61 15976 71 236378 90 720000 00 2009 A vuong 1 1x170 Mw 61897 22 8082 38 53814 84 176600 00 2010 Quang Ninh 1x1200 Mwv 390004 12 39608 92 350395 20 1224000 00 2010 NinhBinh Ex 1 300 Mwv 97501 03 9902 23 87598 80 306000 00 2010 Small Hydro 1x 5 Mw 2071 10 210 34 1860 76 6500 00 2010 Srepok 3 1 x102 MW 28676 77 4243 81 24432 96 90000 00 2010 La 1 x 300 MW 97277 99 14395 96 82882 03 305300 00 2011 1x300 MwV 88637 30 10609 53 78027 77 306000 00 2011 Small
56. f type j installed in year v a integer variable Number of efficient appliances introduced in year t to replace existing inefficient one under DSM program 1 by consumer category r Number of efficient appliances retired in year t under DSM program 1 by consumer category r y Specific fuel consumption of candidate thermal plant j of vintage v Specific fuel consumption of existing and committed thermal plant of vintage V Opt Width of block p of chronological load curve of season s of year t His Hydro energy available at hydro plant j of vintage v in season s in year t Hydro energy available at hydro plant of vintage v in season s in year t H mean hydro energy available in critical season s of year t from hydro plant h of vintage v oF Maximum number of units of power plant type J Birt Penetration rate of DSM program 1 for consumer type in year t Bay Firm factor of hydro plant h of vintage v yhcij Objective to find the least cost combination of electricity generation capacities of different types of plants and the level of end use 1 e demand side electrical appliances to be added and the level of power generated by different power plants Minimize J Z T SPtJ CC KC SV FC 2M iv A eo a NE C ES NUR nos 2 2 2 2 EC i EF NS T 2 EF os pom N pst a Grid demand constr
57. ge value and so on No of seasons is the total season you have for an electricity expansion planning case study This is mainly due to the differences in load sharp curve peak load demand and hydro electricity generation at different season in a year etc This value input will be linked to other data input like normalized load sharp curve available hydro energy demand side management DSM data distributed power generation DPG etc Max No of blocks is the maximum number of discrete blocks that we derived from the load sharp curve The number of blocks should be different at each year if we have different load sharp curve yearly This value input will be linked to other data input like normalized load sharp curve available hydro energy demand side management DSM data distributed power generation DPG etc Discounted factor is the discounted factor applied for power sector planning in each country This is assumed to be remained the same for the whole planning horizon in the model No of fuel types is the number of fuel types that the country using for electricity generation at this moment and future The detailed kind of fuel types based on this will be defined in another input data form after you put this number of fuel types No of plant types is similarly the number of plant types that the country have at this moment and future for electricity generation The detailed kind of plant types based on this will be defined
58. he IRP immediately otherwise we have to wait for some minutes for automatically entering by the program itself 16 My Documents Uninstall Programs My Computer Windows Explorer lt s My Network Norton lace Antivirus 2003 5 Recycle Bin Windows Media Player m Internet Explorer Microsoft Windows20 Nguyen Hong Hoa Version 4 1 Windows 2000 paper Reader 5 1 Z Yahoo Messenger fa FlashGet Winamp3 Figure 4 1 2 The IRP program activated The main interface of the IRP is presented as Figure 4 1 3 To open an existing input file or to create a new input file please select the menu File as indicated in the main interface screen of IRP in Figure 3 9 File Edit Forms Utilities Window Help Wed 01 Oct 2003 10 27 24 Figure 4 1 3 The main interface of the IRP 4 2 IRP input files The input file of IRP model is in form of text file We therefore can edit the input file either by entering directly form the IRP interface screen or in the Notepad in Windows 17 For creating a new IRP input file it is recommended to use the demo file located in the same working directory of IRP saying in C Program Files Integrated Resource Planning for easier creating work For checking and adding the same block of parameters inputs using the text input file in Notepad is recommended Hereby we can use utility commands as copy cut paste etc in Notepad for
59. in another input data form after you put this number of plant types Existing Plants consists of various kinds of existing and committed central power plants in the system You need to put the number of each kind of power plants you have in the system including hydro thermal DPG pump storage renewable power plants at the time before starting year you are considering in the case study For example if you put number of 23 in the thermal box that mean you have 23 existing and committed thermal power 20 plants in your system for power supply to meet the demand till to the year before starting year This action will create another detailed data input form for these power plants that are also needed plant data input Candidate Plants similarly consists of various kinds of candidate central power plants in the system from the starting year in the planning horizon You need to put the number of each kind of power plants you have in the system including hydro thermal DPG pump storage renewable power plants at the time from starting year you are considering in the case study For example if you put number of 23 in the thermal box that mean you have 23 candidate thermal power plants in your system for power supply to meet the future increase in load demand This action will create another detailed data input form for these power plants that are also needed plant data input DSM options is the number of DSM options you consider in the IRP ca
60. in year t 4 rm S T Ujpstv Udpgipstv Udpglipstv Udpg gipstv Udpglkpsty Udpggkpstw lox SViy RAjmax Zn irt Number of different types of consumers Reserve margin Number of season Number of years in the planning horizon Power generation from candidate plant j of vintage v in block p of season s in year t Power generation from candidate DPG plant j of vintage v in block p of season s in year t Power generation from candidate DPG plant j of vintage v in block p of season s in year t to supply electricity for local area Surplus power generation from candidate DPG plant of vintage v in block p of season s in year t transferred to the grid Power generation from plant existing and committed power DPG plant k of vintage v in block p of season s in year t Power generation from existing and committed power DPG plant k of vintage v in block p of season s in year t to supply electricity for local area Surplus power generation from existing and committed power DPG plant plant of vintage v in block p of season s in year t transferred to the grid Commissioning year of power plant Maximum power available at external source in block p of season s in year t Discounted salvage value of power plant j commissioned in year v after time horizon T Power imported from source in block p of season s in year t Maximum resource availability for plants of fuel type j Number of power plants o
61. integer ifemi 1 no emission constraints Else formulate emission constraints ifpty flag for program type integer ifpty 1 for Lindo else cplex ifcty flag for case type integer ifcty 21 no DSM restricted case 2 for practical case 1 DSM DSM Record 3 71 ntext ndext nhext npext ntcan ndcan nhcan npcan ndsm nexnl ngrpt ngrph ngrpd ngrpdg ntext number of existing thermal plants integer ndext number of existing DPG plants integer nhext number of existing hydro plants integer npext number of existing pump storage plants integer ntcan number of candidate thermal plant types integer ndcan number of candidate DPG plant types integer nhcan number of candidate hydro plants integer npcan number of pump storage plants integer ndsm number of DSM options integer nexnl number of external suppliers integer ngrpt number of thermal plant sites integer ngrph number of hydro plant development phases integer ngrpd number of DSM groups integer ngrpdg number of DPG plant sites integer Record 4 nhrsb 1 nhrsb 2 nhrsb nblk nhrsh 1 number of hours of block 1 of the daily load curve integer eg 3 Record 5 ndyse 1 ndyse nsea ndyse i number of days of season 1 in a year integer LOAD DATA Record 6 is to be repeated for each season 1 Record 6 bload 1 1 bload 1 2 bload 1 nblk bload n
62. ion of each plant is limited to the capacity and availability of the plant in each period of the day U SY a XC for all j v p s t U Sa XE for all k v p s t c Reliability constraints The reliability of the power system is specified by setting a reserve margin Reliability constraints are defined in such a way that the total capacity of the plants and the power 7 generation avoided by efficient appliances should be greater than or equal to the peak demand plus the reserve margin in each year of the planning horizon Y XE 41 19 Y Y 0 L5 k l v V jal v4 I R 5 Jaemen E 2 Q iH r4 m for all t s d Annual energy constraints Annual energy constraints are defined to limit the energy generation of each thermal plant according to the capacity availability and time required for scheduled maintenance of the plant U N 8760 m XC Y for all j v t JP M gt Me S I ie I lt 8760 m XE for all j v t kpstv M gt Me ls S I I Hydro energy availability constraints The hydro energy constraints are defined for each hydro plant such that its total energy output in each season should not exceed the pre specified energy limit U N SH for all j s t v Candidate Hydro Plants 1 YU 5 0 N SH for all k s t v k Existing Hydro Plants p l e Hydro development constrai
63. is called the license file When you start an ILOG product it looks in the license file for an appropriate key if no appropriate key is found you are not allowed to run the product 45 Basically this chapter explains how to get your access key from ILOG if it is not already provided with your shipment and put it in your license file When editing the license file you must know that e The file must have exactly one line beginning with LICENSE e The file must have at most one line beginning with SERVER e Case is significant e Access keys must start at the first column no blanks are allowed before the key e There must be no empty or blank lines e Comment lines have a in the first column Worning License files must be edited and saved in text format If you are using Notepad to edit files this 1s automatic If you are using another text editor such as WordPad you must select the text format option when saving a license file To check that your file is saved in text format open an MS DOS command prompt window and type the following TYPE C ILOG ILM ACCESS ILM Also beware that some editors will automatically append the extension txt to your file Furthermore Windows Explorer may hide this extension To determine which is the real extension of the file you created open an MS DOS command prompt window ant type the following DIR C ILOG ILM If the extension is wrong rename your file in that window For exam
64. ission loss note of plant real hmntc annual maintenance hours of a unit of plant real littc life time of a unit of plant integer ctxtc fixed operating and maintenance cost of plant real 000 MW month ntutc fuel type plant integer nptyc plant type of plant integer ngrptc Site No of Thermal Plant integer Record 34 mnltc 1 mnltc 2 mnltc nyear mnltc j minimum number of units of plant to be selected in year j integer Record 35 ntntc 1 ntntc 2 ntntc nyear 81 ntntc j maximum possible incremental number of units tunnel with of plant in year j Maximum number of units of plant to be in the system in year j would be mnltc ntntc 7 CANDIDATE DPG PLANT DATA Data of a candidate DPG plant are represented by a set of 7 records i e records 36 37 38 39 40 41 and 42 These sets of 7 records should be repeated for each candidate DPG power plant Record 36 dcnam fdypc cmnudc dcnam name of candidate thermal plant 19 characters fdypc name of the fuel used 19 characters cmnudc units used to input fuel consumption rate e g 000 kg MWh 10 characters Record 37 fdcmsc calvdc emcdco2 emcdso2 emcdnox fdcmsc fuel consumption real unit 000 kg MWh calvde calorific value real unit kBtu kg emcdco2 CO emission per unit power generation of candidate DPG plant real kg MWh emcdso2 SO emission per unit
65. isting or committed power plant k vintage v Maximum appliances population under DSM program i among r type of consumer in year t Maximum capacity of candidate power plant j of vintage v Maximum capacity of existing or committed power plant k of vintage v Discounted capcity cost of candidate power plant j to be commissioned in vintage v Discounted cost of replacing one more efficient device in place of an inefficient existing one under DSM program type 1 by consumer category r in year t A fraction of the total installed appliances under DSM program 1 for consumer type r in use during period p of season s in year t Upper limit of annual emission of pollutant n in year t Emission of pollutant n per unit energy generation in plant type J Upper limit of Emission of pollutant n during the planning horizon Cost of per unit power generation from candidate power plant j of vintage v in block p of season s in year t Emission costs of per unit of emissions generated from candidate power plant J of vintage v in block p of season s in year t Emission factors from candidate power plant j of vintage v in block p of season s in year t FCkosty ECipsty EF Mky LS jpst LSkpst Ns Ost Pirps Cost of per unit power generation from existing or committed power plant of vintage v in block p of season s in year t Emission costs of per unit of emissions generated
66. isting thermal plant name of existing plant name of the fuel type used units used to input fuel consumption rate fuel consumption calorific value CO emission per unit power generation SO emission per unit power generation NO emission per unit power generation maximum operating capacity of the existing plant minimum operating capacity of plant availability of the plant earliest available year of plant heat rate of plant operating cost without fuel cost of plant transmission loss ratio of plant annual maintenance hours of plant year of retirement of plant fixed operating and maintenance cost of plant fuel type of plant plant type of plant Existing DPG Plant Data These sets of records for each existing DPG plant as name of existing DPG plant 1 name of the fuel type used units used to input fuel consumption rate fuel consumption calorific value emission per unit power generation of plant SO emission per unit power generation NO emission per unit power generation capacity of the existing plant 1 minimum operating capacity of plant 1 availability of the plant 1 earliest available year of plant 1 heat rate of plant i operating cost without fuel cost of plant 1 transmission loss ratio of plant 1 annual maintenance hours of plant 1 year of retirement of plant fixed operating and maintenance cost of plant 1 fuel type of plant 1 plant type of plant 1 transmission and distribution losses in year 23 t
67. itor such as WordPad you must select the text format option when saving a license file To check that your file is saved in text format open an MS DOS command prompt window and type the following TYPE C ILOG ILM ACCESS ILM Also beware that some editors will automatically append the extension txt to your fie Furthermore Windows Explorer may hide this extension To determine which is the real extension of the file you created open an MS DOS command prompt window ant type the following DIR C ILOG ILM If the extension is wrong rename your file in that window For example type the following CD C LOG ILM REN access ilm txt access ilm no access key found for this product run ilmcheck The licensed product cannot be run because there is no access key for it Check whether ILOG LICENSE FILE points to the right license file 56 a runtime key not supported in license file Your license file contains a runtime key a key beginning with the keyword RUNTIME Unlike other keys a runtime key cannot be stored in the license file you must hard code it directly in your application This is explained in the section Installing a Runtime Key please read it carefully To use your runtime key you will have to copy it to your application main source file as the initialization value for the ilm Prod license variable When doing this e Don t forget to also copy the LICENSE line of your license file e Add a sequence n at the end of every no
68. lable in the Cplex version 8 0 CPLEX gt display Display Options 115 display infeasibility diagnostics IIS constraints 59 problem display problem characteristics sensitivity display sensitivity analysis settings display parameter settings solution display existing solution Display what 4 5 5 How to install ILOG software CD into your computer Insert the ILOG CD setup into your computer there will be automatically a welcome screen of ILOG software appeared In this welcome window you can enter into the icons of Service for information on services supplied by the ILOG such as training consulting computer support etc For installing the ILOG CPLEX you should click the icon of Product where you can see the four ILOG components of ILOG Visualization Suite 1 ILOG Optimization Suite 2 ILOG License Manager 3 and ILOG Rules 4 There are several ILOG products installation given in the CD and you are able to use all of these if you have all licenses for these In this manual we just want to mention on the ILOG CPLEX and its associated components that needed to be installed 1 In the ILOG Visualization Suite Entering the component by clicking on the ILOG Visualization Suite you should then install the ILOG Server by simply following the instructions given by the software SOFTWARE COMPONENTS Welcome M i TN Powering Your Software _ Figure 4 5 5 1 60 SO
69. me to CPLEX Interactive Optimizer 8 6 6 4 cplex80 with Simplex Mixed Integer amp Barrier Optimizers 4 bin Copyright lt c gt ILOG 1997 2082 CPLEX is a registered trademark of ILOG exampl Type help for a list of available commands 9 3 include help folloved by a command name for more a lib information on commands H ILM CPLEX gt H Viewss H Nhan 7 OALDTS 3 7 Program Files public H 515650 C SOPHTEMP E Temp H unzipped 7 WINDOWS H E Removable Disk D Removable Disk E Local Disk F EH amp Compact Disc G Control Panel 28 My Network Places d Recycle Bin amp Internet Explorer Application Size 2 19 MB E 1 2 19 1 l My Computer Figure 4 5 4 2 BE Back gt j search yrolders GZ X A Address 71 msvce Norton Antivirus L Folders x Modified 4 Desktop convert 60KB Application 4 22 2002 8 00 AM BA My Documents Picplex 2 252 KB Application 4 22 2002 8 00 AM O My Music cplex 166 KB Text Document 10 6 2003 12 26 PM E Pictures gt cplex80 dill 2 328 KB Application Extension 4 22 2002 8 00 AM i 7 nhanait 1KB Text Document 6 11 2003 12 37 AM 6 48 My Computer Application a lim 2KB File 8 13 2003 7 19 PM ey 3v An Modified 4 22 2002 8 00 AM mip 2KB File 8 13 2003 7 29 PM E Local Disk C a nodelp xxx 203KB
70. n final line in the license string Then change the source of the main function to use the new registration protocol a lockfile erased or modified Server exiting On Windows NT the lock file used is C temp ilm_lock Verify that this file has not been removed 4 5 4 Running Cplex in Windows 4 5 4 1 Activating the license manager file Before running the cplex exe ILOG executive file you should activate the ILOG license manager as the following steps Accessing the windows directory of ILM as C ILOG ILM Running the ilmd exe in the ILM directory by double click the ilmd exe file as C ILOG ILM ilmd exe Waiting the DOS mode screen of running license finished as presented Figure 4 5 4 1 and below Oct 9 16 28 13 0 ILOG License Manager v2 60 pid 1368 Oct 9 16 28 15 I Using license file C ILOGVILM ACCESS ILM Oct 9 16 26 17 X TOKEN reservation period 0 sec Oct 9 16 26 19 H Licensed to asianinstitute thailand Oct 9 16 28 21 n Tokens for CPLEX on et218 1 I pcwinnt 57 EH e My Network Places If Ted Ed s Back now emi GBristory GS X A EE Address ca ILM Norton Antivirus Folders x ws dob c Desktop iln26bdoc ilmcheck 51 4 My Documents index n 2 My Music G My Pictures nhanait 5 08 My Computer 316 Floppy 4 6 Local Disk C JE AMPL H Bootable CD C cDPRO H Documents and Settings a C CO
71. nts dependence between hydro plant projects These constraints state that for each year only one hydro power plant could be selected for each hydro development that is a hydro site with various hydro plant projects constructed at different phases and the following hydro power plant will not be selected if the previous one has not been selected in the same hydro development J 2 yhe lt 1 for allt 1 year t i hydro development i j candidate hydro plant in v the hydro development 1 1 if phase j is constructed otherwise it is equal to zero 0 yhc j 4 lt for all t 1 t year t 1 hydro development i j candidate hydro plant in the hydro development 1 f Maximum potential capacity constraints Any site specific and other practical limitations in the addition of new plants are taken into account in maximum potential capacity constraints Here the number of plants of a particular type should not exceed the specified maximum number if such limitation exists T LY y lt a for all j g Fuel or resource availability constraints The fuel or resource availability constraints are defined to limit the energy generation of the plants by particular fuel types if such limitations exist during the planning horizon t S TI uS 0 d P263 LM 1020252025 EU SO Na lt RA s p 1 v V s 1 p lv l jv ME II t forallk j jare same type of plants h
72. of plant in year j Maximum number of units of plant to be in the system in year j would be mnldc j ntndc 7 83 Record 41 dclossr 1 dclossr 2 dclossr t dclossr t transmission and distribution losses in year t for candidate DPG plant in percentage Record 42 dcslbds 1 1 dcslbds 2 1 dcslbds 3 1 dcslbds nblk 1 dcslbds 1 nsea dcslbds 2 nsea dcslbds 3 nsea dcslbds nblk nsea dcslbds 1 J normalized available load in block j of season i real normalized to maximum capacity CANDIDA TE HYDRO PLANT DATA A set of 3 records i e records 43 44 and 45 is to be used in order to input data of a candidate hydro plant Record 43 hcnam name of the hydropower plant 19 characters Record 44 caphc ncmhc nplhc avahc cclhe cophc trlhc lifhc cfxhec ngrphc ngrpoc caphc unit capacity of hydropower plant real MW hcmhc earliest possible available year of hydropower plant integer hplhc maximum number of units of hydropower plant integer 84 avahc availability of hydropower plant real celhc capital cost of a unit of hydropower plant real 000 cophc operating costing of hydropower plant real 000 MWh trlhc transmission loss ratio of hydropower plant real lithe life of hydropower plant integer cfxhc fixed operating and maintenance cost of hydropower plant integer 00
73. ogram Folder Setup will add program icons to the Program Folder listed below You may type a new folder name or select one from the existing Folders list Click Next to continue Program Folders Microsoft Office Tools Norton AntiVirus 515 550 740 Figure 4 5 5 11 65 Installing ILOG Server c ilog servers2 doc manuals serv 52user paf Ele Figure 4 5 5 12 Setup has finished installing ILOG Server on your computer Please choose the option s you want below want to visit ILOG web site want to view the latest product information Click Finish to complete Setup Figure 4 5 5 13 2 ILOG Optimization Suite Similarly you should install the following components and sub components as Product ILOG Optimization Suite ILOG Solver gt ILOG Concert Technology do not install 64 X Product ILOG Optimization Suite ILOG Solver gt ILOG Solver do not install IA 64 X 66 Product gt ILOG Optimization Suite ILOG Cplex ILOG Concert Technology do not install 64 X Product ILOG Optimization Suite ILOG Cplex ILOG Solver do not install IA 64 X 3 ILOG License Manager This is very important component that should carefully setup into your computer as the following way and figures below Product ILOG License Manager ILOG License Manager do not install IA 64 X ILOG SOFTWARE COMPONENTS For
74. ogram icons to the Program Folder listed below You may type a new folder name or select one from the existing Folders list Click Next to continue Program Folders Ahead Nero Games ILOG Microsoft Office Tools Norton Anti irus Sis 650_740 Startup Figure 4 5 5 17 Installing ILOG License Manager Figure 4 5 5 18 69 7 ILOG License Manager Setup Installing ILOG License Manager 2 6 Setup Complete Setup has finished installing ILOG License Manager on your puter Please choose the option s you want below want to view the latest product information Click Finish to complete Setup Figure 4 5 5 19 Back 2 Search p Folders Gii Address Q C ILOG ILM v Go Norton Antivirus El In PDF ilm26bdoc File and Folder Tasks cJ doc ihostid J Adobe Acrobat Document 4 373 KB m Rename this file ilmcheck ilmd ilmlist dy Move this file ILOGLicenseManager isu ilmserv ISU File D Copy this file Publish this file to the Web E mail this file X Delete this File index HTML Document 1 KB 42 KB Other Places E My Documents Shared Documents ig My Computer a3 My Network Places ict 5 ex C ILOG ILM ihostid exe The hostname of this machine is ET218_SHARMA The hostid o this machine is 5 cc Sa he checksum of this hostid is 16585 ress any key to exit sua Details Gl ILOG Microsoft Word cx CHAILOG
75. ontinue the progress integrated Resource Planning Analyses Setup 2 Integrated Resource Planning Analyses Ch X Setup will add items to the group shown in the Program Group box You can enter a new group name or select one from the Existing Groups list Program Group Integrated Resource Planning Analyses Existing Groups Accessories Add Remove Plus 2002 FlashGet Integrated Resource Planning Analyses Microsoft Web Publishing Startup Winamp3 Figure 3 4 Selection of Program Group In this step the setup will add items to the group that shown in the Program Group box You can create a new group name for your easiness preferableness or select one from the exiting group list as displayed in Figure 3 4 To click Continue button for the next step 14 integrated Resource Planning Analyses Setup 43 Integrated Resource Planning x Destination File c J i Setup is creating program icons pd Figure 3 5 Creating program items integrated Resource Fianning Analyses Setup Integrated Resource P lannir Tr Figure 3 6 Integrated Resource Planning successful setup The Integrated Resource Planning program installation is successfully done after you click the OK button as indicated in Figure 3 6 Important notifications 15 a This IRP software is copyrighted to Energy Program AIT the program thus can be installed successfully in the computer in which there
76. orm in Form menu Here you should give all the necessary data for the power system that relates to the following ones Load Data This consists of normalized load of block j in season 1 and normalized to annual peak for both grid and local network system load factor in year I system peak demand in year 1 expected system reserve margin in year i real unit 0 1 Emission Data This consists of CO emission limit during the whole planning horizon CO emission limit during year 1 SO emission limit during the planning horizon SO emission limit during year I NOx emission limit during the planning horizon NOx emission during the year 1 If any of the emission limitation 1s set to zero the model will not formulate the respective emission constraint 22 Also there 1s a function of calculating the MAC of emissions with the emission data generated from the base case These data will be automatically updated in the model by using function of the setting base value emission data that designed in the emission data menu Please refer section of calculating MAC of emission in the IRP model Fuel Type Data The data of a fuel type can be input to the model as name of the fuel type 1 cost of fuel 1 fuel cost escalation rate of fuel 1 in year k Plant Type Data The data of a fuel type can be input to the model as name of a plant type Existing Thermal Plant Data These sets of records are to be repeated for each ex
77. ple type the following CD C ILOG ILM REN access ilm txt access ilm 4 5 1 3 Installing a Token Key This section describes the steps to install a token key A token key lets you use a product on a set of machines connected to a network A token key specifies the number of tokens granted which is the maximum number of simultaneous developers To be able to grant you a token key ILOG needs some information on a selected machine of your network That s why your shipment may not already contain your token key Steps 1 to 3 explain how to contact ILOG provide the required information and get your token key back 46 On the other hand if ILOG already has the required information your shipment may already include a sheet labelled Access Key which contains your token key In this case you don t have to follow Steps 1 to 5 and you can skip to Step 6 For an easy start up all ILOG products are shipped with a temporary evaluation license on a separate sheet If you want to start using this product immediately and take care of your token license later see the section Installing an Evaluation Key But don t forget to order your license key quickly Step 1 Choose the Client Using the Token There are two kinds of tokens e Floating tokens These tokens let you use the product on any machine of your network If you have purchased such a token skip steps 1 and 2 e Fixed tokens Such tokens let you use the product on one
78. quick actions that 1s not usable in the IRP interface screen Important notification a If we use the Notepad for input IRP file all the default format of the demo file should be remained For example the blank between 2 parameters lines in the input file should be same as default in the demo file a There are too many links among parameters and blocks of parameters so we need to recognize all items generated from changes in an input value For example when we change the number of candidate power plant there are block blocks of parameters related to that generated in the input file and we need to fill the input for those 4 2 1 Create a new IRP case To create a new IRP case with new input data following the procedures given below From the Pull down menu on the task bar select File menu Choose and click the New item in the File menu Then a Basic data frame form will appear with default zero values in all data boxes You are required to fill the data into theses data boxes as presented in Figure 4 2 1 and Figure 4 2 2 18 18 xl File Edit Forms Utilities Window Help Open Save Save As Close Form Close All Forms Print Ctrl P 1 trpdpg1 txt 2 trpdpg txt 3 trpi txt 4 nk5 txt Exit Wed 01 Oct 2003 15 30 12 Figure 4 2 1 Create a new IRP case File Edit Forms Utilities Window Help gt Basic Data Basic Data Optimal Output File Base Yea
79. r Starting No of of No Discount of No of Year Years Seasons of Blocks Factor FuelT ypes PlantT ypes p No Mo Emission Constraints No x Externality Cost Ne Solver Type Lindo DSM Case No Restriction Existing Plants Candidate Plants DSM External A Groups Thermal DPG Hydro Pump Renewable Thermal DPG Hydro Pump Renewable Options Suppliers Storage Technology Storage Technology Thermal DPG Hydro DSM o go o o glo go go Mo o ooo o o fo Wed 01 Oct 2003 15 31 53 Figure 4 2 2 Basic data form for a new IRP case 4 2 2 Basic data form There are following data boxes need to be filled in the basic data form Figure 4 2 2 as 19 Base year is the selected year that we are considering for calculating all discounted planning costs All the input output values in terms of currency saying prices should be the value of the base year during the whole planning period Starting year is the first year starting year of our planning horizon For example we consider planning horizon from 2006 2025 so the starting year should be 2006 in this case even we are doing the case study in year 2003 For the meaning of starting year in the electricity planning you should take the course of Electricity Economic and Planning from Professor Shrestha No of years 15 the total years considered in the planning horizon This parameter is needed for calculating all discounted costs and salva
80. r of available tokens A typical output of this command would be Ilmlist v2 60 51 License file C ILOG ILM ACCESS ILM Token server on asbmOl is UP PRODUCT Server 10 solaris tokens in use 5 on solaris available tokens 3 USER HOSTNAME PID PLATFORM IN USE SINCE USAGE ServUser 50112 31990 solaris May 22 09 36 40 192 127 05 3121 6 ServUser soll2 31990 solaris May 22 10 00 30 192 127 05 3121 7 ServUser soll2 31990 solaris 22 10 06 34 192 127 05 3121 9 ServUser soll2 31990 solaris May 22 10 10 55 192 127 05 3121 10 ServUser soll2 31990 solaris May 22 10 15 23 192 127 05 3121 11 Where to Go from Here If the previous steps have been successfully carried out you can start using your ILOG product Please refer to the product document set for further instructions Remember that every ILOG user at your site should set the ILOG LICENSE FILE environment variable as explained in Step 5 4 5 2 ILM Commands on Windows This section describes ILM commands on Windows 95 Windows 98 Windows Millenium Windows NT and Windows 2000 platforms 4 5 2 1 Summary of ILM Commands ILM commands are ilmd exe Runs the token server jihostid exe Prints the current host identification ilmcheck exe Checks for syntax errors in the license files ilmlist exe Shows token server status and available tokens ilmserv exe Installs or removes ILM service To run an ILM command you must start a MS DOS command prompt window ILM
81. ransmission loss ratio of plant real hmnte annual maintenance hours of plant real nrete year of retirement of plant integer fomte fixed operating and maintenance cost of plant real 000 MW month nfute fuel type of plant integer nptye plant type of plant integer EXISTING DPG PLANT DATA Records 19 20 21 and 22 give the data of existing DPG plants These sets of records are to be repeated for each existing DPG plant Record 19 dxnam fdypx cmnudx dxnam name of existing DPG plant i 19 characters ftypx name of the fuel type used 19 characters cmnudx units used to input fuel consumption rate 10 characters OOO kg MWh Record 20 fdcmsx calvdx emxdco2 emxdso2 emxdnox fdcmsx fuel consumption real 000 kg MWh calvdx calorific value real kBtu kg emxdco2 CO emission per unit power generation of plant real kg MWh 76 emxdso2 SO emission per unit power generation real ke MWh emxdnox NO emission per unit power generation real kg MWh Record 21 capde cpmde avade ncmde htrde copde trlde hmnde nrede fxode nfude npdye capacity of the existing plant i real MW cpmde minimum operating capacity of plant i real MW avade availability of the plant i ncmde earliest available year of plant i integer htrde heat rate of plant i real Mcal MWh copde operating cost without fuel cost of plant i real OOO MWh t
82. ride transmission loss ratio of plant i real hmnde annual maintenance hours of plant i real nrede year of retirement of plant i integer fxode fixed operating and maintenance cost of plant i real 000 MW month nfude fuel type of plant i integer npdye plant type of plant i integer Record 22 dlossr 1 dlossr 2 dlossr t dlossr t transmission and distribution losses in year t for existing DPG plant in percentage Record 23 dslbds 1 1 dslbds 2 1 dslbds 3 I dslbds nblk 1 dslbds 1 nsea dslbds 2 nsea dslbds 3 nsea dslbds nblk nsea 77 dslbds 1 j normalized available load in block j of season 1 real normalized to maximum capacity EXISTING HYDRO PLANT DATA Similar to existing thermal plants set of 3 records i e records 24 25 and 26 is needed for each hydropower plant Record 24 hxnam name of hydro plant 19 characters Record 25 caphe ncmhe avahe cophe trlhe nrehe fxohe caphe capacity of hydro plant real MW ncmhe earliest available year of hydro plant integer avahe availability of hydro plant real cophe operating cost of hydro plant real 000 MWh trihe transmission loss ratio of plant real nrehe retirement year of plant integer fxohe fixed operating and maintenance cost of plant real 000 MW month Record 26 seahe 1 seahe 2 se
83. s verbose mode d i On Windows 95 Windows 98 and Windows Millenium the TCP IP package must be installed 4 5 2 5 The ilmlist Command Syntax ilmlist The ilmlist command shows the token server status the number of available token licenses as well as the token licenses checked out reserved and queued by users L On Windows 95 Windows 98 and Windows Millenium the TCP IP package must be installed 4 5 2 6 The ilmserv Command Syntax ilmserv install remove 53 The ilmserv command installs or removes the service that launches ilmd on Windows NT and Windows 2000 You can check whether the service has been installed through the Service panel On Windows 95 Windows 98 and Windows Millenium ilmd is added to or removed from the startup registry so that it runs automatically when starting the computer Y Warning Do not call ilmserv with no argument 4 5 3 Troubleshooting This section lists error messages produced by ILM and the appropriate action you should take 4 5 3 1 The ilmcheck Command The following checklist may be used when the command ILMCHECK doesn t issue the expected message e Look for typing errors in the license file A typical mistake is to type a capital instead of 0 zero Also remember that case is significant e Check that the last line of the license file ends with a newline e Check that the license file contains no empty or blank lines e Check that all access keys st
84. se For example if you put 12 in the DSM options box it will create a detailed DSM data form in the menu Form in which you will describe what kind of DSM options 12 options means that replacement of incandescent lamps motors refrigerators air conditioners by efficient ones you consider for the IRP case External supply is the number of external electricity generation supplying that the utility purchasing electricity energy out of the country or out of the utility Groups is the number of various kinds of power plant groups group is like a power complex including some power sites Emission constraints here you have two options with Yes and No whenever you consider the case with without emission reduction constraints respectively Externalities cost you also have two options with Yes and No whenever you consider the case with without considering the externality costs respectively means that the values of emission costs in terms of ton of CO or SO or NOx putting in the detailed data form of power plants will be accounted in the expansion planning costs only if we select Yes option here otherwise the model will not account the emission costs for the IRP case DSM case similarly you have to select Yes option in this box if you consider Demand side management program in the IRP case otherwise the model will not put the DSM programs in formulating the expansion planning even you have put some detail
85. sea 1 bload nsea 2 bload nsea nblk 72 bload 4 j normalized load of block j in season 1 real normalized to annual peak Record 7 aloadf 1 aloadf 2 aloadf nyear aloadf 1 2 system load factor in year 1 real Record 8 pkyrs 1 pkyrs 2 pkyrs nyear pkyrs 1 2 system peak demand in year 1 real MW Record 9 rmarg 1 rmarg 2 rmarg nyear rmarg i expected system reserve margin in year i real unit 0 1 EMISSION DATA If any of the emission limit is set to zero the respective emission constraint will not be formulated by the model Record 10 temlc aemlc 1 aemlc 2 aeml nyear temlc CO emission limit during the whole planning horizon real tons aemlc i CO emission limit during year i real tons Record 11 temls aemls 1 aemls 2 aemls nyear temls SO emission limit during the planing horizon real tons 73 aemls i 2 SO emission limit during year i real G tons Record 12 temln acmin 1 2 acmln nyear temln NOx emission limit during the planning horizon real tons acmln i NOx emission during the year i real G tons FUEL TYPE DATA The data of a fuel type can be input to the model by records 13 amp I4 These two records are to be repeated for all fuel types Record 13 fulnm i name of the fuel type i 10 characters Record 14 fucst i f
86. tall 64 X 61 ILOG SOFTWARE COMPONENTS For Wroows Install LOG Server 5 2 LOG Gemer r amp delreenad wih a ser ol that depends on Ihe lype of machana you ane using Lb operating eystarn E ruris on and Tha compio you plan TO TET During instalation you havo to determing iho name of your compiler wynion ILOG Server Figure 4 5 5 4 EE ESS eee E ILOG SOFTWARE COMPONENTS For Wmpows Install LOG Server 5 2 ILOO Serrar far PC glatiarm OG gt Weiti SU Curnpilers Micrasofl Visual Unpacking Flacci pues Anh Ag P i Heroa TLO F Unpacking Serv EN c8 ERE IET Figure 4 5 5 5 62 SOFTWARE COMPONENTS For Waoows Install ILG Server 5 2 Sencar ig wf depends on tha type of ma perating system runs erver veu D unng inziallation you ha your compsler wersicin TSS LIG ener hup n picama Thes ritas fcr nd vell guide hugh th mat al the met process Peace rat UE Figure 4 5 5 6 Installing LOG Server 5 2 Wir Mrd dn the L G Sierra Seti pipon The prega Hall veal LOG cori tnr t ik lire ioci rrr ed Bhat ali paries before rurr ng His Debup pogam ck Carel Bo Gut Supr dered ther cler ara preaoraimie qux bares running Cbck Med continue wath the Setup program W
87. te Grid Row Ctl R Btarting No of No of Discount of No of Delete Grid Col Ctrl D ear Years Seasons of Blocks Factor FuelT ypes PlantT ypes E N M 3 No Mo Emission Constraints No Externality Cost No Solver Type Lindo DSM Case No Restriction Existing Plants Candidate Plants DSM External A 4 Groups Thermal DPG Hydro Pump Renewable Thermal DPG Hydro Pump Renewable Options Suppliers Storage Technology Storage Technology Thermal DPG Hydro DSM No of days of season in a year hu c2iiisis Figure 4 3 2 Edit menu Form menu In this pull down menu there consist of detailed data forms such as basic data load data emission data fuel type definition plant type definition existing and candidate plant data 26 demand side management and loss data etc How to input these data please refer section of file input presented previously IRPA File Edit Forms Utilities Window Help w Basic Basic Load Data Emission Data gt Fuel Type Data Plant Type Data Existing Thermal Plan Data o of Max No Discount No of No of Existing DPG Plant Data easons of Blocks Factor FuelT ypes PlantT ypes Existing Renewable Technology Plant Data o o o o Existing Hydro Plant Data Existing Pump Storage Plant Data Cost Solver Type lindo DSM Case No Restriction Candidate Thermal Plant Data Candidate Pl
88. tor The license file is in C ILOG ILM ACESS ILM To do so 1 Make sure that the LICENSE and SERVER lines are consistent If one or both of them are not in the license file insert whichever ones are missing at the beginning of the file If any of them are present check that they are identical to the ones you received from ILOG If they are not there 15 a problem In this case contact your ILOG sales representative 2 Append the new key or keys 1 the lines after the SERVER line to the end of the file If you are replacing an old key with a new one for the same product on the same machine delete or comment out the line with the old key to comment out a line put in the first column Step 7 Set Up the Environment The system variable LICENSE FILE must be set to the absolute path of the ACCESS ILM file To do this e Under Windows 95 Windows 98 or Windows Millenium edit the file AUTOEXEC BAT and add the following line set ILOG LICENSE FILE ZC MLOGWMLMNACCESS ILM To make this change effective you need to restart your computer e Under Windows NT you must be logged on as an Administrator Open the Control Panel and double click on the System icon In the Environment tab click somewhere in the System Variables box for example on the OS Enter ILOG LICENSE FILE in the Variable text field and enter the correct value in the Value field as shown in the following illustration 49 System Properties
89. umpf 1 1 tumpf 1 2 fumpf 1 nyear fucst i cost of fuel i real Gcal fumpf i k fuel cost multiplication factor of fuel i in year PLANT TYPE DATA The name of a plant type is specified in Record 15 Record 15 74 nplnam i name of plant type i EXISTING THERMAL PLANT DATA Records 16 17 and 16 give the data of existing plant These sets of records are to be repeated for each existing thermal plant Record 16 txnam ftypx cmnutx name of existing plant 19 characters ftypx name of the fuel type used 19 characters cmnutx units used to input fuel consumption rate 10 characters 000 kg MWh Record 17 fcmsx calvtx emxco2 emxso2 emxnox fcmsx fuel consumption real unit 000 kg MWh calvtx calorific value real unit kBtu kg emxco2 CO emission per unit power generation real kg MWh emxso2 SO emission per unit power generation real kg MWh emxnox NO emission per unit power generation real ke MWh Record 18 capte cpmte avate ncmte htrte copte trlte hmnte nrete fxote nfute nptye capte maximum operating capacity of the existing plant real MW cpmte minimum operating capacity of plant real MW 75 avate availability of the plant ncmte earliest available year of plant integer htrte heat rate of plant real Mcal MWh copte operating cost without fuel cost of plant real OOO MWh trite t
90. ure 4 4 12 38 a amp IRPA File Edit Forms Utilities Window Help m Basic Data Basic Data Optimal Output File Fi Op Base Year Starting No of No of Max No Discount of No of Year ears Seasons of Blocks Factor FuelTypes PlantTypes 1998 2 11 fia 11 fio Emission Constraints No gt Cost No v OSMCase Restiction gt Existing Plants Candidate Plants Thermal DPG Hydro P R ble Thermal DPG Hydro Renewabl Groups ump enewa o ump ene e Options Suppliers Storage Technology Storage Technology Thermal DPG Hydro DSM c o o MES Ns ge o Jo MEC Mo o o jo fo block of the daily No of days of A 4 4 4 4 Season 1 2 eon ea alle 183 182 Sat 04 Oct 2003 23 33 04 Figure 4 4 13 Select Utilities Output options for choosing what kind of IRP output components you expected to be shown out in the output file as Figure 4 4 14 Optimal IRP Data Analysis Un Base Year Starting No of No of Max No Discount of o of Year Years Seasons of Blocks Factor FuelT ypes PlantT ypes zoe 2 11 fia Emission Constraints No Cost No SolverType OSMCase Restriction Existing Plants Candidate Plants Thermal Db Hid Fane aude spun Hamna Groups p enew ro mp ene Options Suppliers Storage Technology Stor
91. uring Planning Period 2086 3823 Annual Expected NOx Emission Limit Unit k tons n n 101 9362 109 3578 121 6496 137 6624 163 9968 173 7279 175 9749 190 7359 173 2148 194 20 _ Total NOx Emission Limit During Planning Period 4859 1529 IRP Reading Lindo Cplex Data It takes time Please be patient Fri 17 Oct 2003 23 00 42 Figure 4 4 24 4 5 Familiar with CPLEX software 4 5 1 ILOG License Manager 4 5 1 1 Installation Directory For convenience it will be recommended that ILM is installed in the directory C ILOG ILM Access Keys To run an ILOG product you need an access key for this software An access key or key for short is a line of text containing user information about the product and its conditions of use plus a password which validates this information Here is an example of an access key NODE Views 2 400 NEVER INNFOOA60ACN 421 028 sun4 license 186 There are different types of keys You should refer to the specific section relating to your key type Key types can either be TOKEN EVAL NODE RNODE RUNTIME or SITE If you already have received your access key its type appears as the first word on the line In the example above the key type is TOKEN If you have to fill in an access key request form this form tells you which type of key you will get in return 4 5 1 2 License File In general access keys are located in the file C ILOG ILM ACCESS ILM This file
92. x Lindo Look in a msvcB ee convert File name Files of type Exe Files bat Open as read only 2 122077 65A00102 69855 08 01702 32287 21A01802 of hours 31126 57 01902 block ofthe 2350538500102 toad cane 811 96R00202 746 50R00302 3752 22R00402 No of days season ina j My Network P t 469 77R00502 164703 28603502 107606 14604502 109581 31A00103 140648 868A00203 62767 29401 703 29046 67A01803 27955 45A401903 2115 38R00103 29 99R00203 676 45R00303 3360 43R00403 Thu 02 Oct 2003 23 02 54 Figure 4 4 8 File Edit Forms Utilities Window Help Cplex Setting x SET MIP LIM TRE 300 SET MIP INT SET MIP ST PR SET MIP TOLMIPGAP 0001 OK bTAUTSU 34594 92A01901 2607 28R00101 901 53R00201 822 52R00301 Themal 4181 69R00401 520 64R00501 24 fo f 122077 65A00102 69855 08A01 702 32287 21A01802 No of hours 31126 57A01902 block ofthe 350 53500102 load curve 811 96R00202 746 50R00302 375222900402 ls sta 469 77R00502 164703 28603502 107606 14B04502 109581 31A400103 140648 88A00203 B2757 28A01703 29046 67A01603 27955 45401903 2115 36R00103 29 99R00203 676 45R00303 3360 43R00403 No of Max No Discount of Thu 02 Oct 2003 23 13 45 Figure 4 4 9 33

Download Pdf Manuals

image

Related Search

Related Contents

製品カタログ    Gigaset C590    取り扱い説明書  HDD Adapter  Programme des formations 2014  Submersible Sump Pump  

Copyright © All rights reserved.
Failed to retrieve file