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

MadNLPGraph Installation #269

Open
pjavanrood opened this issue Jul 21, 2023 · 5 comments
Open

MadNLPGraph Installation #269

pjavanrood opened this issue Jul 21, 2023 · 5 comments

Comments

@pjavanrood
Copy link

I have tried installing MadNLPGraph multiple times, however I get the error below every time.
I have tried re-installing Julia and all the dependencies, however the issue doesn't seem to resolve.
I would appreciate your help.

✗ MadNLP
✓ JuMP
✓ GLPK
✓ Plasmo
✗ MadNLPGraph
22 dependencies successfully precompiled in 148 seconds. 51 already precompiled.
13 dependencies precompiled but different versions are currently loaded. Restart julia to access the new versions
2 dependencies errored. To see a full report either run import Pkg; Pkg.precompile() or load the packages
2 dependencies had warnings during precompilation:
┌ MathOptInterface [b8f27783-ece8-5eb3-8dc8-9495eed66fee]
│ WARNING: method definition for promote_operation at /home/pjavan/.julia/packages/MathOptInterface/YDdD3/src/Utilities/mutable_arithmetics.jl:74 declares type variable N but does not use it.
│ WARNING: method definition for promote_operation at /home/pjavan/.julia/packages/MathOptInterface/YDdD3/src/Utilities/mutable_arithmetics.jl:81 declares type variable N but does not use it.
│ WARNING: method definition for #normalize_and_add_constraint#124 at /home/pjavan/.julia/packages/MathOptInterface/YDdD3/src/Utilities/constraints.jl:13 declares type variable T but does not use it.
│ WARNING: method definition for get at /home/pjavan/.julia/packages/MathOptInterface/YDdD3/src/Utilities/struct_of_constraints.jl:83 declares type variable T but does not use it.
│ WARNING: method definition for set at /home/pjavan/.julia/packages/MathOptInterface/YDdD3/src/Utilities/universalfallback.jl:415 declares type variable T but does not use it.
│ WARNING: method definition for modify at /home/pjavan/.julia/packages/MathOptInterface/YDdD3/src/Utilities/universalfallback.jl:462 declares type variable F but does not use it.
│ WARNING: method definition for check_type_and_multiple_names at /home/pjavan/.julia/packages/MathOptInterface/YDdD3/src/Utilities/universalfallback.jl:516 declares type variable T but does not use it.
│ WARNING: method definition for check_type_and_multiple_names at /home/pjavan/.julia/packages/MathOptInterface/YDdD3/src/Utilities/universalfallback.jl:527 declares type variable T but does not use it.
│ WARNING: method definition for get at /home/pjavan/.julia/packages/MathOptInterface/YDdD3/src/Bridges/Constraint/indicator_sos.jl:186 declares type variable CI but does not use it.

┌ MutableArithmetics [d8a4904e-b15c-11e9-3269-09a3773c0cb0]
│ WARNING: method definition for mutable_operate_to_fallback at /home/pjavan/.julia/packages/MutableArithmetics/0Y9ZS/src/interface.jl:502 declares type variable N but does not use it.
│ WARNING: method definition for mutable_operate_fallback at /home/pjavan/.julia/packages/MutableArithmetics/0Y9ZS/src/interface.jl:505 declares type variable N but does not use it.
│ WARNING: method definition for #int_test#8 at /home/pjavan/.julia/packages/MutableArithmetics/0Y9ZS/src/Test/config.jl:9 declares type variable T but does not use it.
│ WARNING: method definition for #scalar_test#13 at /home/pjavan/.julia/packages/MutableArithmetics/0Y9ZS/src/Test/config.jl:9 declares type variable T but does not use it.
│ WARNING: method definition for #quadratic_test#14 at /home/pjavan/.julia/packages/MutableArithmetics/0Y9ZS/src/Test/config.jl:9 declares type variable T but does not use it.
│ WARNING: method definition for #array_test#34 at /home/pjavan/.julia/packages/MutableArithmetics/0Y9ZS/src/Test/config.jl:9 declares type variable T but does not use it.
│ WARNING: method definition for #sparse_test#36 at /home/pjavan/.julia/packages/MutableArithmetics/0Y9ZS/src/Test/config.jl:9 declares type variable T but does not use it.

@sshin23
Copy link
Member

sshin23 commented Jul 24, 2023

Hi @pjavanrood, MadNLPGraph currently doesn't work with the most recent version of MadNLP.jl
https://github.com/MadNLP/MadNLP.jl/blob/master/lib/MadNLPGraph/Project.toml#L14

Have you tried uninstalling the packages that are causing the installation issues?

@pjavanrood
Copy link
Author

Hi @sshin23
Thanks for your comment.
Yes, I have tried doing so.
I even uninstalled Julia completely, reinstalled it, and added MadNLPGraph as the first and only package
However it still didn't work and the 2 dependencies that are causing the failure are MadNLP and MadNLPGraph

@inversed-ru
Copy link

inversed-ru commented Aug 7, 2023

@pjavanrood I also could not install MadNLPGraph on Julia 1.9. The problem is that MadNLPGraph downgrades MadNLP to an old version which is incompatible with Julia 1.9 (ERROR: LoadError: UndefVarError: `umf_ctrl` not defined). I did manage to get it running with Julia 1.8.5. Not sure if it was working correctly though. The objective was constantly growing despite the fact that I was trying to solve a minimization problem and the optimization did not terminate.

@tso-martin
Copy link

Hi, I also did not get MadNLP working with MadNLPGraph due to compatibility issues. It seems that #224 made some breaking changes. I wonder what needs to be done to get MadNLPGraph working again. Would it possible to give some hints @sshin23 , @frapac on the necessary development steps?

@jalving
Copy link
Contributor

jalving commented Jan 10, 2024

Chiming in here; I started some work on updating MadNLPGraph here some time ago, but I ran into issues and benched the work. I can certainly give that PR another look, but it would likely be a short term fix as it is quite bespoke. Since there is interest in MadNLPGraph, perhaps it is a good time to nail down requirements with GraphOptInterface.jl @sshin23 😉

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

No branches or pull requests

5 participants