cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudsimplus/heuristics/CloudletToVmMappingSolution.java
@Override
    public int compareTo(HeuristicSolution o) {
        final double diff = this.getCost() - o.getCost();


        if(Math.abs(diff) <= MIN_DIFF)
            return 0;

        return (diff > 0 ? -1 : 1);
    }
/**
     * Compares this solution with another given one, based on the solution
     * cost. The current object is considered to be:
     * equal to the given object if they have the same cost;
     * greater than the given object if it has a lower cost;
     * lower than the given object if it has a higher cost;
     *
     * @param o the solution to compare this instance to
     * @return {@inheritDoc}
     */
Compares this solution with another given one, based on the solution
cost. The current object is considered to be:
equal to the given object if they have the same cost;
greater than the given object if it has a lower cost;
lower than the given object if it has a higher cost.

@param o the solution to compare this instance to
@return
Compares this solution with another given one based on the solution cost . The current object is considered to be : equal to the given object if they have the same cost ; greater than the given object if it has a lower cost ; lower than the given object if it has a higher cost . @param o the solution to compare this instance to @return
@Override
    public int compareTo(HeuristicSolution o) {
        final double diff = this.getCost() - o.getCost();
        if(Math.abs(diff) <= MIN_DIFF)
            return 0;
        return (diff > 0 ? -1 : 1);
    }
@ Override public int compareTo ( HeuristicSolution o ) { final double diff = this . getCost ( ) - o . getCost ( ) ; if ( Math . abs ( diff ) <= MIN_DIFF ) return 0 ; return ( diff > 0 ? - 1 : 1 ) ; }
Compares this solution with another given one, based on the solution
 cost.
Compares this solution with another given one based on the solution cost .