{"id":16507843,"url":"https://github.com/noahgift/or","last_synced_at":"2025-10-28T02:31:06.866Z","repository":{"id":3336548,"uuid":"4380641","full_name":"noahgift/or","owner":"noahgift","description":"Operations Research Algorithms","archived":false,"fork":false,"pushed_at":"2024-03-20T16:21:32.000Z","size":52,"stargazers_count":16,"open_issues_count":3,"forks_count":20,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-02T06:01:15.739Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noahgift.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-19T20:06:54.000Z","updated_at":"2024-04-07T01:08:44.000Z","dependencies_parsed_at":"2022-08-28T01:41:02.305Z","dependency_job_id":null,"html_url":"https://github.com/noahgift/or","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahgift%2For","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahgift%2For/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahgift%2For/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahgift%2For/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noahgift","download_url":"https://codeload.github.com/noahgift/or/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219860253,"owners_count":16556021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T15:31:03.218Z","updated_at":"2025-10-28T02:31:01.599Z","avatar_url":"https://github.com/noahgift.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Python application test with Github Actions](https://github.com/noahgift/or/actions/workflows/main.yml/badge.svg)](https://github.com/noahgift/or/actions/workflows/main.yml)\n\n## Operations Research\n\nhttps://github.com/DEAP/deap\n\nOperations Research Algorithms\n\nThe genesis of this code is from an Operations Research course at the UC Davis MBA program with Dr.David L Woodruff:  \nhttp://faculty.gsm.ucdavis.edu/~dlw/\n\n### To run container\n`docker build -t fastapi:latest .`\n`docker run -p 127.0.0.1:8080:8080 fastapi:latest`\n\nA.  Then push to ECR\n\nB.  Deploy via AWS App Runner\n\n\n\n\n### Randomized Start with Greedy Path Solution for TSP\n\nYou can see a solution here:  https://github.com/noahgift/or/blob/master/greedy-random-tsp.py\n\n```bash\n(.venv) codespace ➜ ~/workspace/or (master ✗) $ ./greedy-random-tsp.py 10\nRunning simulation 10 times\nShortest Distance: 129\nOptimal Route: [(b'URS', b'WFC', 0), (b'WFC', b'GPS', 1), (b'GPS', b'PCG', 1), (b'PCG', b'MCK', 3), (b'MCK', b'SFO', 16), (b'SFO', b'ORCL', 20), (b'ORCL', b'HPQ', 12), (b'HPQ', b'GOOG', 6), (b'GOOG', b'AAPL', 11), (b'AAPL', b'INTC', 8), (b'INTC', b'CSCO', 6), (b'CSCO', b'EBAY', 0), (b'EBAY', b'SWY', 32), (b'SWY', b'CVX', 13)]\n(.venv) codespace ➜ ~/workspace/or (master ✗) $ \n```\n\n![tsp](https://user-images.githubusercontent.com/58792/122964410-3df3c980-d355-11eb-9c03-ab101dfcd532.png)\n\n### Examples of greedy algorithms and random choices\n\n* [Colab Notebook on Greedy Algorithms and random choices](https://github.com/noahgift/or/blob/master/Explore_Greedy_Solutions.ipynb)\n* [GCP Flask application serving our \"greedy coin choices\"](https://github.com/noahgift/or/blob/master/main.py)\n\n### YouTube Series on Business Analytics\n\n* [YouTube Business Analytics Lectures](https://www.youtube.com/watch?v=WnER8NU_UZs\u0026list=PLdfopzFjkPz-2nmMKWaEvgEJjbfrtAOzb)\n* [YouTube Containerize Algorithms to AWS](https://www.youtube.com/watch?v=SWAqetwqPiU) and on O'Reilly-Watch on O'Reilly Media: https://learning.oreilly.com/videos/learn-to-containerize/02202022VIDEOPAIML/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoahgift%2For","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoahgift%2For","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoahgift%2For/lists"}