ConstraintItem: Constraint Items

Description Super class Public fields Active bindings Methods

Description

Describe Minizinc constraints on decision variables.

Super class

rminizinc::Item -> ConstraintItem

Public fields

.e

the constraint expression

.delete_flag

used to delete items

Active bindings

.e

the constraint expression

.delete_flag

used to delete items

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of Constraint class.

Usage
ConstraintItem$new(e = NULL, mzn_str = NULL)
Arguments
e

The expression for the constraint (used if e is NULL)

mzn_str

string representation of Constraint item


Method getExp()

get the constraint expression

Usage
ConstraintItem$getExp()

Method setExp()

set the constraint expression

Usage
ConstraintItem$setExp(e)
Arguments
e

expression


Method c_str()

serialize to MiniZinc syntax

Usage
ConstraintItem$c_str()

Method getDeleteFlag()

delete flag for internal use

Usage
ConstraintItem$getDeleteFlag()

Method delete()

delete the constraint item

Usage
ConstraintItem$delete()

Method clone()

The objects of this class are cloneable with this method.

Usage
ConstraintItem$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


rminizinc documentation built on Oct. 15, 2021, 9:06 a.m.