public class PlacementSimulatedAnnealing extends PlacementFrame
PlacementFrame.PlacementNetwork, PlacementFrame.PlacementNode, PlacementFrame.PlacementParameter, PlacementFrame.PlacementPort
Modifier and Type | Field and Description |
---|---|
PlacementFrame.PlacementParameter |
maxRuntimeParam |
PlacementFrame.PlacementParameter |
numThreadsParam |
boolean |
printDebugInformation |
numOfThreads, runtime
Constructor and Description |
---|
PlacementSimulatedAnnealing() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithmName()
Method to return the name of this placement algorithm.
|
void |
runPlacement(java.util.List<PlacementFrame.PlacementNode> nodesToPlace,
java.util.List<PlacementFrame.PlacementNetwork> allNetworks,
java.util.List<PlacementAdapter.PlacementExport> exportsToPlace,
java.lang.String cellName,
Job job)
Method to do placement by simulated annealing.
|
void |
update(int tries,
int acceptCount,
int conflictCount)
Synchronized method that does temperature and time control.
|
getOriginalCell, getParameters, getRedispCell, getStandardCellSize, isFailure, setFailure, setOriginalCell, setParamterValues, setRedispCell
public PlacementFrame.PlacementParameter numThreadsParam
public PlacementFrame.PlacementParameter maxRuntimeParam
public boolean printDebugInformation
public java.lang.String getAlgorithmName()
getAlgorithmName
in class PlacementFrame
public void runPlacement(java.util.List<PlacementFrame.PlacementNode> nodesToPlace, java.util.List<PlacementFrame.PlacementNetwork> allNetworks, java.util.List<PlacementAdapter.PlacementExport> exportsToPlace, java.lang.String cellName, Job job)
runPlacement
in class PlacementFrame
nodesToPlace
- a list of all nodes that are to be placed.allNetworks
- a list of all networks that connect the nodes.cellName
- the name of the cell being placed.job
- the Job (for testing abort).public void update(int tries, int acceptCount, int conflictCount)
tries
- how many perturbation the thread tried since last calling
updateacceptCount
- how many of the perturbations that thread tried since last
calling update were acceptedconflictCount
- how many of the perturbations that were accepted since last
calling update were dropped due to conflicts with other
threads