Skip to content

Conversation

guitargeek
Copy link
Contributor

It should not be possible to convert the MnStrategy object to an
integer, because that means the strategy can be used in arbitrary ways
inside the Minuit 2 algorithms.

It would be better if all parameters dependent on the strategy can be
retreived with explicit getter frunctions from the strategy object, such
that all strategy dependence is clear just from reading the public
interface.

To be followed up by improving the documentation.

Follows up on e1b4757, introducing the same strategy dependene
in Fumili as in the main Minuit 2 implementation in
VariableMetricBuilder.
It should not be possible to convert the MnStrategy object to an
integer, because that means the strategy can be used in arbitrary ways
inside the Minuit 2 algorithms.

It would be better if all parameters dependent on the strategy can be
retreived with explicit getter frunctions from the strategy object, such
that all strategy dependence is clear just from reading the public
interface.

To be followed up by improving the documentation.
Settters are redundant, because if you want to create a certain
strategy, then you can just use the constructor.

Getters for the overall strategy level are unsafe, because they allow
you to introduce strategy dependence in a way that is not explicitly
clear from the public MnStrategy API.
Copy link

github-actions bot commented Oct 8, 2025

Test Results

    21 files      21 suites   3d 21h 4m 23s ⏱️
 3 691 tests  3 691 ✅ 0 💤 0 ❌
75 636 runs  75 636 ✅ 0 💤 0 ❌

Results for commit d6d5964.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant