public final class Objective extends Object
Constructor and Description |
---|
Objective(State state,
ObjectiveKind kind)
Initializes a new instance of the
com.bayesserver.optimization.objective. class. |
Objective(State state,
ObjectiveKind kind,
Double value)
Initializes a new instance of the
com.bayesserver.optimization.objective. class. |
Objective(Variable variable,
ObjectiveKind kind)
Initializes a new instance of the
com.bayesserver.optimization.objective. class. |
Objective(Variable variable,
ObjectiveKind kind,
Double value)
Initializes a new instance of the
com.bayesserver.optimization.objective. class. |
Modifier and Type | Method and Description |
---|---|
ObjectiveKind |
getKind()
Gets the kind of optimization to carry out.
|
State |
getState()
Gets the state being optimized.
|
Double |
getValue()
Gets the objective target value.
|
Variable |
getVariable()
Gets the variable being optimized.
|
public Objective(Variable variable, ObjectiveKind kind)
com.bayesserver.optimization.objective.
class.variable
- The variable to optimize. Can be discrete, continuous or a function.kind
- The type of optimization to carry out. e.g. Minimize or maximize.public Objective(State state, ObjectiveKind kind)
com.bayesserver.optimization.objective.
class.state
- The discrete state to optimize.kind
- The type of optimization to carry out. e.g. Minimize or maximize.public Objective(Variable variable, ObjectiveKind kind, Double value)
com.bayesserver.optimization.objective.
class.variable
- The variable to optimize. Can be discrete, continuous or a function.kind
- The type of optimization to carry out. e.g. Minimize, maximize or Target.value
- The target value when objective kind is Target.public Objective(State state, ObjectiveKind kind, Double value)
com.bayesserver.optimization.objective.
class.state
- The discrete state to optimize.kind
- The type of optimization to carry out. e.g. Minimize, maximize or Target.value
- The target value when objective kind is Target.public State getState()
public Variable getVariable()
public ObjectiveKind getKind()
public Double getValue()
Kind
is set to Target.Copyright © 2021. All rights reserved.