-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
Version Problems? #269
Comments
What's the error that you're receiving? The names of the Cbc parameters have recently changed, take a look at: https://github.com/JuliaOpt/Cbc.jl. The latest version of JuMP/Clp/Cbc requires julia 0.3.0. If you're on 0.2, you should still have a working set of packages though. |
When I use the latest packages I get the following: |
Perhaps an incompatibility with Julia 0.2.0? |
Is there any error when you say |
No there isn't, but I gave the wrong error (when I freed the package I hadn't re-built Cbc). using Cbc works fine, and m=Model() works fine, but trying to specify the solver in any way to be CbcSolver results in: |
I wasn't able to reproduce this issue on a clean install of julia 0.2. You might have a weird mix of package versions installed. Could you try clearing your packages (delete the directory reported by |
I cleared it and reinstalled all the packages and still get the error if I don't pin Clp. I wonder if its due to the julia-readline.exe interpreter that Julia Studio uses? |
I think that JuliaStudio isn't handling the errors particularly gracefully, which is why you see the |
@howard4086 could you report what version of MathProgBase you have installed? I'm wondering if you're running a 0.3.0-dev version. |
Here is my current set of packages:
|
I think what's going on is that there's an incompatibility with the MathProgBase v0.2.5 interface and the way Clp v0.0.8 tries to plug into it (this manifests itself with the no-method error you reported above). METADATA should be changed to reflect this, which would mean Clp v0.0.7 is an upper bound for your set up and which (I hope!) should fix this. |
On a clean 0.2:
The solver versions are compatible with MPB 0.3.0. @howard4086, could you post |
I'm using Julia 0.2, but through Julia Studio, which actually calls julia-readline.exe. Here is my Pkg.status():
Then here is the code: This generates: |
I think I've fixed the issue, try |
When I run: I get: |
Try |
I get this error: INFO: Updating METADATA... |
Not sure why that's not working, but I just released JuMP 0.5.8 with the fix. Try |
Good news is that it now works! Thanks! However, it appears the latest version has changed the syntax of Variable? I have been using Variable() to create my variables one at a time as I am using dictionaries with indices not static at compile time based on the problem data files (which can change depending on the data loaded). In the past this worked just fine using: Now when I call this I get:
What am I doing wrong here? Thanks! |
@howard4086 The final argument for Variable is now But anyway there's no restriction on variable indices being defined at compile time. You can do something like:
It shouldn't be necessary to use |
Thats very nice - thanks. After fixing my variable declarations everything worked, except I found that CbcSolver did not respond to any options I specified: m=Model(solver=CbcSolver(MipMaxSeconds=30,MipFractionalGap=.01,LogLevel=1) This command ran and solved fine, but it solved to optimality, with the default LogLevel and took 72 seconds. I found that the CoinMP.dll file was dated 9/13/2013, so I rolled it forward to a version dated 1/7/2014, and then everything worked fine. This morning I had cleared all of my packages and reinstalled clean, so the 9/13/2013 version is the default one it pulled down - perhaps this is a mistake and you should have the newer version instead? Either way everything works well now with the latest packages. Thanks so much for the help! |
The latest version of the Cbc wrapper (which requires julia 0.3) has newly updated binaries and renamed parameters, see https://github.com/JuliaOpt/Cbc.jl. This is just as a heads up for when you eventually update to julia 0.3. |
I have been using JuMP to solve a MILP (with CBC), and it seems the latest version doesn't work with my code. When I tried to create a model with Cbc as the solver the code below returned an error:
m=Model(solver=CbcSolver(MipMaxSeconds=30,MipFractionalGap=MIPGAP,LogLevel=CBCLogLevel))
This would not work with the latest version of Clp/Cbc, so I pinned it back and it works fine now. Also - I'm use Julia Studio, so I'm on v0.2.0 of Julia (perhaps that is the problem?) I didn't know if the command has changed in the latest version of Clp or JuMP, or if it is a compatibility error with my older version of Julia? Its not a huge deal as it works with the older packages, but I wanted to understand why it was necessary.
Here are my Package versions: (that work with the command above)
Thanks!
-Nick
The text was updated successfully, but these errors were encountered: