Skip to content

Scripts associated to the paper to be published

Notifications You must be signed in to change notification settings

xavierign/MORDMAgro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MORDMAgro

This repo contains the scripts associated to the paper to be published titled "Many Objective Robust Decision-Making Model for Agriculture Decisions (MORDMAgro)"
by: Xavier Ignacio González – Federico Bert - Guillermo Podestá

example:

#### 0. environment ####

rm(list=ls()) 
gc()
cat("\014") 

current_path <- getActiveDocumentContext()$path 
setwd(dirname(current_path ))

#### 1. read data and parameters ####
source("functions/readInputData.R")
source("functions/loadParameters.R")
source("functions/mainFunctions.R")

location <- "Junín"
waterCont <- "mid"
soil_series <- 'Santa Isabel'
soil_family <- 'Hapludol típico'

locationData <- list(location=location,
                     soil_series=soil_series,
                     soil_family=soil_family,
                     water=waterCont)

#### structure de decision into strategies and scenarios and evaluate combination with: 
#### FWNM, FC, ROI, and Rotation
decision <- structureDecision(inputData,locationData)

#plot pure strategies
plotPureStrategies(decision)

#### add to evalDf Utility and Regrets
decision <- calculateMetrics(decision,parametersEU)

#### calculate objectives 
decision <- calculateObjectivesByStrategy(decision,parametersList)

#### obtain the strategies optimal front
decision <- getMOFront(decision, parametersList) 

#### plot MO
plotMOChart(decision)

#### explore scenarios by tree
classTree <- getTreeByObjective(decision,"E_ROI")

#### split the scenario set
decisionSplit <- splitByClassTree(decision, classTree)

#### explore vulnerabilities
plotTradeOff(decisionSplit,classTree)

#### compare two strategies by objective into Good and Bad
compare2strategies(decision,decisionSplit,classTree,66,1001)

libraries required

emoa
ggplot2
caret
rpart
rpart.plot
gridBase
cvar
ggtern
reshape2

About

Scripts associated to the paper to be published

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages