Comments (11)
Thanks a lot Mustafa. Really excited that we're getting results now!
Some of these are very different -- but they seem to be in places that are similar to the differences we saw in Hobbes vs. PRM comparison. Could it be the case that the differences are in the network data, not the solver?
Another point is that our cost curve extensions are different than PRM, so we shouldn't expect exactly the same answer.
How do the objective function values compare?
from calvin.
Just for comparison here is the portfolio plot from Max's script:
(y-axis in units of average TAF/month)
compared to these figures from Dogan (2015)
Overall it matches up pretty well! (our new plot doesn't show shortage, and doesn't include the warm-dry scenario).
from calvin.
Yes, looks like flow differences are occurring on links that we saw some differences while comparing CALVIN and HOBBES, but this time differences are even bigger. It is possible that the issue is input data. We need to go back check c, a, lb, ub
parameters for these links to see if there is any problem.
For the objective function, values are close, at least in the same order of magnitude:
S09I05 z = -40664453805.7
pyvin z = -40676283943.10019
difference = 11830137
So, since the objective is to minimize cost, CPLEX
seems to do better job if we represent everything correctly.
from calvin.
Thanks for the plots. I am guessing values on Max's plot are TAF/y instead of TAF/m. And looks like it is about 100 to 200 TAF/y less than what I calculated. The difference is scarcity?
from calvin.
Hey they both get $40.6 Billion for the optimal cost -- that's pretty close! I feel good about that.
For the flow volumes I agree we can double-check the c,a,l,u parameters.
I'm pretty sure the bar plot is TAF/m. If you multiply by 12 and divide by 1000 (so basically divide by 100) you get values that are close to yours. And yes scarcity is not included, you're right.
from calvin.
Sorry, yeah, ag and urban deliveries are looking close.
from calvin.
Here is the latest comparison of CALVIN and PyVIN (run 12272016) after Justin's updates on MIF representation. PyVIN was run in debug mode but total debug flow amount is small #29. I compared some examples from network matrix (input) to CALVIN, and there is no issue (#35). Everything (bound & cost) seems to be correctly represented in network matrix, however there might be some local issues.
links that have monthly average flow difference > 10 TAF/m
Network Link S09I05 pyvin S09I05-pyvin (difference)
D513-D521 32.70 55.85 -23.15
C83-HSU202C83 2.88 25.07 -22.19
D521-D522 291.99 313.26 -21.27
HSU202C83-A202 2.54 22.06 -19.53
D800-D801 327.79 338.69 -10.90
D801-D803 327.65 338.55 -10.90
D804-D814 326.94 337.83 -10.89
D803-D804 327.58 338.47 -10.89
C83-C31 151.13 128.93 22.20
C31-D37 482.03 459.82 22.22
HSU202C80-A202 58.14 35.62 22.51
D37-C32 507.47 483.43 24.04
C80-HSU202C80 66.60 41.02 25.58
C32-C80 66.57 40.99 25.58
D515-D522 528.01 501.13 26.88
D513-D515 486.53 458.96 27.57
from calvin.
Oh much better!! Last time the biggest differences were 100-200 TAF/m on average, now they're 10x smaller. We'll run it by the group but I think this is close to done: the objective function is the same, debug flows are very small, so maybe these differences are just multiple optima.
from calvin.
Yes, differences are much smaller in this run. We can also compare reservoir storage/release, ag and urban deliveries, where we apply economics, and then decide how to proceed.
from calvin.
Ok that's great -- Let's do those comparisons after the break. @mfefer this would be a good application of your postprocessing scripts :)
from calvin.
Objective value comparison of latest 82-year run (https://github.com/msdogan/pyvin/tree/master/examples/statewide_82-year_results)
model Objective Value ($)
S09I05 -40,664,453,806
pyvin -40,668,750,069
Difference ($) -4,296,264
Difference (%) 0.011
from calvin.
Related Issues (20)
- Help wanted for network checking preprocessor HOT 2
- Mass balance issue for some nodes HOT 2
- CBC says infeasible HOT 7
- Copying files/folders to cluster and running job scripts HOT 25
- HostID mismatch for GUROBI license HOT 9
- Finding CPLEX Solution File HOT 16
- Check Reservoir Evaporation and Create a Postprocessor HOT 10
- Benchmark Study Runs HOT 12
- Solution is infeasible HOT 8
- blank lines printed by postprocess.py HOT 7
- Piecewise link upper bound HOT 4
- postprocessor translation HOT 2
- Getting rid of debug flows and running w/o debug mode HOT 20
- Deciding precision of parameters in matrix export HOT 6
- Checking bounds and costs with random samples HOT 3
- 1-year run is not running HOT 2
- new debug mode: equal cost network
- Warning in the log file- suspicious.... HOT 5
- Debug flow finder HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calvin.