public class LSPhase
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getIterationLimit()
Gets the number of iterations of this phase.
|
LocalSolver |
getLocalSolver()
Returns the LocalSolver object associated to this phase.
|
int |
getOptimizedObjective()
Gets the index of the optimized objective.
|
int |
getTimeLimit()
Gets the time limit of this phase in seconds.
|
int |
hashCode() |
boolean |
isEnabled()
Returns true if the phase is enabled, False otherwise.
|
void |
setEnabled(boolean enabled)
Sets the enabled status of this phase.
|
void |
setIterationLimit(long iterationLimit)
Sets the number of iterations of this phase.
|
void |
setOptimizedObjective(int objectiveIndex)
Sets the optimized objective of this phase.
|
void |
setTimeLimit(int timeLimit)
Sets the time limit of this phase in seconds.
|
java.lang.String |
toString()
Returns a String representation of this phase.
|
public LocalSolver getLocalSolver()
public void setTimeLimit(int timeLimit)
LSState.Modeling
or LSState.Stopped
.
Note that if the optimal value of an objective is found before the end of the
corresponding phase, the remaining time will be transferred to the next phase.timeLimit
- Time limit in seconds.public int getTimeLimit()
setTimeLimit(int)
public void setIterationLimit(long iterationLimit)
LSState.Modeling
or
LSState.Stopped
.
Note that if the optimal value of an objective is found before the end of the
corresponding phase, the remaining iterations will be transferred to the next
phase.iterationLimit
- Iteration limit.public long getIterationLimit()
setIterationLimit(long)
public void setOptimizedObjective(int objectiveIndex)
LSState.Modeling
or LSState.Stopped
.objectiveIndex
- Index of the optimized objective.public int getOptimizedObjective()
setOptimizedObjective(int)
public void setEnabled(boolean enabled)
LSModel.removeObjective(int)
. By default, a
phase is enabled. Only allowed in states LSState.Modeling
or LSState.Stopped
.enabled
- True to enable the phase, False to disable itpublic boolean isEnabled()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object