SizeMetrics-class {CVXR}R Documentation

The SizeMetrics class.

Description

This class contains various metrics regarding the problem size.

Usage

SizeMetrics(problem)

Arguments

problem

A Problem object.

Slots

num_scalar_variables

The number of scalar variables in the problem.

num_scalar_data

The number of constants used across all matrices and vectors in the problem. Some constants are not apparent when the problem is constructed. For example, the sum_squares expression is a wrapper for a quad_over_lin expression with a constant 1 in the denominator.

num_scalar_eq_constr

The number of scalar equality constraints in the problem.

num_scalar_leq_constr

The number of scalar inequality constraints in the problem.

max_data_dimension

The longest dimension of any data block constraint or parameter.

max_big_small_squared

The maximum value of (big)(small)^2 over all data blocks of the problem, where (big) is the larger dimension and (small) is the smaller dimension for each data block.


[Package CVXR version 1.0-14 Index]