A.3.
Instructions
for Introducing
Data Cards into Program DAMBLD
163
The number of IF statements immediately after statements 120 and 260
will be equal to the number of possible new projects (MM — N).
IRA, IRB, IRE, . . . , IRZ represents the indices of different projects
that may be built at any one site. In all cases the bound is calculated for
the project whose argument is equal to IRA. Thus in the statements following statement 130 there are (MM — N) groups of equivalent statements,
such as
140 IRA = 7
IRB = 8
IRE = 6
In this case the bound will be calculated for reservoir 7; since reservoirs
8 and 6 may also be built at this site, their corresponding values of PVBAR
will be ignored in the bound calculations. This is ensured by introducing
below statement 220:
GODBAR(IRB,J)=0
GODBAR(IRE,J)=0
GODBAR(IRZ,J)=0
A.3.2.4. SUBROUTINE EXTDAT
Between the comment statements INITIAL CONDITIONS and
EXISTING RESERVOIRS, the values of the variable IGORET(l)
through SUM A can be inserted with any desired format. Their significance
is outlined in the list of variables in Section A.5.1.
A.3.2.5. SUBROUTINE SPEDAT(KX)
The number of IF statements immediately after the statement LOGICAL OPTIME will be equal to the number of possible new projects
(MM — N). Note that there are (MM — N) statements similar to the
following:
10 IF(.NOT.OPTIME) GO TO 20
Between each two .NOT.OPTIME statements occurs information on the
network configuration changes according to whether it is decided to add or
remove a particular dam from the network.
If it is decided to add a dam to the system, OPTIME = .TRUE, and
the statements immediately after the .NOT.OPTIME statement describe
the changes needed to incorporate the dam in the network. If it is decided
not to add the dam to the network, OPTIME = .FALSE. , and the statements immediately after the first numbered statement following the .NOT.
Instructions
for Introducing
Data Cards into Program DAMBLD
163
The number of IF statements immediately after statements 120 and 260
will be equal to the number of possible new projects (MM — N).
IRA, IRB, IRE, . . . , IRZ represents the indices of different projects
that may be built at any one site. In all cases the bound is calculated for
the project whose argument is equal to IRA. Thus in the statements following statement 130 there are (MM — N) groups of equivalent statements,
such as
140 IRA = 7
IRB = 8
IRE = 6
In this case the bound will be calculated for reservoir 7; since reservoirs
8 and 6 may also be built at this site, their corresponding values of PVBAR
will be ignored in the bound calculations. This is ensured by introducing
below statement 220:
GODBAR(IRB,J)=0
GODBAR(IRE,J)=0
GODBAR(IRZ,J)=0
A.3.2.4. SUBROUTINE EXTDAT
Between the comment statements INITIAL CONDITIONS and
EXISTING RESERVOIRS, the values of the variable IGORET(l)
through SUM A can be inserted with any desired format. Their significance
is outlined in the list of variables in Section A.5.1.
A.3.2.5. SUBROUTINE SPEDAT(KX)
The number of IF statements immediately after the statement LOGICAL OPTIME will be equal to the number of possible new projects
(MM — N). Note that there are (MM — N) statements similar to the
following:
10 IF(.NOT.OPTIME) GO TO 20
Between each two .NOT.OPTIME statements occurs information on the
network configuration changes according to whether it is decided to add or
remove a particular dam from the network.
If it is decided to add a dam to the system, OPTIME = .TRUE, and
the statements immediately after the .NOT.OPTIME statement describe
the changes needed to incorporate the dam in the network. If it is decided
not to add the dam to the network, OPTIME = .FALSE. , and the statements immediately after the first numbered statement following the .NOT.
