MCPcopy Index your code

hub / github.com/cvxpy/cvxpy / types & classes

Types & classes3,223 in github.com/cvxpy/cvxpy

↓ 598 callersClassVariable
The optimization variables in a problem. Attributes ---------- sample_bounds : tuple[np.ndarray, np.ndarray] | None Explicit boun
cvxpy/expressions/variable.py:34
↓ 377 callersClassProblem
A convex optimization problem. Problems are immutable, save for modification through the specification of :class:`~cvxpy.expressions.constant
cvxpy/problems/problem.py:137
↓ 321 callersClassConstant
A constant value. Raw numerical constants such as Python primitive types or NumPy ndarrays are implicitly cast to constants via Expressi
cvxpy/expressions/constants/constant.py:33
↓ 296 callersClasstype
cvxpy/cvxcore/include/Eigen/src/Core/util/Meta.h:754
↓ 213 callersClassDerivativeChecker
A utility class to verify derivative computations by comparing C-based diff engine results against Python-based evaluations.
cvxpy/tests/nlp_tests/derivative_checker.py:23
↓ 130 callersClassMinimize
An optimization objective for minimization. Parameters ---------- expr : Expression The expression to minimize. Must be a scalar.
cvxpy/problems/objective.py:118
↓ 130 callersClasslinOpHelper
Helper class that allows to access properties of linOps without needing to create a full linOps instance
cvxpy/tests/test_python_backends.py:40
↓ 96 callersClassParameter
Parameters in optimization problems. Parameters are constant expressions whose value may be specified after problem creation. The only way to
cvxpy/expressions/constants/parameter.py:36
↓ 93 callersClassAtomTestConfig
Configuration for testing a single atom.
cvxpy/tests/test_grad.py:452
↓ 73 callersClassSolution
A solution to an optimization problem. Attributes ---------- status : str The status code. opt_val : float The optima
cvxpy/reductions/solution.py:62
↓ 73 callersClassVersion
Parses strings of the form 'x.y.z+[STUFF]' and tuples of the form (x, y, z). In the former case, '+[STUFF]' refers to a local version identif
cvxpy/utilities/versioning.py:18
↓ 71 callersEnumType
cvxpy/cvxcore/include/Eigen/src/Core/util/Constants.h:471
↓ 69 callersClasshalf
cvxpy/cvxcore/include/Eigen/src/Core/arch/CUDA/Half.h:49
↓ 59 callersClassbfloat16
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/BFloat16.h:28
↓ 57 callersClassset
cvxpy/cvxcore/include/Eigen/src/Core/ProductEvaluators.h:303
↓ 53 callersClassreshape
Reshapes the expression. Vectorizes the expression then unvectorizes it into the new shape. The entries are reshaped and stored in colum
cvxpy/atoms/affine/reshape.py:35
↓ 52 callersClasshalf
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/Half.h:62
↓ 50 callersClassConeMatrixStuffing
Construct matrices for linear cone problems. Linear cone problems are assumed to have a linear objective and cone constraints which may have
cvxpy/reductions/dcp2cone/cone_matrix_stuffing.py:329
↓ 46 callersClassSOC
A second-order cone constraint for each row/column. Assumes ``t`` is a vector the same length as ``X``'s columns (rows) for ``axis == 0`` (``
cvxpy/constraints/second_order.py:25
↓ 43 callersClassCooTensor
Compact representation of a parameter-indexed sparse tensor. Represents the 3D tensor T[param_idx, row, col] in COO format. For a tenso
cvxpy/lin_ops/backends/coo_backend.py:85
↓ 38 callersClassSolverTestHelper
cvxpy/tests/solver_test_helpers.py:25
↓ 36 callersClassmax
:math:`\\max_{i,j}\\{X_{i,j}\\}`.
cvxpy/atoms/max.py:25
↓ 32 callersClassAnd
Logical AND of boolean expressions. Returns 1 if and only if all arguments equal 1, and 0 otherwise. For two operands, can also be written w
cvxpy/atoms/elementwise/logic.py:157
↓ 32 callersClassConstant
cvxpy/lin_ops/backends/base.py:156
↓ 29 callersClassFiniteSet
Constrain each entry of an Expression to take a value in a given set of real numbers. Parameters ---------- expre : Expression
cvxpy/constraints/finite_set.py:23
↓ 28 callersClassPacket2cf
---------- float ----------
cvxpy/cvxcore/include/Eigen/src/Core/arch/AltiVec/Complex.h:30
↓ 25 callersClassProblemForm
Analyzes a CVXPY Problem to determine its structural properties. Attributes like quadratic objectives, required cones, integer constraints, a
cvxpy/problems/problem_form.py:139
↓ 24 callersClassZero
A constraint of the form :math:`x = 0`. The preferred way of creating a ``Zero`` constraint is through operator overloading. To constrain an
cvxpy/constraints/zero.py:23
↓ 23 callersClassNot
Logical NOT of a boolean expression. Returns ``1 - x``, i.e., flips 0 to 1 and 1 to 0. Can also be written with the ``~`` operator: ``~x``.
cvxpy/atoms/elementwise/logic.py:70
↓ 23 callersClassOr
Logical OR of boolean expressions. Returns 1 if and only if at least one argument equals 1, and 0 otherwise. For two operands, can also be w
cvxpy/atoms/elementwise/logic.py:195
↓ 23 callersClassXor
Logical XOR of boolean expressions. For two arguments: result is 1 iff exactly one is 1. For n arguments: result is 1 iff an odd number are 1
cvxpy/atoms/elementwise/logic.py:233
↓ 22 callersClassPacket1cd
cvxpy/cvxcore/include/Eigen/src/Core/arch/AltiVec/Complex.h:251
↓ 22 callersClassPacket4cd
---------- double ----------
cvxpy/cvxcore/include/Eigen/src/Core/arch/AVX512/Complex.h:173
↓ 22 callersClassPacket4cf
---------- float ----------
cvxpy/cvxcore/include/Eigen/src/Core/arch/AVX/Complex.h:18
↓ 21 callersClassExpCone
A reformulated exponential cone constraint. Operates elementwise on :math:`x, y, z`. Original cone: .. math:: K = \\{(x,y,z) \
cvxpy/constraints/exponential.py:30
↓ 20 callersClassPacket2cd
---------- double ----------
cvxpy/cvxcore/include/Eigen/src/Core/arch/AVX/Complex.h:187
↓ 20 callersClassPowCone3D
An object representing a collection of 3D power cone constraints x[i]**alpha[i] * y[i]**(1-alpha[i]) >= |z[i]| for all i x >= 0
cvxpy/constraints/power.py:25
↓ 19 callersClassPacket2cf
---------- float ----------
cvxpy/cvxcore/include/Eigen/src/Core/arch/SSE/Complex.h:18
↓ 18 callersClassPacket1cd
cvxpy/cvxcore/include/Eigen/src/Core/arch/ZVector/Complex.h:25
↓ 18 callersClassPacket8cf
---------- float ----------
cvxpy/cvxcore/include/Eigen/src/Core/arch/AVX512/Complex.h:18
↓ 17 callersClassPSD
A constraint of the form :math:`\\frac{1}{2}(X + X^T) \\succcurlyeq_{S_n^+} 0` Applying a ``PSD`` constraint to a two-dimensional expression ``X`
cvxpy/constraints/psd.py:25
↓ 17 callersClassSolverError
Error thrown when a solver encounters an error solving a problem.
cvxpy/error.py:35
↓ 17 callersClassTriplet
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseUtil.h:162
↓ 17 callersClassmin
:math:`\\min{i,j}\\{X_{i,j}\\}`.
cvxpy/atoms/min.py:25
↓ 16 callersClassDcp2Cone
Reduce DCP problems to a conic form. This reduction takes as input (minimization) DCP problems and converts them into problems with affine or
cvxpy/reductions/dcp2cone/dcp2cone.py:45
↓ 16 callersClassPacket2cf
cvxpy/cvxcore/include/Eigen/src/Core/arch/NEON/Complex.h:44
↓ 16 callersClassabs
Elementwise absolute value. Computes the elementwise absolute value of the input. Mathematical definition: .. math:: f(
cvxpy/atoms/elementwise/abs.py:25
↓ 15 callersClassNonNeg
A constraint of the form :math:`x \\geq 0`. The preferred way of creating an inequality constraint is through operator overloading. To constr
cvxpy/constraints/nonpos.py:105
↓ 15 callersClassPacket1cf
cvxpy/cvxcore/include/Eigen/src/Core/arch/NEON/Complex.h:38
↓ 14 callersClassFlipObjective
Flip a minimization objective to a maximization and vice versa.
cvxpy/reductions/flip_objective.py:22
↓ 14 callersClassPacket1cd
---------- double ----------
cvxpy/cvxcore/include/Eigen/src/Core/arch/SSE/Complex.h:186
↓ 14 callersClassPacket2cf
---------- float ----------
cvxpy/cvxcore/include/Eigen/src/Core/arch/MSA/Complex.h:23
↓ 14 callersClassPacket2cf
cvxpy/cvxcore/include/Eigen/src/Core/arch/ZVector/Complex.h:32
↓ 13 callersClassMaximize
An optimization objective for maximization. Parameters ---------- expr : Expression The expression to maximize. Must be a scalar.
cvxpy/problems/objective.py:194
↓ 13 callersClassPacket1cd
cvxpy/cvxcore/include/Eigen/src/Core/arch/NEON/Complex.h:400
↓ 13 callersClassgebp_kernel
cvxpy/cvxcore/include/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1057
↓ 12 callersClassupper_tri
The vectorized strictly upper-triangular entries. The vectorization is performed by concatenating (partial) rows. For example, if :
cvxpy/atoms/affine/upper_tri.py:29
↓ 11 callersClassCvxAttr2Constr
Expand convex variable attributes into constraints.
cvxpy/reductions/cvx_attr2constr.py:165
↓ 11 callersClassPacket1cd
cvxpy/cvxcore/include/Eigen/src/Core/arch/MSA/Complex.h:341
↓ 11 callersClassPowConeND
Represents a collection of N-dimensional power cone constraints that is *mathematically* equivalent to the following code snippet (which
cvxpy/constraints/power.py:169
↓ 11 callersClassconstructor_without_unaligned_array_assert
cvxpy/cvxcore/include/Eigen/src/Core/DenseStorage.h:25
↓ 10 callersClassMultiVarAtomConfig
Configuration for testing atoms with multiple variable arguments.
cvxpy/tests/test_grad.py:474
↓ 10 callersClassSymbolicQuadForm
Symbolic form of QuadForm when quadratic matrix is not known (yet). Parameters ---------- x : Variable or Expression The inp
cvxpy/atoms/quad_form.py:171
↓ 10 callersClasslog
Elementwise natural logarithm. Computes the elementwise natural logarithm of the input. Mathematical definition: .. math::
cvxpy/atoms/elementwise/log.py:24
↓ 10 callersClassmultiply
Multiplies two expressions elementwise.
cvxpy/atoms/affine/binary_operators.py:344
↓ 9 callersClassInverseData
Stores data useful for solution retrieval.
cvxpy/reductions/inverse_data.py:20
↓ 9 callersClassTensorRepresentation
Sparse representation of a 3D Tensor. Semantically similar to COO format, with one extra dimension. Here, 'row' is axis 0, 'col' axis 1, and
cvxpy/lin_ops/backends/base.py:161
↓ 8 callersClassOracles
Oracle interface for NLP solvers using the C-based diff engine. Provides function and derivative oracles (objective, gradient, constraints, J
cvxpy/reductions/solvers/nlp_solvers/nlp_solver.py:156
↓ 8 callersClassQuadForm
cvxpy/atoms/quad_form.py:35
↓ 8 callersClassarray_size
cvxpy/cvxcore/include/Eigen/src/Core/util/Meta.h:445
↓ 8 callersClassexp
Elementwise exponential function. Computes the elementwise exponential of the input. Mathematical definition: .. math::
cvxpy/atoms/elementwise/exp.py:24
↓ 8 callersClasspsd_wrap
Asserts that a square matrix is PSD.
cvxpy/atoms/affine/wraps.py:83
↓ 7 callersClassSolverInverseData
The context for a reduction, which may include a solver and solver options.
cvxpy/reductions/solvers/solver_inverse_data.py:21
↓ 7 callersClasslog_sum_exp
:math:`\\log\\sum_i e^{x_i}`
cvxpy/atoms/log_sum_exp.py:25
↓ 7 callersClassskew_symmetric_wrap
Asserts that X is a real square matrix, satisfying X + X.T == 0.
cvxpy/atoms/affine/wraps.py:160
↓ 6 callersClassCLARABEL
An interface for the Clarabel solver.
cvxpy/reductions/solvers/conic_solvers/clarabel_conif.py:65
↓ 6 callersClassChain
A logical grouping of multiple reductions into a single reduction. Attributes ---------- reductions : list[Reduction] A list of r
cvxpy/reductions/chain.py:26
↓ 6 callersClassDCPError
Error thrown for DCP violations.
cvxpy/error.py:40
↓ 6 callersClassEliminateZeroSized
Eliminates zero-sized expressions from a problem. Zero-sized variables (those with a 0 in their shape) have no elements and are vacuous. This
cvxpy/reductions/eliminate_zero_sized.py:41
↓ 6 callersClasssymmetric_wrap
Asserts that a real square matrix is symmetric
cvxpy/atoms/affine/wraps.py:131
↓ 6 callersClasstranspose
Transpose an expression. For an n-D expression, if axes are given, the order indicates the permutation of axes.
cvxpy/atoms/affine/transpose.py:27
↓ 6 callersClassvon_neumann_entr
Represents the von Neumann Entropy of the positive-definite matrix :math:`X,` .. math:: -\\operatorname{tr}(X \\log X).
cvxpy/atoms/von_neumann_entr.py:25
↓ 5 callersClassOSQP
QP interface for the OSQP solver
cvxpy/reductions/solvers/qp_solvers/osqp_qpif.py:13
↓ 5 callersClassRotation2D
cvxpy/cvxcore/include/Eigen/src/Geometry/Rotation2D.h:41
↓ 5 callersClassSCS
An interface for the SCS solver.
cvxpy/reductions/solvers/conic_solvers/scs_conif.py:82
↓ 5 callersClasshermitian_wrap
Asserts that a square matrix is Hermitian.
cvxpy/atoms/affine/wraps.py:145
↓ 5 callersClasskron
Kronecker product.
cvxpy/atoms/affine/kron.py:27
↓ 4 callersClassReturnType
cvxpy/cvxcore/include/Eigen/src/Core/VectorwiseOp.h:197
↓ 4 callersClassSOCDim3
Convert n-dimensional SOC constraints to dimension-3 SOC constraints.
cvxpy/reductions/cone2cone/soc_dim3.py:408
↓ 4 callersClassSolvingChain
A reduction chain that ends with a solver. Parameters ---------- reductions : list[Reduction] A list of reductions. The last redu
cvxpy/reductions/solvers/solving_chain.py:452
↓ 4 callersClassSvecPSD
A PSD constraint in scaled vectorized (svec) form. The argument is a 1-D expression of length ``n * (n + 1) // 2`` representing the scaled lo
cvxpy/constraints/psd.py:125
↓ 4 callersClass_PSDOnlyClarabel
Test-only Clarabel wrapper exposing only SvecPSD (no SOC).
cvxpy/tests/test_cone2cone.py:791
↓ 4 callersClassdiag_vec
Converts a vector into a diagonal matrix.
cvxpy/atoms/affine/diag.py:55
↓ 4 callersClassmaximum
Elementwise maximum of a sequence of expressions. Computes the elementwise maximum over two or more input expressions. Mathematical definiti
cvxpy/atoms/elementwise/maximum.py:26
↓ 4 callersClassnorm1
cvxpy/atoms/norm1.py:25
↓ 4 callersClassperspective
r"""Implements the perspective transform of a convex or concave scalar expression. Uses the fact that given a cone form for the epigraph of :math:
cvxpy/atoms/perspective.py:28
↓ 4 callersClassstop_iteration
cvxpy/cvxcore/python/cvxcore_wrap.cxx:3390
↓ 3 callersClassApproxCone2Cone
cvxpy/reductions/cone2cone/approx.py:275
↓ 3 callersClassBounds
Extracts variable and constraint bounds from a CVXPY problem. Converts the problem into the standard NLP form:: g^l <= g(x) <= g^u, x^
cvxpy/reductions/solvers/nlp_solvers/nlp_solver.py:80
↓ 3 callersClassCoeffExtractor
cvxpy/utilities/coeff_extractor.py:35
next →1–100 of 3,223, ranked by callers