Learn R Programming

rminizinc (version 0.0.8)

R Interface to 'MiniZinc'

Description

Constraint optimization, or constraint programming, is the name given to identifying feasible solutions out of a very large set of candidates, where the problem can be modeled in terms of arbitrary constraints. 'MiniZinc' is a free and open-source constraint modeling language. Constraint satisfaction and discrete optimization problems can be formulated in a high-level modeling language. Models are compiled into an intermediate representation that is understood by a wide range of solvers. 'MiniZinc' itself provides several solvers, for instance 'GeCode'. R users can use the package to solve constraint programming problems without using 'MiniZinc' directly, modify existing 'MiniZinc' models and also create their own models.

Copy Link

Version

Install

install.packages('rminizinc')

Monthly Downloads

229

Version

0.0.8

License

Mozilla Public License Version 2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Akshit Achara

Last Published

October 15th, 2021

Functions in rminizinc (0.0.8)

BoolDecl

new bool declaration
BoolSetDecl

set of bool declaration
Bool

Bool
AssignItem

Assignment Items
BinOp

BinOp
Annotation

Annotation
ArrDomainDecl

declare n-D array with domain
ConstraintItem

Constraint Items
Expression

Expression (Abstract class -- should not be initialized)
FloatSetDecl

set of float declaration
FloatDecl

float declaration
IntDecl

int declaration
BoolArrDecl

n-D bool array declaration
IntSetDecl

int set declaration
Comprehension

Comprehension
Call

Call
Float

Float
Int

Int
Id

Id class (not exposed to the user)
SolveItem

SolveItem
LIBMINIZINC_PATH

Absolute path of the libminizinc library
IntArrDecl

n-D int array declaration
FloatArrDecl

n-D float array declaration
UnOp

UnOp
String

String
IncludeItem

Include Items
Type

Type class
FloatSetVal

Float set value
ArrayAccess

Array Access
Model

MiniZinc Model class
PROJECT_DIRECTORY

Absolute path of project directory
Array

create an array
FunctionItem

Function Items
FloatVal

FloatVal class (not exposed to user)
IntVal

IntVal class (not exposed to user)
IntSetVal

Integer set value
VarDecl

VarDecl
Item

Item class (Abstract)
initExpression

initExpression (not exposed to the user)
Ite

Ite
VarDeclItem

The variable declaration item
VarDomainDecl

declare 0-D variable with domain
initItem

initialize R6 from parsed (not to be exposed)
get_missing_pars

get missing parameters
getType

initialized type (not exposed to user)
knapsack

knapsack problem
boolExpressions

get bools
Let

Let
expressionDelete

delete an expression
magic_square

magic squares problem
mzn_eval

MiniZinc model evaluation
Generator

Generator
assignment_2

assignment problem 2
SOLVER_BIN

Absolute path of the solver executable directory
StringSetDecl

set of string declaration
Set

Set
StringArrDecl

n-D String array declaration
assignment

assignment problem 2
sol_parse

parse the solution
intExpressions

get ints
itemDelete

search item in model and delete
magic_series

magic series problem
iterExpression

iterate through expressions and delete (Under Development)
floatExpressions

get floats
iterItem

check all possible items(Under Development)
TypeInst

TypeInst
getRModel

init all classes
stringExpressions

get strings
helperDeleteItem

helper delete item
production_planning

production planning problem
mzn_parse

MiniZinc syntax parser
helperDeleteExpression

helper delete expression
rminizinc-package

rminizinc: R Interface to 'MiniZinc'
set_params

set missing parameters