Giter Club home page Giter Club logo

Comments (7)

ChrisRackauckas avatar ChrisRackauckas commented on August 17, 2024 2

You also invented a new feature, which is easier to just support. #2789

from modelingtoolkit.jl.

ChrisRackauckas avatar ChrisRackauckas commented on August 17, 2024 1

y is missing a guess. The error message needs to be handled but that is trying to throw an error about missing a guess on y which would be required to solve the nonlinear system.

from modelingtoolkit.jl.

ChrisRackauckas avatar ChrisRackauckas commented on August 17, 2024 1

Yes, the equations are not satisfiable. Note that it's not (x=>1, y=>1, x^2 + y^2 ~ 1), it's (x=>1, y ~ 1, x^2 + y^2 ~ 1). That's different. initialization_eqs can have any nonlinear function. You cannot assume it's always analytically solvable. There is an issue of asking why this one isn't actually simplified out, which may be related to the unsatisfiabiltiy, but you should expect that if you can put in a nonlinear system then you need a guess.

But also, x = 1, y = 1, x^2 + y^2 != 1, so this test case is erroring for good reasons.

from modelingtoolkit.jl.

SebastianM-C avatar SebastianM-C commented on August 17, 2024

does y need to be a guess even if it's specified in intializtion_eqs?

from modelingtoolkit.jl.

ven-k avatar ven-k commented on August 17, 2024

does y need to be a guess even if it's specified in intializtion_eqs?

This is my doubt too. (and I wonder if is possible to avoid that)

from modelingtoolkit.jl.

SebastianM-C avatar SebastianM-C commented on August 17, 2024

As @ChrisRackauckas mentioned, in this case the initialization equations are not satisfiable (x=>1, y=>1, x^2 + y^2 ~ 1).

from modelingtoolkit.jl.

ven-k avatar ven-k commented on August 17, 2024

Ok. That makes sense. Thanks

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.