-
Notifications
You must be signed in to change notification settings - Fork 49
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
Concise code for britgas
#332
base: main
Are you sure you want to change the base?
Conversation
Thanks @gdalle ! It would be a good add. The code was automatically generated from an Ampl model. Could you provide a small Julia script that test if the constraint and function values are the same for a number of random points? |
Yes that's what I meant by "needs tests", I haven't even run my code so it's probably wrong as hell, hence the draft status. OptimizationProblems.jl contains 120 000 lines of code for a couple hundreds of problems, and it took me (an optimization and Julia expert) several hours to simplify just one of them. That was partly because the code was autogenerated and partly because I couldn't find a mathematical formulation for the problem. But still, doing this for every problem is absolutely unthinkable, unless they're all much simpler than this one. |
Yes, this is difficult to do. I didn't plan to do it unless we have a very good cause. |
No, |
Keep in mind that OptimizationProblems is still WIP and "massively" under-staffed. |
More precisely it was automatically generated from an Ampl model that was automatically generated from a SIF model. |
Of course, and it's already a very valuable resource! I'm just being a little more careful about its breadth of coverage than I used to be. But if you're aware of more recent benchmark sets (typical of modern optimization but not necessarily deep learning) I'd be interested in lending a hand. |
Something like this maybe: https://github.com/benchopt/benchopt?tab=readme-ov-file#available-benchmarks |
Done in #333, I think we can close this one |
I am trying to reverse-engineer
britgas
to make it more readable instead of the current 4297-LOC mess.Not only would this ease maintenance, it would also reduce the burden on the compiler, as we figured out when
britgas
crashed SparseConnectivityTracer.Needs tests