Provides methods for generating .dat files for use with the 'AMPL'
software using spatial data, particularly rasters. It includes support for
various spatial data formats and different problem types. By automating the
process of generating 'AMPL' datasets, this package can help streamline
optimization workflows and make it easier to solve complex optimization
problems. The methods implemented in this package are described in detail
in a publication by Fourer et al. (
The goal of TroublemakeR is to generate an r package which will help generate spatially explicit problems from spatial data to AMPL optimization software
You can install the development version of TroublemakeR from GitHub with:
# install.packages("devtools")
devtools::install_github("Sustainscapes/TroublemakeR")
This is a basic example which shows you how to solve a common problem:
library(TroublemakeR)
## basic example code