Description Usage Arguments Author(s) Examples
View source: R/singleGAMSfile.R
This function merges GAMS code which is distributed over severals files into a single GAMS file.
1 | singleGAMSfile(modelpath = ".", mainfile = "main.gms", output = "full.gms")
|
modelpath |
The path where the model is stored |
mainfile |
The path to the main gams file (relative to the model path) |
output |
Name of the single output GAMS file. |
Jan Philipp Dietrich, Anastasis Giannousakis
1 2 3 4 5 | # copy dummymodel create single gms file out of it
file.copy(system.file("dummymodel",package="gms"),tempdir(), recursive = TRUE)
model <- paste0(tempdir(),"/dummymodel")
singlefile <- paste0(tempdir(),"/full.gms")
singleGAMSfile(modelpath=model, output=singlefile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.