public class DEAPSolution
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
DEAPSolution(int nbDMUs,
int nbVariables) |
Modifier and Type | Method and Description |
---|---|
void |
addNonZeroLambdaToReferenceSet(int dmuIndex,
NonZeroLambda nonZeroLambda)
Adds a NonZeroLambda to the reference set of a DMU.
|
boolean[] |
getEfficient()
Gets all the DMUs efficiency status.
|
double |
getlBConvexityConstraintWeight(int dmuIndex)
Gets the weight corresponding to the lower bound convexity constraint on
general, increasing and decreasing models for a specific DMU.
|
double[] |
getlBConvexityConstraintWeights()
Gets the weight corresponding to the lower bound convexity constraints on
general, increasing and decreasing models for all DMUs.
|
double |
getObjective(int dmuIndex)
Gets the Objective value for a specific DMU.
|
double[] |
getObjectives()
Gets the Objective values for all DMUs.
|
double[][] |
getProjections()
Gets all the projections for all the DMUs.
|
double[] |
getProjections(int dmuIndex)
Gets all the projections for a specific DMU.
|
java.util.ArrayList<NonZeroLambda>[] |
getReferenceSet()
Gets all the reference sets for all the DMUs.
|
java.util.ArrayList<NonZeroLambda> |
getReferenceSet(int dmuIndex)
Gets the reference set of a specific DMU.
|
double |
getSlack(int dmuIndex,
int varIndex)
Gets the slack value for a specific DMU and a specific variable.
|
double[][] |
getSlacks()
Gets all the slack values for all the DMUs.
|
double[] |
getSlacks(int dmuIndex)
Gets the slack values for the specified DMU.
|
SolverReturnStatus |
getStatus()
Gets the Solution Status.
|
double |
getU0Weight(int dmuIndex)
Gets the u0 weight of a specific DMU (corresponding to the convexity constraint on variable models).
|
double[] |
getU0Weights()
Gets the u0 weights for all DMUs (corresponding to the convexity constraint on variable models).
|
double |
getuBConvexityConstraintWeight(int dmuIndex)
Gets the weight corresponding to the upper bound convexity constraint on
general, increasing and decreasing models for a specific DMU.
|
double[] |
getuBConvexityConstraintWeights()
Gets the weight corresponding to the upper bound convexity constraint on
general, increasing and decreasing models for all DMUs.
|
double |
getWeight(int dmuIndex,
int varIndex)
Gets a specific weight for a specific DMU.
|
double[][] |
getWeights()
Gets the all the weights for all the DMUs.
|
double[] |
getWeights(int dmuIndex)
Gets the weight for a specific DMU.
|
boolean |
isEfficient(int i)
Gets the efficiency status for the given DMU number.
|
void |
setEfficient(boolean[] efficient)
Sets all the DMUs efficiency status.
|
void |
setEfficient(int i,
boolean efficiencyStatus)
Sets the efficiency status for a given DMU number.
|
void |
setlBConvexityConstraintWeights(int dmuIndex,
double lBConvexityConstraintWeight)
Sets the weight corresponding to the lower bound convexity constraint on
general, increasing and decreasing models.
|
void |
setObjective(int DMUIndex,
double objectiveValue)
Sets the Objective Value for the specific DMU.
|
void |
setObjectives(double[] objectives)
Sets the Objective values for all DMUs.
|
void |
setProjection(int dmuIndex,
int varIndex,
double projectionValue)
Sets the projection value for a specific variable and a specific DMU.
|
void |
setProjections(double[][] projectionValues)
Sets all the projections for all the DMUs.
|
void |
setReferenceSet(int dmuIndex,
java.util.ArrayList<NonZeroLambda> referenceSet)
Sets the reference set of a specific DMU.
|
void |
setReferenceSets(java.util.ArrayList<NonZeroLambda>[] referenceSets)
Sets the reference set for all DMUs.
|
void |
setSlack(int dmuIndex,
int varIndex,
double slackValue)
Set the Slack for a specific DMU and a specific variable.
|
void |
setSlackArrayCopy(int dmuIndex,
double[] arrayToCopyFrom,
int positionToCopyFrom,
int LengthToCopy)
Copies slacks from an array to the Slack Array of the Solution Object.
|
void |
setSlacks(double[][] slackValues)
Set the Slack Values for all DMUs.
|
void |
setSlacks(int dmuIndex,
double[] slackValues)
Set the Slacks for a specific DMU.
|
void |
setStatus(SolverReturnStatus statusValue)
Sets the Solution Status.
|
void |
setU0Weight(int dmuIndex,
double u0Weight)
Sets the u0 weight (corresponding to the convexity constraint on variable models).
|
void |
setuBConvexityConstraintWeight(int dmuIndex,
double uBConvexityConstraintWeight)
Sets the weight corresponding to the upper bound convexity constraint on
general, increasing and decreasing models.
|
void |
setWeight(int dmuIndex,
int varIndex,
double weight)
Sets the weight for a specific DMU and a specific variable.
|
void |
setWeights(double[][] weights)
Sets all the weights for all the DMUs.
|
void |
setWeights(int dmuIndex,
double[] weights)
Sets the weights for a specific DMU.
|
void |
setWeightsArrayCopy(int dmuIndex,
double[] arrayToCopyFrom,
int positionToCopyFrom,
int LengthToCopy)
Method to set the weights using the System.arraycopy method.
|
public DEAPSolution(int nbDMUs, int nbVariables)
nbDMUs
- The number of DMUs in the DEA problem to solve.nbVariables
- The number of variables in the DEA Problem to solve.public void setObjectives(double[] objectives)
objectives
- The Objective values (array)public void setObjective(int DMUIndex, double objectiveValue)
DMUIndex
- The index of the DMU to set the objective value to.objectiveValue
- The Objective Value.public double getObjective(int dmuIndex)
dmuIndex
- The index of the DMU to get the objective value for.public double[] getObjectives()
public boolean[] getEfficient()
public void setEfficient(boolean[] efficient)
efficient
- public boolean isEfficient(int i)
i
- the dmu numberpublic void setEfficient(int i, boolean efficiencyStatus)
i
- the dmu numberefficiencyStatus
- the efficiency status of the DMU (true if efficient, false if not efficient)public void setSlacks(double[][] slackValues)
slackValues
- The Slack Values for all DMUs.public void setSlacks(int dmuIndex, double[] slackValues)
dmuIndex
- The index of the DMU to set slacks for.slackValues
- The Slack Values.public void setSlack(int dmuIndex, int varIndex, double slackValue)
dmuIndex
- The index of the DMU to set slack for.varIndex
- The index of the variable to set the slack for.slackValue
- The actual slack value.public void setSlackArrayCopy(int dmuIndex, double[] arrayToCopyFrom, int positionToCopyFrom, int LengthToCopy)
dmuIndex
- The index of the DMU to copy data toarrayToCopyFrom
- the array to copy slack values frompositionToCopyFrom
- the position to copy from in this arrayLengthToCopy
- the length to copypublic double getSlack(int dmuIndex, int varIndex)
dmuIndex
- The index of the DMU to get the slack value for.varIndex
- The index of the variable to get the slack for/public double[] getSlacks(int dmuIndex)
dmuIndex
- The index of the DMU to get the slacks for.public double[][] getSlacks()
public void setReferenceSets(java.util.ArrayList<NonZeroLambda>[] referenceSets)
referenceSets
- The reference sets for all DMUs.public void setReferenceSet(int dmuIndex, java.util.ArrayList<NonZeroLambda> referenceSet)
dmuIndex
- The index of the DMU to set the reference set to.referenceSet
- The reference set of the DMU.public void addNonZeroLambdaToReferenceSet(int dmuIndex, NonZeroLambda nonZeroLambda)
dmuIndex
- The index of the DMU to add a NonZeroLambda to.nonZeroLambda
- The NonZeroLambda to add to the reference set.public java.util.ArrayList<NonZeroLambda>[] getReferenceSet()
public java.util.ArrayList<NonZeroLambda> getReferenceSet(int dmuIndex)
dmuIndex
- The index of the DMU to get the reference set for.public void setWeights(double[][] weights)
weights
- The double[] [] corresponding to all the weights for all the DMUs.public void setWeights(int dmuIndex, double[] weights)
dmuIndex
- The index of the DMU to set the weights for.weights
- The array of the weights to assign to the DMU.public void setWeightsArrayCopy(int dmuIndex, double[] arrayToCopyFrom, int positionToCopyFrom, int LengthToCopy)
dmuIndex
- The DMU index to copy value for.arrayToCopyFrom
- The weight array to copy weights frompositionToCopyFrom
- the position to copy from in arrayToCopyFromLengthToCopy
- the length to copypublic void setWeight(int dmuIndex, int varIndex, double weight)
dmuIndex
- The index of the DMU to set the weight for.varIndex
- The index of the variable to set the weight for.weight
- The weight to set.public double[][] getWeights()
public double[] getWeights(int dmuIndex)
dmuIndex
- The index of the DMU to get the weight of.public double getWeight(int dmuIndex, int varIndex)
dmuIndex
- The index of the DMU to get the weight of.varIndex
- The index of the variable to get the weight of.public void setProjections(double[][] projectionValues)
projectionValues
- The double[] [] of projections for all DMUs.public void setProjection(int dmuIndex, int varIndex, double projectionValue)
dmuIndex
- The index of the DMU to set the projection value for.varIndex
- The index of the variable to set the projection value for.projectionValue
- The projection value to set.public double[][] getProjections()
public double[] getProjections(int dmuIndex)
dmuIndex
- The index of the DMU to get the projection of.public void setStatus(SolverReturnStatus statusValue)
statusValue
- The status value.public SolverReturnStatus getStatus()
public void setU0Weight(int dmuIndex, double u0Weight)
u0Weight
- public double[] getU0Weights()
public double getU0Weight(int dmuIndex)
dmuIndex
- public void setlBConvexityConstraintWeights(int dmuIndex, double lBConvexityConstraintWeight)
lBConvexityConstraintWeight
- public double getlBConvexityConstraintWeight(int dmuIndex)
dmuIndex
- public double[] getlBConvexityConstraintWeights()
public void setuBConvexityConstraintWeight(int dmuIndex, double uBConvexityConstraintWeight)
uBConvexityConstraintWeight
- public double[] getuBConvexityConstraintWeights()
public double getuBConvexityConstraintWeight(int dmuIndex)
dmuIndex
- the index of the DMU to retrieve the weight of.