Giter VIP home page Giter VIP logo

Comments (7)

ckaldemeyer avatar ckaldemeyer commented on August 10, 2024

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.

simnh avatar simnh commented on August 10, 2024

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.

ckaldemeyer avatar ckaldemeyer commented on August 10, 2024

Convinced

from oemof-solph.

simnh avatar simnh commented on August 10, 2024

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.

simnh avatar simnh commented on August 10, 2024

I set the milestone to January release, is this realistic ? @gnn

from oemof-solph.

simnh avatar simnh commented on August 10, 2024

I can go ahead with this one @gnn

from oemof-solph.

simnh avatar simnh commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.