Giter Site home page Giter Site logo

baharev / sdopt-tearing Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 5.0 72.24 MB

Exact and heuristic methods for tearing

Home Page: https://sdopt-tearing.readthedocs.io/

License: BSD 3-Clause "New" or "Revised" License

Python 96.45% Modelica 3.36% Fortran 0.19%
decomposition numerical-methods elimination tearing python

sdopt-tearing's People

Contributors

baharev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sdopt-tearing's Issues

Any backend for Julia in perspective yet ?

Hello Ali,

Thanks first for providing us freely this codebase on the very specific subject of tearing.

I have seen there is some backend for AMPL, and Python.

I would like to know if it has been envisaged already to target the Julia language?
It's taking more and more place in the mathematical landscape.

FYI, the networkx package has been ported to lightgraphs.jl.

Cordially
Olivier

Interacting with the ordering algorithms

@baharev
I want to use sdopt-tearing in my Master's project but I am having some difficulty interacting with your code. Currently, I manually create the incidence matrix and pass it to the methods in heap_md.py to get the orderings using either the Hessenberg or Dulmage-Mendelsohn algorithms.

The problem that I have is ordering variables calling a function eg.

a = f(x, y, z)

My initial plan was to add the equation to the incidence matrix having the variable a, x, y, z but I run into situations where this equation is used (for example) to calculate the variable x.

I have read your documentation and see that there are methods that cater to for "bad" eliminations

determine which variables can be explicitly and safely eliminated from which equations

Is it possible for me to use this property to flag variables as bad eliminations? My plan is to create a new variable f and dummy equations eg.
f = x*y*z (1)
a = (x + y + z)*f (2)
and flag variable f as a "bad" elimination in equation 2. I create equation 1 to have the Degrees of Freedom of the system 0.

As a side note, these algorithms are extraordinary
Thanks in advance
Edgar

Add support for NumPy arrays

The following error is encountered when running

  • rpc_api.fine_dulmage_mendelsohn
  • heap_md.hessenberg
  • bordered.to_bordered_form

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

The errors originate from the following lines:

  • dm_decomp.py line 148
  • order_util.py line 104 + 105

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.