Brian Kreis
April 24, 2018
Obeservational Data Sets
Designed Experiments
Concrete is integral for the infrastructure of industrial societies. Its strength and the optimal makeup to improve that strength have been widely studied. We will look at the various proportions of mixture ingredients to maximize compressive strength.
The ingredients of interest are cement, fly ash, blast furnace slag, water, superplasticizer, coarse & fine aggregate. All at a scale of kg/m3.


The predictors will enter the model as a proportion of the total mixture
Bagged and boosted regression trees & random forest models
Will use 10-fold cross validation
###For MAC:
#library(doMC)
#registerDoMC(cores = 2)
###For Windows
library(parallel)
library(doParallel)
cluster <- makeCluster(detectCores() - 1) # convention to leave 1 core for OS
registerDoParallel(cluster)
#caret package functions will now use multiple cores
#turn off parallel processing
stopCluster(cluster)
#resume use of the sequential backend
registerDoSEQ()
Simple way to check speed improvements of code
library(tictoc)
tic(
Sys.sleep(3)
)
toc()
3 sec elapsed
Parallel coordinate plot showing performance for each cross validation set

Parallel coordinate plot showing performance for each cross validation set

Neural Network - 4.2 RMSE (a)
Boosted Tree - 3.9 RMSE (b)
Cubist - 4.5 RMSE (c )

Now that we know which models appear to be best at predicting, how do we find the improved mixtures?
A numerical search routine
Once we determine potential improved mixtures, further experiments will be needed
The search routines begin with intital starting values
For Nelder-Mead multiple starting places should be used and results compared
Values which are impractical or impossible are avoided by setting the amount
Predicted compressive strength and mixture composition compared to our highest values of 81.75, 79.99 and 78.8 in our training set:


Two desirability functions for cost and strength

The following link will bring you to the Applied Predictive Modeling textbook code:
https://github.com/cran/AppliedPredictiveModeling/tree/master/inst/chapters