Nothing
## Write a list of linear programming (LP) constraints into a file while will be
## read by interactive cplex solver to perform network optimisation.
##
## Enio Gjerga, 2020
writeLPFile <- function(data = data, pknList = pknList, inputs = inputs,
alphaWeight=1, betaWeight=0.2, scores=scores,
mipGAP=0.1, poolrelGAP=0.01, limitPop=100, poolCap=100,
poolIntensity=0, poolReplace=2,timelimit=1800,
threads=threads, measWeights=NULL, repIndex, condition="") {
options(scipen=999)
dataMatrix <- buildDataMatrix(data = data, pknList = pknList, inputs = inputs)
variables <- create_variables_all(pknList = pknList, dataMatrix = dataMatrix)
oF <- write_objective_function_all(dataMatrix = dataMatrix,
variables = variables,
alphaWeight = alphaWeight,
betaWeight = betaWeight, scores=scores,
measWeights=measWeights)
bounds <- write_boundaries(variables = variables, oF=oF)
binaries <- write_binaries(variables = variables)
generals <- write_generals(variables = variables, oF = oF)
c0 <- write_constraints_objFunction_all(variables = variables,
dataMatrix = dataMatrix)
c1 <- write_constraints_1_all(variables = variables)
c2 <- write_constraints_2_all(variables = variables)
c3 <- write_constraints_3_all(variables = variables)
c4 <- write_constraints_4_all(variables = variables)
c5 <- write_constraints_5_all(variables = variables)
c6 <- write_constraints_6(variables = variables, dataMatrix = dataMatrix,
inputs = inputs, pknList = pknList)
c7 <- write_constraints_7(variables = variables, dataMatrix = dataMatrix,
inputs = inputs, pknList = pknList)
c8 <- write_constraints_8(variables = variables, inputs = inputs,
pknList = pknList)
c9 <- write_loop_constraints(variables = variables, pknList = pknList,
inputs = inputs)
allC <- all_constraints_wLoop(c0 = c0, c1 = c1, c2 = c2, c3 = c3, c4 = c4,
c5 = c5, c6 = c6, c7 = c7, c8 = c8, c9 = c9)
writeSolverFiles(condition=condition, repIndex=repIndex, oF=oF,
allC=allC, bounds=bounds, binaries=binaries,
generals=generals, mipGAP=mipGAP,
poolrelGAP=poolrelGAP, poolReplace=poolReplace,
limitPop=limitPop, poolCap=poolCap,
poolIntensity=poolIntensity, timelimit=timelimit,
threads=threads)
return(variables)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.