Unlimited learning, half price | 50% off
Get 50% off unlimited learning

CVXR (version 0.99-7)

BoolConstr-class: The BoolConstr class.

Description

This class represents a boolean constraint, Xij{0,1} for all i,j.

Usage

BoolConstr(lin_op)

# S4 method for BoolConstr format_constr(object, eq_constr, leq_constr, dims, solver)

# S4 method for BoolConstr size(object)

Arguments

lin_op

A list representing the linear operator equal to the .noncvx_var.

object

A '>BoolConstr object.

eq_constr

A list of the equality constraints in the canonical problem.

leq_constr

A list of the inequality constraints in the canonical problem.

dims

A list with the dimensions of the conic constraints.

solver

A string representing the solver to be called.

Methods (by generic)

  • format_constr: Format SDP constraints as inequalities for the solver.

  • size: The dimensions of the semidefinite cone.

Slots

constr_id

(Internal) A unique integer identification number used internally.

lin_op

A list representing the linear operator equal to the .noncvx_var.

.noncvx_var

(Internal) A list representing the variable constrained to be elementwise boolean.