Code Monkey home page Code Monkey logo

hdb-simulation's People

Contributors

hovinh avatar

Watchers

 avatar  avatar

hdb-simulation's Issues

Implement scale up version my normalizing actual data

Due to the current bottleneck (slow speed) in Integer Programming Solver, I can only run with a small number of agents and flats. Another idea is scaling down every project in sale launches within 1 years to 1 block with 10 flats each and then rerun the simulation.

Data: Simulation > Data sheet. I have provided number of apartments (flats) and number of blocks in 15 projects in 9 months. Your job is scale them to 15 blocks with 10 flats each and rerun the simulation in main.

Steps:

  • Modify actual_flats_per_block.txt file.
  • Modify actual_location.txt file.
  • Modify actual_ethnic.txt file.
  • Run main.py with compare_random_utility(10) and compare_location_utility(10) uncommented.

Solving the bottleneck of integer programming solver

Refer to Simulation.xlsx > Time sheet, the time it takes to run a small scale experiment is quite big already. I need a way to optimize this bottleneck.

Numb agents Numb flats Time(sec)
50 50 4.3
50 100 12.4
100 50 12.4
100 100 32.53
200 200 169

The implementation follows the tutorial here.

Suggestion or PR should be an alternative way which uses PuLP package or any Python-supported package.

Playing with variance in second Location utility model and filling in the observation section

I have implemented 2 ways to twist the value of variance in Location utility model with ethnicity factor(defined in EthnicalLocationUtility class):

  • fixed it with a constant value.
  • adapt to value of the mean, follows this equation variance = mean * (1-mean)/2. Please note the required range of value of these 2 parameters in the comment. In addition, the raw mean with no normalization always having value > 3.0.

The question is, how can one determine a good variance? Currently, I have no clear measurement or criterion in mind.

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.