From 30c29bb434499d3e2964fb03acb4d78a86adbf22 Mon Sep 17 00:00:00 2001 From: ednice Date: Mon, 26 Dec 2022 13:45:44 +0000 Subject: [PATCH] more readme --- MODFIRE-Prototype/README.md | 14 ++++++++++++++ MODFIRE-Prototype/makeSolFile.py | 4 ++-- MODFIRE-Prototype/makeSolFileMult.py | 2 +- MODFIRE-Prototype/seeResult.py | 2 +- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/MODFIRE-Prototype/README.md b/MODFIRE-Prototype/README.md index 6040f24..ed9718a 100644 --- a/MODFIRE-Prototype/README.md +++ b/MODFIRE-Prototype/README.md @@ -267,3 +267,17 @@ In Single Criteria optimization the following file is written to the Results fol outputPairsSingle.csv:- MU/Presc pairs for the solution found +# Step 5: Visualizing the example. + + +Run seeMap.py to see the Vale de Sousa Forest and it's sub-divisions + +Run plotPareto.py to plot a 2d Pareto frontier using the Results/parento.csv file (Only works if there are only 2 criteria in the pareto.csv file) + +Run seeResults.py to observe the contents of the solutions in the outputPairsMulti.csv file + +Run the makeSolFile.py and then the Maps/maps.py file to paint the solution in the outputPairsSingle.csv onto files in the Maps/MapOutput folder + +Run the makeSolFileMulti.py and then the Maps/maps.py file to pick a solution from the outputPairsSingleMult.csv file and paint the solution onto files in the Maps/MapOutput folder + + diff --git a/MODFIRE-Prototype/makeSolFile.py b/MODFIRE-Prototype/makeSolFile.py index 9d520a4..fc751a7 100644 --- a/MODFIRE-Prototype/makeSolFile.py +++ b/MODFIRE-Prototype/makeSolFile.py @@ -2,9 +2,9 @@ import csv, re, sqlite3 fy= open("Maps/MapInputFile.txt", "w+") -con = sqlite3.connect("res/database_modfire.db") +con = sqlite3.connect("database_modfire.db") cur = con.cursor() -Filemame = "Results/outputPairs.csv" +Filemame = "Results/outputPairsSingle.csv" f=open(Filemame,"r") lines=f.readlines() result=[] diff --git a/MODFIRE-Prototype/makeSolFileMult.py b/MODFIRE-Prototype/makeSolFileMult.py index 4c5a6c2..98dc62a 100644 --- a/MODFIRE-Prototype/makeSolFileMult.py +++ b/MODFIRE-Prototype/makeSolFileMult.py @@ -2,7 +2,7 @@ import csv, re, sqlite3 fy= open("Maps/MapInputFile.txt", "w+") -con = sqlite3.connect("res/database_modfire.db") +con = sqlite3.connect("database_modfire.db") cur = con.cursor() Filemame = "Results/outputPairsMulti.csv" diff --git a/MODFIRE-Prototype/seeResult.py b/MODFIRE-Prototype/seeResult.py index 0c14768..ed56be4 100644 --- a/MODFIRE-Prototype/seeResult.py +++ b/MODFIRE-Prototype/seeResult.py @@ -1,6 +1,6 @@ import csv, re, sqlite3 -con = sqlite3.connect("res/database_modfire.db") +con = sqlite3.connect("database_modfire.db") cur = con.cursor() Filemame = "Results/outputPairsMulti.csv" f=open(Filemame,"r") -- libgit2 0.21.2