[Draft] 349 feat simulated annealing#380
Draft
amarshah1999 wants to merge 17 commits into
Draft
Conversation
- Working commit - Introduces new base classes, and simulated annealing itself - Temporary tester file
- Created a re-usable ObjectiveTerm function which takes in at least an input frame and computes a float from it - Used these reusable objectives and weights in the SimulatedAnnealing class to compute the objective
- Adds a class for generic constraints, which can be computed to check validity based on an input frame and player id - Implemented a specific constraint for simulated annealing that ensures the player is within a TimeToIntercept radius, i.e. the perturbation from simulated annealing is such that the player could get there within X seconds.
- Makes a minor addition of an alpha parameter to visualize.py also
- Move optimization objects into separate classes - Add logging properly instead of print statements - Formatting
Creates a wrapper function around the Algorithm.run() method that can easily be extended to hot swap optimization algorithms
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #380 +/- ##
===========================================
+ Coverage 99.22% 99.28% +0.05%
===========================================
Files 49 67 +18
Lines 3736 5441 +1705
===========================================
+ Hits 3707 5402 +1695
- Misses 29 39 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Previously I was trying to save compute by only passing in what is necessary - It's much cleaner to use if all the constraints and objectives just take in game, frame and some optional extra arguments. - I will revisit this if we want to make the pre-made objectives a bit more flexible
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[Draft] Introduces the simulated annealing project as outlined here #349
ToDo List: