As Stich et al 2020 provided a growth curve for both sex combined, we draw a parameters set for unisex based on the growth parameters for males and females from the XML file.
```{r Growth in GR3D with temperature effect, echo = FALSE, warning=FALSE}
```{r Growth in GR3D with temperature effect, echo = FALSE, warning=FALSE}
#define parameters for both sex based on value from the XML file
#define parameters for both sex based on value from the XML file
...
@@ -364,6 +366,7 @@ growParUnisex <- growPar %>%
...
@@ -364,6 +366,7 @@ growParUnisex <- growPar %>%
```{r}
```{r}
# new ====
# new ====
#save all file that will be needed for optimization process as SOS data
Based on growth curves from Stich et al, 2020, we looked for growth parameters (L0, Linf, Kopt) and the thermal range regulating growth, that minimize the square distance between the mean growth curve derived from Stich et al, 2020 and the growth curve to implemented into the GR3D model for each meta-population.
```{r growth optimisation function Camille, echo = FALSE, warning=FALSE}
```{r growth optimisation function Camille, echo = FALSE, warning=FALSE}
Avec uniqument le jeu de Stich cela part en vrille avec objFn_B et computeSSE ( sans donner les mémes resultats argh) avec Topt < Tmin. On a des résulats corrects avec objFn ( avec Topt +- epsilon). Mais comme on va utiliser l'option en fixant Tmin et Tmax
<!-- Avec uniqument le jeu de Stich cela part en vrille avec objFn_B et computeSSE ( sans donner les mémes resultats argh) avec Topt < Tmin. On a des résulats corrects avec objFn ( avec Topt +- epsilon). Mais comme on va utiliser l'option en fixant Tmin et Tmax -->