Class ImprovementSearchLimit
java.lang.Object
com.google.ortools.constraintsolver.BaseObject
com.google.ortools.constraintsolver.SearchMonitor
com.google.ortools.constraintsolver.SearchLimit
com.google.ortools.constraintsolver.ImprovementSearchLimit
- 
Field SummaryFields inherited from class com.google.ortools.constraintsolver.SearchMonitorkNoProgressFields inherited from class com.google.ortools.constraintsolver.BaseObjectswigCMemOwn
- 
Constructor SummaryConstructorsConstructorDescriptionImprovementSearchLimit(long cPtr, boolean cMemoryOwn) ImprovementSearchLimit(Solver solver, IntVar[] objective_vars, SWIGTYPE_p_std__vectorT_bool_t maximize, double[] objective_scaling_factors, double[] objective_offsets, double improvement_rate_coefficient, int improvement_rate_solutions_distance) ImprovementSearchLimit(Solver solver, IntVar objective_var, boolean maximize, double objective_scaling_factor, double objective_offset, double improvement_rate_coefficient, int improvement_rate_solutions_distance) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanThis method is called when a valid solution is found.booleanSame as Check() but adds the 'offset' value to the current time when time
 is considered in the limit.voidcopy(SearchLimit limit) Copy a limit.voiddelete()protected voidfinalize()static longvoidinit()This method is called when the search limit is initialized.voidinstall()Registers itself on the solver such that it gets notified of the search
 and propagation events.Allocates a clone of the limit.static longMethods inherited from class com.google.ortools.constraintsolver.SearchLimitbeginNextDecision, check, crossed, enterSearch, getCPtr, keepAliveDecisionBuilder, periodicCheck, refuteDecision, swigRelease, toStringMethods inherited from class com.google.ortools.constraintsolver.SearchMonitoraccept, acceptDelta, acceptNeighbor, acceptSolution, AcceptUncheckedNeighbor, afterDecision, applyDecision, beginFail, beginInitialPropagation, endFail, endInitialPropagation, endNextDecision, exitSearch, getCPtr, IsUncheckedSolutionLimitReached, localOptimum, noMoreSolutions, progressPercent, restartSearch, solver, swigDirectorDisconnect, swigRelease, swigReleaseOwnership, swigTakeOwnershipMethods inherited from class com.google.ortools.constraintsolver.BaseObjectgetCPtr, swigRelease
- 
Constructor Details- 
ImprovementSearchLimitpublic ImprovementSearchLimit(long cPtr, boolean cMemoryOwn) 
- 
ImprovementSearchLimit
- 
ImprovementSearchLimitpublic ImprovementSearchLimit(Solver solver, IntVar[] objective_vars, SWIGTYPE_p_std__vectorT_bool_t maximize, double[] objective_scaling_factors, double[] objective_offsets, double improvement_rate_coefficient, int improvement_rate_solutions_distance) 
 
- 
- 
Method Details- 
getCPtr
- 
swigRelease
- 
finalizeprotected void finalize()- Overrides:
- finalizein class- SearchLimit
 
- 
deletepublic void delete()- Overrides:
- deletein class- SearchLimit
 
- 
copyDescription copied from class:SearchLimitCopy a limit. Warning: leads to a direct (no check) downcasting of 'limit'
 so one needs to be sure both SearchLimits are of the same type.- Overrides:
- copyin class- SearchLimit
 
- 
makeCloneDescription copied from class:SearchLimitAllocates a clone of the limit.- Overrides:
- makeClonein class- SearchLimit
 
- 
CheckWithOffsetDescription copied from class:SearchLimitSame as Check() but adds the 'offset' value to the current time when time
 is considered in the limit.- Overrides:
- CheckWithOffsetin class- SearchLimit
 
- 
atSolutionpublic boolean atSolution()Description copied from class:SearchMonitorThis method is called when a valid solution is found. If the
 return value is true, then search will resume after. If the result
 is false, then search will stop there.- Overrides:
- atSolutionin class- SearchMonitor
 
- 
initpublic void init()Description copied from class:SearchLimitThis method is called when the search limit is initialized.- Overrides:
- initin class- SearchLimit
 
- 
installpublic void install()Description copied from class:SearchMonitorRegisters itself on the solver such that it gets notified of the search
 and propagation events. Override to incrementally install listeners for
 specific events.- Overrides:
- installin class- SearchLimit
 
 
-