summaryrefslogtreecommitdiff
path: root/CakeInit.R
blob: 72cb433972680a7d855b3c72068c3aebc7b0386d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#$Id$

# Purpose: Load the modules required by CAKE
# Call with chdir=TRUE so it can load our source from the current directory
# Tessella Project Reference: 6245, 7247, 8361, 7414

# Copyright (C) 2011-2016 Syngenta

#    The CAKE R modules are free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
# 
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
# 
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

library(FME)
library(Rsolnp)
source("CakeModel.R")
source("CakeOlsFit.R")
source("CakeIrlsFit.R")
source("CakePlot.R")
source("CakeNullPlot.R")
source("CakeCost.R")
source("CakePenalties.R")
source("CakeMcmcFit.R")
source("CakeSummary.R")
source("CakeErrMin.R")
source("CakeHelpers.R")
source("CakeSolutions.R")

options(width=1000)
options(error=recover)
options(warn=-1)

# When running from C#, this must match the C# CAKE version
CAKE.version<-"3.3"

# The number of data points to use to draw lines on CAKE plots.
CAKE.plots.resolution<-401

Contact - Imprint