public final class ObjectiveFactory extends Object
Modifier and Type | Method and Description |
---|---|
static <V> V |
copy(V object) |
static IObjectiveManager<IntVar> |
makeObjectiveManager(IntVar objective,
ResolutionPolicy policy)
Define the variable to optimize (maximize or minimize)
By default, the manager uses
IObjectiveManager.setStrictDynamicCut() to avoid exploring worse solutions. |
static IObjectiveManager<RealVar> |
makeObjectiveManager(RealVar objective,
ResolutionPolicy policy,
double precision)
Define the variable to optimize (maximize or minimize)
By default, the manager uses
IObjectiveManager.setStrictDynamicCut() to avoid exploring worse solutions. |
static IObjectiveManager<Variable> |
SAT()
Define a manager for satisfaction problems.
|
public static IObjectiveManager<Variable> SAT()
public static IObjectiveManager<IntVar> makeObjectiveManager(IntVar objective, ResolutionPolicy policy)
IObjectiveManager.setStrictDynamicCut()
to avoid exploring worse solutions.objective
- variable to optimizepolicy
- {ResolutionPolicy.MINIMIZE
/ResolutionPolicy.MAXIMIZE
IllegalArgumentException
- if the policy is ResolutionPolicy.SATISFACTION
.public static IObjectiveManager<RealVar> makeObjectiveManager(RealVar objective, ResolutionPolicy policy, double precision)
IObjectiveManager.setStrictDynamicCut()
to avoid exploring worse solutions.objective
- variable to optimizepolicy
- {ResolutionPolicy.MINIMIZE
/ResolutionPolicy.MAXIMIZE
IllegalArgumentException
- if the policy is ResolutionPolicy.SATISFACTION
.public static <V> V copy(V object)
object
- to copyCopyright © 2018. All rights reserved.