public class OptimizeVar extends ObjectiveMonitor
kNoProgress
swigCMemOwn
Constructor and Description |
---|
OptimizeVar(long cPtr,
boolean cMemoryOwn) |
OptimizeVar(Solver solver,
boolean maximize,
IntVar var,
long step) |
OptimizeVar(Solver solver,
SWIGTYPE_p_std__vectorT_bool_t maximize,
IntVar[] vars,
long[] steps) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptSolution()
This method is called when a solution is found.
|
void |
applyBound() |
boolean |
atSolution()
This method is called when a valid solution is found.
|
void |
beginNextDecision(DecisionBuilder db)
Internal methods.
|
long |
best()
Returns the best value found during search.
|
void |
delete() |
protected void |
finalize() |
static long |
getCPtr(OptimizeVar obj) |
void |
keepAliveDecisionBuilder(DecisionBuilder db) |
java.lang.String |
Name() |
void |
refuteDecision(Decision d)
Before refuting the decision.
|
static long |
swigRelease(OptimizeVar obj) |
java.lang.String |
toString() |
IntVar |
var()
Returns the variable that is optimized.
|
accept, acceptDelta, BestValue, enterSearch, getCPtr, Maximize, MinimizationVar, ObjectiveVar, Size, Step, swigRelease
getCPtr, is_active, set_active, swigRelease
acceptNeighbor, AcceptUncheckedNeighbor, afterDecision, applyDecision, beginFail, beginInitialPropagation, endFail, endInitialPropagation, endNextDecision, exitSearch, getCPtr, install, IsUncheckedSolutionLimitReached, localOptimum, noMoreSolutions, periodicCheck, progressPercent, restartSearch, solver, swigDirectorDisconnect, swigRelease, swigReleaseOwnership, swigTakeOwnership
getCPtr, swigRelease
public OptimizeVar(long cPtr, boolean cMemoryOwn)
public OptimizeVar(Solver solver, SWIGTYPE_p_std__vectorT_bool_t maximize, IntVar[] vars, long[] steps)
public static long getCPtr(OptimizeVar obj)
public static long swigRelease(OptimizeVar obj)
protected void finalize()
finalize
in class ObjectiveMonitor
public void delete()
delete
in class ObjectiveMonitor
public void keepAliveDecisionBuilder(DecisionBuilder db)
keepAliveDecisionBuilder
in class SearchMonitor
public long best()
public IntVar var()
public void beginNextDecision(DecisionBuilder db)
beginNextDecision
in class SearchMonitor
public void refuteDecision(Decision d)
SearchMonitor
refuteDecision
in class SearchMonitor
public boolean atSolution()
SearchMonitor
atSolution
in class ObjectiveMonitor
public boolean acceptSolution()
SearchMonitor
acceptSolution
in class SearchMonitor
public java.lang.String Name()
public java.lang.String toString()
toString
in class BaseObject
public void applyBound()
Copyright © 2025. All rights reserved.