Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cvxpy/cvxpy
/ types & classes
Types & classes
3,223 in github.com/cvxpy/cvxpy
⨍
Functions
13,519
◇
Types & classes
3,223
↳
Endpoints
49
↓ 598 callers
Class
Variable
The optimization variables in a problem. Attributes ---------- sample_bounds : tuple[np.ndarray, np.ndarray] | None Explicit boun
cvxpy/expressions/variable.py:34
↓ 377 callers
Class
Problem
A convex optimization problem. Problems are immutable, save for modification through the specification of :class:`~cvxpy.expressions.constant
cvxpy/problems/problem.py:137
↓ 321 callers
Class
Constant
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 callers
Class
type
cvxpy/cvxcore/include/Eigen/src/Core/util/Meta.h:754
↓ 213 callers
Class
DerivativeChecker
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 callers
Class
Minimize
An optimization objective for minimization. Parameters ---------- expr : Expression The expression to minimize. Must be a scalar.
cvxpy/problems/objective.py:118
↓ 130 callers
Class
linOpHelper
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 callers
Class
Parameter
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 callers
Class
AtomTestConfig
Configuration for testing a single atom.
cvxpy/tests/test_grad.py:452
↓ 73 callers
Class
Solution
A solution to an optimization problem. Attributes ---------- status : str The status code. opt_val : float The optima
cvxpy/reductions/solution.py:62
↓ 73 callers
Class
Version
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 callers
Enum
Type
cvxpy/cvxcore/include/Eigen/src/Core/util/Constants.h:471
↓ 69 callers
Class
half
cvxpy/cvxcore/include/Eigen/src/Core/arch/CUDA/Half.h:49
↓ 59 callers
Class
bfloat16
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/BFloat16.h:28
↓ 57 callers
Class
set
cvxpy/cvxcore/include/Eigen/src/Core/ProductEvaluators.h:303
↓ 53 callers
Class
reshape
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 callers
Class
half
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/Half.h:62
↓ 50 callers
Class
ConeMatrixStuffing
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 callers
Class
SOC
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 callers
Class
CooTensor
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 callers
Class
SolverTestHelper
cvxpy/tests/solver_test_helpers.py:25
↓ 36 callers
Class
max
:math:`\\max_{i,j}\\{X_{i,j}\\}`.
cvxpy/atoms/max.py:25
↓ 32 callers
Class
And
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 callers
Class
Constant
cvxpy/lin_ops/backends/base.py:156
↓ 29 callers
Class
FiniteSet
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 callers
Class
Packet2cf
---------- float ----------
cvxpy/cvxcore/include/Eigen/src/Core/arch/AltiVec/Complex.h:30
↓ 25 callers
Class
ProblemForm
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 callers
Class
Zero
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 callers
Class
Not
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 callers
Class
Or
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 callers
Class
Xor
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 callers
Class
Packet1cd
cvxpy/cvxcore/include/Eigen/src/Core/arch/AltiVec/Complex.h:251
↓ 22 callers
Class
Packet4cd
---------- double ----------
cvxpy/cvxcore/include/Eigen/src/Core/arch/AVX512/Complex.h:173
↓ 22 callers
Class
Packet4cf
---------- float ----------
cvxpy/cvxcore/include/Eigen/src/Core/arch/AVX/Complex.h:18
↓ 21 callers
Class
ExpCone
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 callers
Class
Packet2cd
---------- double ----------
cvxpy/cvxcore/include/Eigen/src/Core/arch/AVX/Complex.h:187
↓ 20 callers
Class
PowCone3D
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 callers
Class
Packet2cf
---------- float ----------
cvxpy/cvxcore/include/Eigen/src/Core/arch/SSE/Complex.h:18
↓ 18 callers
Class
Packet1cd
cvxpy/cvxcore/include/Eigen/src/Core/arch/ZVector/Complex.h:25
↓ 18 callers
Class
Packet8cf
---------- float ----------
cvxpy/cvxcore/include/Eigen/src/Core/arch/AVX512/Complex.h:18
↓ 17 callers
Class
PSD
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 callers
Class
SolverError
Error thrown when a solver encounters an error solving a problem.
cvxpy/error.py:35
↓ 17 callers
Class
Triplet
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseUtil.h:162
↓ 17 callers
Class
min
:math:`\\min{i,j}\\{X_{i,j}\\}`.
cvxpy/atoms/min.py:25
↓ 16 callers
Class
Dcp2Cone
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 callers
Class
Packet2cf
cvxpy/cvxcore/include/Eigen/src/Core/arch/NEON/Complex.h:44
↓ 16 callers
Class
abs
Elementwise absolute value. Computes the elementwise absolute value of the input. Mathematical definition: .. math:: f(
cvxpy/atoms/elementwise/abs.py:25
↓ 15 callers
Class
NonNeg
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 callers
Class
Packet1cf
cvxpy/cvxcore/include/Eigen/src/Core/arch/NEON/Complex.h:38
↓ 14 callers
Class
FlipObjective
Flip a minimization objective to a maximization and vice versa.
cvxpy/reductions/flip_objective.py:22
↓ 14 callers
Class
Packet1cd
---------- double ----------
cvxpy/cvxcore/include/Eigen/src/Core/arch/SSE/Complex.h:186
↓ 14 callers
Class
Packet2cf
---------- float ----------
cvxpy/cvxcore/include/Eigen/src/Core/arch/MSA/Complex.h:23
↓ 14 callers
Class
Packet2cf
cvxpy/cvxcore/include/Eigen/src/Core/arch/ZVector/Complex.h:32
↓ 13 callers
Class
Maximize
An optimization objective for maximization. Parameters ---------- expr : Expression The expression to maximize. Must be a scalar.
cvxpy/problems/objective.py:194
↓ 13 callers
Class
Packet1cd
cvxpy/cvxcore/include/Eigen/src/Core/arch/NEON/Complex.h:400
↓ 13 callers
Class
gebp_kernel
cvxpy/cvxcore/include/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1057
↓ 12 callers
Class
upper_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 callers
Class
CvxAttr2Constr
Expand convex variable attributes into constraints.
cvxpy/reductions/cvx_attr2constr.py:165
↓ 11 callers
Class
Packet1cd
cvxpy/cvxcore/include/Eigen/src/Core/arch/MSA/Complex.h:341
↓ 11 callers
Class
PowConeND
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 callers
Class
constructor_without_unaligned_array_assert
cvxpy/cvxcore/include/Eigen/src/Core/DenseStorage.h:25
↓ 10 callers
Class
MultiVarAtomConfig
Configuration for testing atoms with multiple variable arguments.
cvxpy/tests/test_grad.py:474
↓ 10 callers
Class
SymbolicQuadForm
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 callers
Class
log
Elementwise natural logarithm. Computes the elementwise natural logarithm of the input. Mathematical definition: .. math::
cvxpy/atoms/elementwise/log.py:24
↓ 10 callers
Class
multiply
Multiplies two expressions elementwise.
cvxpy/atoms/affine/binary_operators.py:344
↓ 9 callers
Class
InverseData
Stores data useful for solution retrieval.
cvxpy/reductions/inverse_data.py:20
↓ 9 callers
Class
TensorRepresentation
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 callers
Class
Oracles
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 callers
Class
QuadForm
cvxpy/atoms/quad_form.py:35
↓ 8 callers
Class
array_size
cvxpy/cvxcore/include/Eigen/src/Core/util/Meta.h:445
↓ 8 callers
Class
exp
Elementwise exponential function. Computes the elementwise exponential of the input. Mathematical definition: .. math::
cvxpy/atoms/elementwise/exp.py:24
↓ 8 callers
Class
psd_wrap
Asserts that a square matrix is PSD.
cvxpy/atoms/affine/wraps.py:83
↓ 7 callers
Class
SolverInverseData
The context for a reduction, which may include a solver and solver options.
cvxpy/reductions/solvers/solver_inverse_data.py:21
↓ 7 callers
Class
log_sum_exp
:math:`\\log\\sum_i e^{x_i}`
cvxpy/atoms/log_sum_exp.py:25
↓ 7 callers
Class
skew_symmetric_wrap
Asserts that X is a real square matrix, satisfying X + X.T == 0.
cvxpy/atoms/affine/wraps.py:160
↓ 6 callers
Class
CLARABEL
An interface for the Clarabel solver.
cvxpy/reductions/solvers/conic_solvers/clarabel_conif.py:65
↓ 6 callers
Class
Chain
A logical grouping of multiple reductions into a single reduction. Attributes ---------- reductions : list[Reduction] A list of r
cvxpy/reductions/chain.py:26
↓ 6 callers
Class
DCPError
Error thrown for DCP violations.
cvxpy/error.py:40
↓ 6 callers
Class
EliminateZeroSized
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 callers
Class
symmetric_wrap
Asserts that a real square matrix is symmetric
cvxpy/atoms/affine/wraps.py:131
↓ 6 callers
Class
transpose
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 callers
Class
von_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 callers
Class
OSQP
QP interface for the OSQP solver
cvxpy/reductions/solvers/qp_solvers/osqp_qpif.py:13
↓ 5 callers
Class
Rotation2D
cvxpy/cvxcore/include/Eigen/src/Geometry/Rotation2D.h:41
↓ 5 callers
Class
SCS
An interface for the SCS solver.
cvxpy/reductions/solvers/conic_solvers/scs_conif.py:82
↓ 5 callers
Class
hermitian_wrap
Asserts that a square matrix is Hermitian.
cvxpy/atoms/affine/wraps.py:145
↓ 5 callers
Class
kron
Kronecker product.
cvxpy/atoms/affine/kron.py:27
↓ 4 callers
Class
ReturnType
cvxpy/cvxcore/include/Eigen/src/Core/VectorwiseOp.h:197
↓ 4 callers
Class
SOCDim3
Convert n-dimensional SOC constraints to dimension-3 SOC constraints.
cvxpy/reductions/cone2cone/soc_dim3.py:408
↓ 4 callers
Class
SolvingChain
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 callers
Class
SvecPSD
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 callers
Class
_PSDOnlyClarabel
Test-only Clarabel wrapper exposing only SvecPSD (no SOC).
cvxpy/tests/test_cone2cone.py:791
↓ 4 callers
Class
diag_vec
Converts a vector into a diagonal matrix.
cvxpy/atoms/affine/diag.py:55
↓ 4 callers
Class
maximum
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 callers
Class
norm1
cvxpy/atoms/norm1.py:25
↓ 4 callers
Class
perspective
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 callers
Class
stop_iteration
cvxpy/cvxcore/python/cvxcore_wrap.cxx:3390
↓ 3 callers
Class
ApproxCone2Cone
cvxpy/reductions/cone2cone/approx.py:275
↓ 3 callers
Class
Bounds
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 callers
Class
CoeffExtractor
cvxpy/utilities/coeff_extractor.py:35
next →
1–100 of 3,223, ranked by callers