public class Test extends InstructorSchedulingModel
sDoubleFormat, sPercentageFormat, sTimeFormat
Constructor and Description |
---|
Test(DataProperties properties)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Run the problem
|
protected void |
generateReports(File outputDir,
Assignment<TeachingRequest.Variable,TeachingAssignment> assignment)
Generate a few reports
|
protected boolean |
load(File inputFile,
Assignment<TeachingRequest.Variable,TeachingAssignment> assignment)
Load input problem
|
static void |
main(String[] args) |
protected void |
save(File outputDir,
Assignment<TeachingRequest.Variable,TeachingAssignment> assignment)
Save the problem and the resulting assignment
|
addAttributeType, addInstructor, addRequest, bitset2string, createBitSet, getAttributeTypes, getInfo, getInstructors, getProperties, getRequests, getTotalValue, getTotalValue, getWeeks, load, save, string2preference
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, 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 Test(DataProperties properties)
properties
- data propertiesprotected boolean load(File inputFile, Assignment<TeachingRequest.Variable,TeachingAssignment> assignment)
inputFile
- input file (or folder)assignment
- current assignmentsprotected void generateReports(File outputDir, Assignment<TeachingRequest.Variable,TeachingAssignment> assignment) throws IOException
outputDir
- output directoryassignment
- current assignmentsIOException
- when there is an IO errorprotected void save(File outputDir, Assignment<TeachingRequest.Variable,TeachingAssignment> assignment)
outputDir
- output directoryassignment
- final assignmentpublic void execute()