Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[evol assembly] Error in find_max_fitness_2d if trait value on the boundary #9

Open
kunstler opened this issue Jan 4, 2018 · 0 comments
Labels

Comments

@kunstler
Copy link

kunstler commented Jan 4, 2018

If one trait is on the boundary assembly generate an error because of the function nmkb in maximize_logspace. As stated in the documentation of dfoptim::nmkb the starting value (of the traits for the optimisation of the fitness) should be stricly between the lower and upper bounds (A starting vector of parameter values. Must be feasible, i.e. lie strictly between
lower and upper bounds.
).

see https://github.com/traitecoevo/trait_gradients/issues/38

One solution could be to had an exception handling in 'community_new_types_maximum_fitness ' as it is done for other convergence problem such as

  if (attr(ret, "fitness") < eps_positive_fitness) {
    plant_log_max_fitness(paste0("Best point had nonpositive fitness: ",
                                 attr(ret, "fitness")))
    return(empty(sys, ret))
  }
@kunstler kunstler changed the title Error in find_max_fitness_2d if traits value on the boundary Error in find_max_fitness_2d if trait value on the boundary Jan 4, 2018
@dfalster dfalster changed the title Error in find_max_fitness_2d if trait value on the boundary [evol assembly] Error in find_max_fitness_2d if trait value on the boundary Jun 18, 2024
@dfalster dfalster moved this to Backlog in Plant model development Jun 18, 2024
@dfalster dfalster added the bug label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

2 participants