| SolveItem {rminizinc} | R Documentation |
SolveItem
Description
specify whether the optimization problem is a satisfaction, minimization or maximization problem and/or expression to maximize/minnimize and/or annotation
Super class
rminizinc::Item -> SolveItem
Public fields
.ethe expression to maximize or minimize
.stthe solve type
.annannotation of the solve type
.delete_flagused to delete items
Active bindings
.ethe expression to maximize or minimize
.stthe solve type
.annannotation of the solve type
.delete_flagused to delete items
Methods
Public methods
Inherited methods
Method new()
create an instance of specify_problem class
Usage
SolveItem$new(solve_type = NULL, e = NULL, ann = NULL, mzn_str = NULL)
Arguments
solve_typesatisfy, minimize or maximize
eexpression to minimize or maximize
annannotation
mzn_strstring representation of Solve Item
Method getExp()
get the expression (or NULL)
Usage
SolveItem$getExp()
Method getAnn()
get the annotation (or NULL)
Usage
SolveItem$getAnn()
Method setExp()
set the expression
Usage
SolveItem$setExp(e)
Arguments
eexpression
Method setAnn()
set the annotation
Usage
SolveItem$setAnn(ann)
Arguments
annannotation or Null
Method getSt()
get the solve type/objective
Usage
SolveItem$getSt()
Method setSt()
set the solve type/objective
Usage
SolveItem$setSt(objective)
Arguments
objectivesolve type
Method c_str()
to string method
Usage
SolveItem$c_str()
Method getDeleteFlag()
delete flag for internal use
Usage
SolveItem$getDeleteFlag()
Method delete()
delete the variable item
Usage
SolveItem$delete()
Method clone()
The objects of this class are cloneable with this method.
Usage
SolveItem$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.