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
[Problem] Increase the functional test coverage of the popularity contest algorithm #9683
Comments
Thanks for taking a look. I could not assign it to you as requested. The system does not allow me to. I am considering in parallel a mechanism to facilitate this creation of sketches. I will cross post here when I look into it. |
I have written a small utility to extract sketches to Python code: One sketch is:
The other is:
That is the output of the tool. After pasting it into console, or a macro, one needs to |
Is there an existing issue for this?
Version
0.21 (Development)
Full version info
Subproject(s) affected?
Sketcher
Problem description
There is a heuristic algorithm in the solver used to determine which constraints should be suggested to the user as conflicting or redundant. It is called "Popularity contest".
Every year we receive a couple of case where FC's proposal is wrong and we modify the algorithm. As we do not have unit tests, it is possible that by "fixing" one case we might break others. The impact of having functional unit tests can be significant.
The solution is to write functional tests using the sketches that we are provided.
#9474 (comment)
#9474 (comment)
Here there are two first candidate sketches:
https://forum.freecad.org/viewtopic.php?p=679816&sid=88c017510dd04787086a38aa296e315e#p679816
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: