@Immutable public class ProposalStats extends Object
trackX
methods to indicate that a proposal had some action (generation, acceptance, rejection)
Use the #proposalsX
to find out how many proposals were (generated, accepted, rejected) during the tracked
optimization run.Modifier and Type | Class and Description |
---|---|
static class |
ProposalStats.Builder
A builder to build a
ProposalStats object. |
Modifier and Type | Method and Description |
---|---|
String |
generateString(boolean isVerbose)
Generate a string representation of the proposal stats.
|
int |
movesAccepted() |
int |
partitionMovesAccepted() |
int |
proposalsAccepted() |
double |
proposalsAcceptedPercent() |
int |
proposalsGenerated() |
int |
proposalsRejected() |
double |
proposalsRejectedPercent() |
Map<String,Integer> |
rejectingGoalCount()
For a given goal, it stores information about what other goals did reject its proposals
and how many times exactly.
|
int |
swapsAccepted() |
String |
toString() |
public int proposalsGenerated()
public int proposalsRejected()
public double proposalsRejectedPercent()
public int proposalsAccepted()
public double proposalsAcceptedPercent()
public int movesAccepted()
public int swapsAccepted()
public int partitionMovesAccepted()
public Map<String,Integer> rejectingGoalCount()
public String generateString(boolean isVerbose)
isVerbose
- a boolean denoting whether the output should be verbose or not.
If verbose, it will contain the top proposals generated by the goal.