
This function follows the method published in [1].
The function calls a python script via rPython. Usage problems might occur when different python versions are used. The script was written and tested for python 2.7.12, sympy 0.7.6.
Recently, users went into problems with RJSONIO when rPython was used. Unless a sound solution is available, please try to reinstall RJSONIO in these cases.
symmetryDetection(
f,
obsvect = NULL,
prediction = NULL,
initial = NULL,
ansatz = "uni",
pMax = 2,
inputs = NULL,
fixed = NULL,
cores = 1,
allTrafos = FALSE
)
object containing the ODE for which as.eqnvec()
is defined
vector of observation functions
vector containing prediction to be tested
vector containing initial values
type of infinitesimal ansatz used for the analysis (uni, par, multi)
maximal degree of infinitesimal ansatz
specify the input variables
variables to concider fixed
maximal number of cores used for the analysis
do not remove transformations with a common parameter factor
[1] https://journals.aps.org/pre/abstract/10.1103/PhysRevE.92.012920
# NOT RUN {
eq <- NULL
eq <- addReaction(eq, "A", "B", "k1*A")
eq <- addReaction(eq, "B", "A", "k2*B")
observables <- eqnvec(Aobs = "alpha * A")
symmetryDetection(eq, observables)
# }
Run the code above in your browser using DataLab