public class StructuredCSPModel extends Model<CSPVariable,CSPValue>
Parameter | Type | Comment |
---|---|---|
CSP.NrVariables | Integer |
Number of variables |
CSP.DomainSize | Integer |
Number of values for each variable |
CSP.NrKernels | Integer |
Number of kernels |
CSP.KernelSize | Integer |
Number of variables in each kernel |
CSP.Tightness | Double |
Tightness of constraints outside kernels |
CSP.KernelTightness | Double |
Tightness of constraints inside a kernel |
CSP.Density | Double |
Density of constraints outside kernels |
CSP.KernelDensity | Double |
Density of constraints inside a kernel |
General.MPP | String |
Minimal perturbation problem → generate initial assignment |
sDoubleFormat, sPercentageFormat, sTimeFormat
Constructor and Description |
---|
StructuredCSPModel(DataProperties properties,
long seed)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getInfo(Assignment<CSPVariable,CSPValue> assignment)
Return information table
|
addConstraint, addCriterion, addGlobalConstraint, addModelListener, addVariable, afterAssigned, afterAssigned, afterUnassigned, afterUnassigned, assignedVariables, assignedVariables, beforeAssigned, beforeAssigned, beforeUnassigned, beforeUnassigned, bestUnassignedVariables, bestUnassignedVariables, clearAssignmentContexts, clearBest, conflictConstraints, conflictValues, conflictValues, constraints, countConstraints, countGlobalConstraints, countVariables, createAssignmentContexts, createInheritedAssignment, createReference, getBestPerturbations, getBestUnassignedVariables, getBestValue, getCriteria, getCriterion, getDefaultAssignment, getEmptyAssignment, getExtendedInfo, getExtendedInfo, getInfo, getInfo, getInfo, getInfoProviders, getModelListeners, getPerc, getPercRev, getTotalValue, getTotalValue, getTotalValue, getTotalValue, globalConstraints, inConflict, inConflict, init, invalidateVariablesWithInitialValueCache, modelListenerOfType, nrAssignedVariables, nrAssignedVariables, nrUnassignedVariables, nrUnassignedVariables, perturbVariables, perturbVariables, perturbVariables, perturbVariables, perturbVariables, removeConstraint, removeCriterion, removeCriterion, removeGlobalConstraint, removeModelListener, removeReference, removeVariable, restoreBest, restoreBest, restoreBest, saveBest, saveBest, setBestValue, setDefaultAssignment, toString, toString, unassignedHardConstraints, unassignedVariables, unassignedVariables, variables, variablesWithInitialValue, weaken
public StructuredCSPModel(DataProperties properties, long seed)
properties
- solver configurationseed
- random seedpublic Map<String,String> getInfo(Assignment<CSPVariable,CSPValue> assignment)
getInfo
in class Model<CSPVariable,CSPValue>
assignment
- current assignment