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

minimize function within bounds #521

Open
wkotlarski opened this issue Feb 24, 2023 · 2 comments · May be fixed by #522
Open

minimize function within bounds #521

wkotlarski opened this issue Feb 24, 2023 · 2 comments · May be fixed by #522

Comments

@wkotlarski
Copy link

@Expander, I've written an interface to the unitarity limit calculation by Mark and Florian. I'm missing only one piece. I've scattering matrix eigenvalues and I need to find their minimum (actually their maximum but I can flip the sign). It would be good to specify the range within which the minimum should be searched for. Our current minimizer only takes a single start argument. Would it be possible to add it? I'm basicaly trying to reproduce behaviour of flags 442 and 443 from Sec. 4.2.2 from here.

@Expander
Copy link
Member

I think one would need to write a dedicated minimizer for such a use case or modify the algorithm of Minimizer, because the (naive) algorithm implemented in Minimizer just stops when it reaches a minimum, ignoring all bounds.

@wkotlarski
Copy link
Author

wkotlarski commented Feb 24, 2023

The idea would be to use One Dimensional Minimization. One potential issue is that it defines a gsl_function type. This however collides with

static double gsl_function(const gsl_vector*, void*);

The difference compared to the multidimensional case is that what is called there gsl_multimin_function is called gsl_function here.

@wkotlarski wkotlarski linked a pull request Feb 24, 2023 that will close this issue
@wkotlarski wkotlarski mentioned this issue Feb 26, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants