Menu

Commit [r18]  Maximize  Restore  History

Cleaned up VM and PM ID usage.

The IDs are not used in the BnB algorithm directly anymore.

The allocation is now a hash map with VMs as keys and PMs as values.

The non-fitting VMs are stored in Change.h directly.

The initialPM variable of VMs is set in the constructor and used afterwards for comparisons.

The IDs, however, are used for printing allocations (according to ascending order of VM IDs).

Other changes:
- Improved the VMAllocator interface
- Best cost is now uniformly -1 when no valid allocation was found
- Moved parameter configuration logging to main.cpp and improved log formatting
- Removed global_params.h (is not required since revision 17)
- Renamed some variables and functions for better understanding

dbartok 2015-10-12

changed /branch/VMAllocation/BnBAllocator.cpp
changed /branch/VMAllocation/BnBAllocator.h
changed /branch/VMAllocation/Change.h
changed /branch/VMAllocation/IlpAllocator.cpp
changed /branch/VMAllocation/IlpAllocator.h
changed /branch/VMAllocation/ProblemGenerator.cpp
changed /branch/VMAllocation/VM.h
changed /branch/VMAllocation/VMAllocator.h
removed /branch/VMAllocation/global_params.h
changed /branch/VMAllocation/main.cpp
/branch/VMAllocation/BnBAllocator.cpp Diff Switch to side-by-side view
Loading...
/branch/VMAllocation/BnBAllocator.h Diff Switch to side-by-side view
Loading...
/branch/VMAllocation/Change.h Diff Switch to side-by-side view
Loading...
/branch/VMAllocation/IlpAllocator.cpp Diff Switch to side-by-side view
Loading...
/branch/VMAllocation/IlpAllocator.h Diff Switch to side-by-side view
Loading...
/branch/VMAllocation/ProblemGenerator.cpp Diff Switch to side-by-side view
Loading...
/branch/VMAllocation/VM.h Diff Switch to side-by-side view
Loading...
/branch/VMAllocation/VMAllocator.h Diff Switch to side-by-side view
Loading...
/branch/VMAllocation/main.cpp Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.