-
Notifications
You must be signed in to change notification settings - Fork 26
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
Why it tells me the MethodError when I use StochasticPrograms? #29
Comments
I am guessing that you are not on the latest version (v0.6.2) that introduced new |
Tkank you for your help, Martin. I have run
When I run the example
|
From the error message it still looks like you are on the wrong version. What is the output of |
So it is related to my IDE "JuliaPro"? if I run
|
Everything looks fine, does it not work if you load StochasticPrograms: |
Well, I have used ctrl+d to clear the workspace and load StochaticPrograms again ,the new error occurs:
|
Ah, I have not been careful enough with compat. You need to update JuMP to at least v0.21.7. |
So it seems new error occurs after I update JuMP,
|
This is just from running the testfile verbatim. You do not need |
Thank you very much, Martin. It can fly without errors. |
Perfect, happy to help! |
Hi, Martin
I have added the StochasticPrograms package,and use "using StochasticPrograms" ,but when I run the example"farmer" it tells me as following error:
Also, it has the warning in the command window:
WARNING: both Distributions and JuMP export "shape"; uses of it in module StochasticPrograms must be qualified
How can I deal with it? Thanks a lot!
The text was updated successfully, but these errors were encountered: