Skip to content

Commit

Permalink
Merge pull request #27 from matsim-vsp/kaibranch
Browse files Browse the repository at this point in the history
make nonCo2benefitsFactor actually work
  • Loading branch information
kainagel authored Jun 7, 2024
2 parents cdb0434 + becb7d2 commit 165b749
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/tub/vsp/bvwp/computation/ComputationKN.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ static double nkvOhneKR_induz(Modifications modifications, Amounts amounts, Bene
b_all -= b_co2_verl;
b_all -= b_co2_induz;

// ### then rescale the remaining benefit with the corresponding modification:

b_all *= modifications.nonCo2BenefitsFactor();

// ### then add the CO2 components with the new values:

// co2 Bau
Expand Down
36 changes: 18 additions & 18 deletions src/main/java/org/tub/vsp/bvwp/users/kn/RunLocalCsvScrapingKN.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,28 +88,28 @@ public static void main(String[] args) throws IOException{
// plots1.add( figures1.dtv() );
// plots1.add( figures1.fzkmNew() );
//
// plots2.add( figures2.invcost_tud_vs_orig() );
// plots2.add( figures2.nkvVsDtv() );
//
plots2.add( figures2.invcost_tud_vs_orig() );
plots2.add( figures2.nkvVsDtv() );

// plots2.add( figures2.cost_VS_nkvOrig() );
//

// plots2.add( figures2.costOrigVsCumulativeCostOrig() );
//
// plots2.addAll( figures2.nkvElttimeCarbon215(5 ) );
//
// plots2.add( figures2.invcosttud_vs_nkvEl03Cprice215Invcosttud( 5) );
// plots2.add( figures2.cumulativeCostTud_vs_nkvEl03Cprice215InvcostTud(5 ) );
// plots2.add( figures2.cumulativeCostTud_vs_nkvEl03Cprice215InvcostTud(Integer.MAX_VALUE ) );
// plots2.add( figures2.invcosttud_vs_nkvEl03Cprice215Invcosttud( Integer.MAX_VALUE) );
//
// plots2.add( figures2.invcosttud_vs_nkvElttimeCarbon700Invcosttud(5) );

plots2.addAll( figures2.nkvElttimeCarbon215(5 ) );

plots2.add( figures2.invcosttud_vs_nkvEl03Cprice215Invcosttud( 5) );
plots2.add( figures2.cumulativeCostTud_vs_nkvEl03Cprice215InvcostTud(5 ) );
plots2.add( figures2.cumulativeCostTud_vs_nkvEl03Cprice215InvcostTud(Integer.MAX_VALUE ) );
plots2.add( figures2.invcosttud_vs_nkvEl03Cprice215Invcosttud( Integer.MAX_VALUE) );

plots2.add( figures2.invcosttud_vs_nkvElttimeCarbon700Invcosttud(5) );
// plots2.add( figures2.invcost50_vs_NkvEl03Cprice700InvcostTud() );
// plots2.add( figures2.cumcost50_vs_nkvEl03Cprice700InvcostTud() );
// plots2.add( figures2.invcosttud_vs_nkvElttimeCarbon2000Invcosttud() );
//
// plots2.add( figures2.carbon_vs_nkvEl03Cprice215Invcost50Capped5() );
//
// plots2.add( figures2.nco2v_vs_vs_nkvElttimeCarbon700Invcosttud(5 ) );
plots2.add( figures2.invcosttud_vs_nkvElttimeCarbon2000Invcosttud() );

plots2.add( figures2.carbon_vs_nkvEl03Cprice215Invcost50Capped5() );

plots2.add( figures2.nco2v_vs_vs_nkvElttimeCarbon700Invcosttud(5 ) );

plots2.add( figures2.carbon_vs_inv() );

Expand Down

0 comments on commit 165b749

Please sign in to comment.