Coder Social home page Coder Social logo

Comments (3)

FFroehlich avatar FFroehlich commented on September 22, 2024

I agree, it's all a big giant mess.

There are two things that we need to control (i) how the steady state is computed (integration/newton) and (ii) how the sensitivities are computed (integration/newton). As far as I can tell, only newton steadystate + integration sensi does not work (not sure about this for ASA), but everything else should be viable. In the current implementation (i) and (ii) can't be controlled independently by the user, but have to be set via SteadyStateSensitivityMode and SensitivityMethodPreequilibration, which adds an additional layer of complexity between pre- and post-equilibration. This leads to very complex checks in

bool turnOffNewton = solver.getNewtonMaxSteps() == 0 || (
and
bool SteadystateProblem::getSensitivityFlag(
(which, to make things worse, does different things depending on which context it is called in).

I believe the reason you think the implementation is inconsistent is because in one case you are looking at controlling (i) vs (ii), but I think the issue with the code is really more fundamental. Any effort to simplify this code is very welcome, I made some attempts at refactoring, but ultimately gave up as Paul still had intentions to fix this himself.

from amici.

dweindl avatar dweindl commented on September 22, 2024

I made some attempts at refactoring, but ultimately gave up

i think that was that: #1485
maybe something to be learned from the discussion back then...

from amici.

plakrisenko avatar plakrisenko commented on September 22, 2024

In the current implementation (i) and (ii) can't be controlled independently by the user, but have to be set via SteadyStateSensitivityMode and SensitivityMethodPreequilibration

But SteadyStateSensitivityMode and SensitivityMethodPreequilibration don't control (i) at all?

from amici.

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.