Comments (7)
It might be a bit off-topic but I have just adjusted the storage_optimization example came across the following:
simulation = es.Simulation(timesteps=timesteps, stream_solver_output=True,
objective_options={
'function':predefined_objectives.minimize_cost})
energysystem = es.EnergySystem(entities=entities, simulation=simulation)
energysystem.year = 2010
om = OptimizationModel(energysystem)
om.solve(solver='gurobi')
The simulation object and direct passed parameters are still co-existing. We should go one way and fix it in the next version.
from oemof-solph.
I disagree, both way should stay possible. That's what this issue is for. If one uses simulation object - fine if not use solve() method and pass parameter. Or use simulation object for some options and adjust when calling solve().
But the simulation-object attributes should be passed to solve() method in every case. This is only true for the use of optimize() method from the energysystem class.
Actually setting the attribute 'stream_solver_output' at the example above should not change anything at the moment because it isn't implemented this way...
from oemof-solph.
Convinced
from oemof-solph.
I actually checked today in the storage example and solver output is not streamed due to the 'bug' even if it's set at the attribute of simulation object....
from oemof-solph.
I set the milestone to January release, is this realistic ? @gnn
from oemof-solph.
I can go ahead with this one @gnn
from oemof-solph.
I fixed the bug for now, it is not perfect, but i works as intended. Now the simulation object attributes are taken if the solve() method does not have any...
from oemof-solph.
Related Issues (20)
- Make software formally REUSE compliant
- BasicModel can ignore some constraint blocks in cellular models
- Fix investment results in repeated solving HOT 2
- Obsolete error message for GenericStorage? HOT 1
- Misleading/missing documentation of OffsetConverter HOT 20
- GenericStorage not creating InvestmentFlows when used with invest_relation_input_output HOT 5
- Perhaps wrong argument in examples/storage_investment v1-v3: nominal_value instead of investment HOT 2
- Add flow groups HOT 1
- Minimum uptime/ downtime HOT 1
- Multi-period remaining value calculation HOT 5
- Discounting duplication for fixed costs HOT 4
- Docu error for multi-period HOT 1
- Improve documentation of examples for GenericStorage with Investment
- Improve structure and fix some minor things of Basic example
- Issue with processing and dumping of results in basic example HOT 3
- Multi-period investment optmization: no investment in first period HOT 6
- First time step of storage_content sequence is missing HOT 2
- Multiple outputs for offsetConverter HOT 1
- FutureWarnings from oemof.network are showing HOT 3
- How to set 2 Sink (not fixed) whose result values are proportional? 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 oemof-solph.