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

.e

the expression to maximize or minimize

.st

the solve type

.ann

annotation of the solve type

.delete_flag

used to delete items

Active bindings

.e

the expression to maximize or minimize

.st

the solve type

.ann

annotation of the solve type

.delete_flag

used 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_type

satisfy, minimize or maximize

e

expression to minimize or maximize

ann

annotation

mzn_str

string 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
e

expression


Method setAnn()

set the annotation

Usage
SolveItem$setAnn(ann)
Arguments
ann

annotation or Null


Method getSt()

get the solve type/objective

Usage
SolveItem$getSt()

Method setSt()

set the solve type/objective

Usage
SolveItem$setSt(objective)
Arguments
objective

solve 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
deep

Whether to make a deep clone.


[Package rminizinc version 0.0.8 Index]