Giter Club home page Giter Club logo

Comments (5)

baggepinnen avatar baggepinnen commented on June 11, 2024

The problem here is not the lack of parameters, it's the lack of inputs. If you are only after the state jacobian (the A matrix), see calculate_jacobian instead.

julia> calculate_jacobian(model)
2×2 Matrix{Num}:
 0  -1
 1   0

A side note, linearize expects model and not sys, i.e., you may not call structural_simplify on the system before calling linearize

from modelingtoolkit.jl.

BambOoxX avatar BambOoxX commented on June 11, 2024

Thanks for the tips @baggepinnen. However, given what you say, can you explain why the linearizarion works (understand does not error) if a dummy parameter is passed, even on a structurally simplified model?

from modelingtoolkit.jl.

baggepinnen avatar baggepinnen commented on June 11, 2024

Probably a coincidence since the example is very small and simple. It will not work in general.

from modelingtoolkit.jl.

BambOoxX avatar BambOoxX commented on June 11, 2024

@baggepinnen OK. Should there be some documentation or more explicit error in case of absence of input? Or a generic fallback returning empty B, C, D matrices ?

from modelingtoolkit.jl.

BambOoxX avatar BambOoxX commented on June 11, 2024

I'll close this for now as the use case seems a bit different now with v9

from modelingtoolkit.jl.

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.