public class MaximumProfitToCostRatioAnalysis extends Analysis
Please refer to:
Ali Dasdan , Sandy S. Irani , Rajesh K. Gupta, Efficient algorithms for optimum cycle mean and optimum cost to time ratio problems, Proceedings of the 36th ACM/IEEE conference on Design automation conference, p.37-42, June 21-25, 1999, New Orleans, Louisiana, United States
for a detailed mathematical description of the problem.
CycleMeanAnalysis
Red (ssb) |
Red (shahrooz) |
Constructor and Description |
---|
MaximumProfitToCostRatioAnalysis(Graph graph,
ToDoubleMapping edgeProfits,
ToIntMapping edgeCosts)
Construct an instance of this class using a default analyzer.
|
MaximumProfitToCostRatioAnalysis(MaximumProfitToCostRatioAnalyzer analyzer)
Construct an instance of this class using a given analyzer.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
cycle()
Return the nodes on the cycle that corresponds to the maximum profit to
cost ratio.
|
double |
maximumRatio()
Return the maximum profit to cost ratio of the given graph.
|
java.lang.String |
toString()
Return a description of the analysis and the associated analyzer.
|
boolean |
validAnalyzerInterface(Analyzer analyzer)
Check if a given analyzer is compatible with this analysis.
|
analyzer, changeAnalyzer, graph, valid
public MaximumProfitToCostRatioAnalysis(Graph graph, ToDoubleMapping edgeProfits, ToIntMapping edgeCosts)
graph
- The given graph.edgeProfits
- The profits associated with the edges of the graph.edgeCosts
- The costs associated with the edges of the graph.public MaximumProfitToCostRatioAnalysis(MaximumProfitToCostRatioAnalyzer analyzer)
analyzer
- The given analyzer.public java.util.List cycle()
public double maximumRatio()
public java.lang.String toString()
public boolean validAnalyzerInterface(Analyzer analyzer)
validAnalyzerInterface
in class Analysis
analyzer
- The given analyzer.