Closed uwesterr closed 4 years ago
done
calcPredictionsForGaOptimization = function(optPara, allPara, parameter_tibble, RkiDataWithR0N0,input) {
# calculate the predictions for the optimzaition loop, i.e. GA algorithm
denormPara <- denormalizePara(optPara, parameter_tibble)
# cat("para",unlist(denormPara,"\n"))
for(i in 1 : length(optPara)){
allPara[[i]] <- denormPara[[i]]
}
inputForOptimization <- input # to make setting reduzierung_rtx easy and fast
inputVarNames <- names(allPara)
for (inputVarName in inputVarNames ) {
inputForOptimization[[inputVarName]]<- allPara[[inputVarName]]
}
create a function to prepare an input vector to Rechenkern based on optimisation parameters to replace
in a general way, something like
inputForOptimization = merge(input, allPara)