Explorar el Código

update elastic

mkilani hace 3 años
padre
commit
72aa64c71e
Se han modificado 2 ficheros con 10 adiciones y 9 borrados
  1. 3 3
      scbd.dat
  2. 7 6
      src/main.f

+ 3 - 3
scbd.dat

@@ -40,9 +40,9 @@ fce=6.0
 fse=6.0
 
 #(* NUMBER OF COMMUTERS FOR EACH O/D PAIR *)
-Nsc=100.0
-Nce=100.0
-Nse=100.0
+Nsc=110.465
+Nce=110.465
+Nse=118.155
 
 #(* EXTERNAL COST *)
 

+ 7 - 6
src/main.f

@@ -32,9 +32,9 @@
       POPCE0 = POPCE
       POPSE0 = POPSE
 
-      MUSC = 0.01D0
-      MUCE = 0.01D0
-      MUSE = 0.01D0 
+      MUSC = 0.20D0
+      MUCE = 0.20D0
+      MUSE = 0.20D0 
 
       DO 1, I=1,90
       LINE0(I)='-'
@@ -492,7 +492,7 @@ C  ---------------------------------------------
       POPSEOLD = POPSE
       POPSC = DEMAND(POPSC0, MUSC , FSCT, C1T)
       POPCE = DEMAND(POPCE0, MUCE , FCET, C2T)
-      POPSE = DEMAND(POPSE0, MUSE , FSCT+FCET, C3T)
+      POPSE = DEMAND(POPSE0, MUSE , FSET, C3T)
       ERR = ZERO
       ERR = ERR + QUADERR(POPSC,POPSCOLD)
       ERR = ERR + QUADERR(POPCE,POPCEOLD)
@@ -547,7 +547,7 @@ CC  ----------------------------------------------
       POPSEOLD = POPSE
       POPSC = DEMAND(POPSC0, MUSC , FSCT, C1T)
       POPCE = DEMAND(POPCE0, MUCE , FCET, C2T)
-      POPSE = DEMAND(POPSE0, MUSE , FSCT+FCET, C3T)
+      POPSE = DEMAND(POPSE0, MUSE , FSET, C3T)
       ERR = ZERO
       ERR = ERR + QUADERR(POPSC,POPSCOLD)
       ERR = ERR + QUADERR(POPCE,POPCEOLD)
@@ -580,7 +580,8 @@ C     POPSE = POPSE0
       IMPLICIT NONE
       DOUBLE PRECISION DEMAND, POP, MU, C0, C 
 
-      DEMAND = POP ** ( 1.0D0 - MU * ( C/C0 - 1.0D0) )
+C     DEMAND = POP ** ( 1.0D0 - MU * ( C/C0 - 1.0D0) )
+      DEMAND = POP * ( C/C0 ) ** ( - MU )
 
       RETURN
       END