Coder Social home page Coder Social logo

landscape_steiner's People

Contributors

actions-user avatar pareyesv avatar tandradew avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

saima155 wesenu

landscape_steiner's Issues

feat: add support for non-grid graphs

  • modify create_graph en steiner_utils.py
    def create_graph(box_size, terminals):
    ''' Initialize 2D grid graph with terminals added as node attributes '''
    # create square grid graph
    grid_1d = range(1, int(box_size))
    G = nx.grid_2d_graph(grid_1d, grid_1d)
    # set terminal as attribute
    attribute_dictonary = {}
    for point in terminals:
    attribute_dictonary.update({point: {'terminal': 1}})
    nx.set_node_attributes(G, attribute_dictonary)
    return G
  • or create a new function to add support to non-grid graphs

change calculation of Landscape Function

There is a much nicer Landscape Function which doesn't require solving PDEs, essentially

fLandscape = 1/(1+V)

where V = V(x,y) is the potential given by the sum of gaussians.

This makes the code faster, easier to understand, deals with the boundaries of the domain a lot better, and makes the range of the cutoff 'alpha' finite.

feat: add starting and ending period to total budget limit

Example:
total_budget_limit-01 -> total_budget_limit-01-01

Thus it will be able to assign budget limit to multiple (consecutive) periods (as in Faria2020).
For example total_budget_limit-01-03 will correspond to the total budget limit for periods 1,2, and 3.

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.