SolveItem
specify whether the optimization problem is a satisfaction, minimization or maximization problem and/or expression to maximize/minnimize and/or annotation
rminizinc::Item
-> SolveItem
.e
: the expression to maximize or minimize
.st
: the solve type
.ann
: annotation of the solve type
.delete_flag
: used to delete items
.e
: the expression to maximize or minimize
.st
: the solve type
.ann
: annotation of the solve type
.delete_flag
: used to delete items
new()
create an instance of specify_problem class
SolveItem$new(solve_type = NULL, e = NULL, ann = NULL, mzn_str = NULL)
solve_type
: satisfy, minimize or maximize
e
: expression to minimize or maximize
ann
: annotation
mzn_str
: string representation of Solve Item
getExp()
get the expression (or NULL)
SolveItem$getExp()
getAnn()
get the annotation (or NULL)
SolveItem$getAnn()
setExp()
set the expression
SolveItem$setExp(e)
e
: expression
setAnn()
set the annotation
SolveItem$setAnn(ann)
ann
: annotation or Null
getSt()
get the solve type/objective
SolveItem$getSt()
setSt()
set the solve type/objective
SolveItem$setSt(objective)
objective
: solve type
c_str()
to string method
SolveItem$c_str()
getDeleteFlag()
delete flag for internal use
SolveItem$getDeleteFlag()
delete()
delete the variable item
SolveItem$delete()
clone()
The objects of this class are cloneable with this method.
SolveItem$clone(deep = FALSE)
deep
: Whether to make a deep clone.
Useful links