repo
stringclasses
454 values
file_path
stringlengths
5
201
extension
stringclasses
1 value
content
stringlengths
8
509k
num_lines
int64
3
16.9k
size_bytes
int64
8
511k
cvxpy
cvxpy/reductions/dnlp2smooth/canonicalizers/pnorm_canon.py
.py
""" Copyright 2025 CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
41
1,404
cvxpy
cvxpy/reductions/dnlp2smooth/canonicalizers/log_sum_exp_canon.py
.py
""" Copyright 2025 CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
38
1,195
cvxpy
cvxpy/reductions/dnlp2smooth/canonicalizers/quad_over_lin_canon.py
.py
""" Copyright 2025 CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
53
1,853
cvxpy
cvxpy/reductions/dnlp2smooth/canonicalizers/huber_canon.py
.py
""" Copyright 2025 CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
56
1,788
cvxpy
cvxpy/reductions/dnlp2smooth/canonicalizers/rel_entr_canon.py
.py
""" Copyright 2025 CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
57
1,915
cvxpy
cvxpy/reductions/cone2cone/exact.py
.py
""" Copyright 2021 the CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
616
21,656
cvxpy
cvxpy/reductions/cone2cone/affine2direct.py
.py
""" Copyright 2020 the CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
443
19,231
cvxpy
cvxpy/reductions/cone2cone/approx.py
.py
""" Copyright 2022 the CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
290
10,493
cvxpy
cvxpy/reductions/cone2cone/soc_dim3.py
.py
""" Copyright 2025, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
527
18,147
cvxpy
cvxpy/reductions/cone2cone/cone_tree.py
.py
""" Copyright 2025, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
97
2,833
cvxpy
cvxpy/reductions/dqcp2dcp/tighten.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
35
1,154
cvxpy
cvxpy/reductions/dqcp2dcp/__init__.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
16
562
cvxpy
cvxpy/reductions/dqcp2dcp/sets.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
194
5,295
cvxpy
cvxpy/reductions/dqcp2dcp/inverse.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
100
3,578
cvxpy
cvxpy/reductions/dqcp2dcp/dqcp2dcp.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
237
9,570
cvxpy
cvxpy/reductions/complex2real/complex2real.py
.py
""" Copyright 2017 Robin Verschueren Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
419
18,022
cvxpy
cvxpy/reductions/complex2real/__init__.py
.py
""" Copyright 2017 Robin Verschueren Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
16
566
cvxpy
cvxpy/reductions/complex2real/canonicalizers/constant_canon.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
28
912
cvxpy
cvxpy/reductions/complex2real/canonicalizers/aff_canon.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
141
4,648
cvxpy
cvxpy/reductions/complex2real/canonicalizers/variable_canon.py
.py
""" Copyright 2013 Steven Diamond, 2022 - the CVXPY Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
95
3,415
cvxpy
cvxpy/reductions/complex2real/canonicalizers/equality_canon.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
53
1,780
cvxpy
cvxpy/reductions/complex2real/canonicalizers/__init__.py
.py
""" Copyright 2017 Robin Verschueren, 2022 - the CVXPY Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ...
273
11,367
cvxpy
cvxpy/reductions/complex2real/canonicalizers/abs_canon.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
32
1,087
cvxpy
cvxpy/reductions/complex2real/canonicalizers/pnorm_canon.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
23
815
cvxpy
cvxpy/reductions/complex2real/canonicalizers/psd_canon.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
37
1,178
cvxpy
cvxpy/reductions/complex2real/canonicalizers/soc_canon.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
43
1,583
cvxpy
cvxpy/reductions/complex2real/canonicalizers/matrix_canon.py
.py
""" Copyright 2013 Steven Diamond, 2022 the CVXPY Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
238
8,555
cvxpy
cvxpy/reductions/complex2real/canonicalizers/inequality_canon.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
42
1,460
cvxpy
cvxpy/reductions/complex2real/canonicalizers/param_canon.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
28
860
cvxpy
cvxpy/reductions/solvers/solving_chain_utils.py
.py
from cvxpy.settings import ( COO_CANON_BACKEND, CPP_CANON_BACKEND, SCIPY_CANON_BACKEND, ) from cvxpy.utilities.warn import warn def get_canon_backend(problem, canon_backend: str) -> str: """ This function checks if the problem has expressions of dimension greater than 2 or if it lacks C++ supp...
55
2,110
cvxpy
cvxpy/reductions/solvers/solving_chain.py
.py
from __future__ import annotations from typing import TYPE_CHECKING import numpy as np import scipy.sparse as sp import cvxpy.settings as s from cvxpy.constraints import ( SOC, FiniteSet, ) from cvxpy.error import DPPError, SolverError from cvxpy.problems.objective import Maximize from cvxpy.problems.problem...
564
20,628
cvxpy
cvxpy/reductions/solvers/kktsolver.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
125
4,372
cvxpy
cvxpy/reductions/solvers/solver_inverse_data.py
.py
""" Copyright 2013 Steven Diamond, 2017 Akshay Agrawal Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
72
2,217
cvxpy
cvxpy/reductions/solvers/bisection.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
223
8,387
cvxpy
cvxpy/reductions/solvers/nlp_solving_chain.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
239
8,857
cvxpy
cvxpy/reductions/solvers/utilities.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
88
2,824
cvxpy
cvxpy/reductions/solvers/solver.py
.py
""" Copyright 2017 Robin Verschueren Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
178
5,976
cvxpy
cvxpy/reductions/solvers/defines.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
132
6,611
cvxpy
cvxpy/reductions/solvers/compr_matrix.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
110
3,749
cvxpy
cvxpy/reductions/solvers/openmp_conflict.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
71
2,812
cvxpy
cvxpy/reductions/solvers/constant_solver.py
.py
import cvxpy.settings as s from cvxpy.reductions.solution import Solution from cvxpy.reductions.solvers.solver import Solver class ConstantSolver(Solver): """TODO(akshayka): Documentation.""" # Solver capabilities MIP_CAPABLE = True def accepts(self, problem) -> bool: return len(problem.vari...
41
1,130
cvxpy
cvxpy/reductions/solvers/nlp_solvers/nlp_solver.py
.py
""" Copyright 2025, the CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
256
9,867
cvxpy
cvxpy/reductions/solvers/nlp_solvers/knitro_nlpif.py
.py
""" Copyright 2025, the CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
414
15,050
cvxpy
cvxpy/reductions/solvers/nlp_solvers/__init__.py
.py
""" Copyright 2025 The CVXPY Developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
16
569
cvxpy
cvxpy/reductions/solvers/nlp_solvers/ipopt_nlpif.py
.py
""" Copyright 2025, the CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
231
9,113
cvxpy
cvxpy/reductions/solvers/nlp_solvers/copt_nlpif.py
.py
""" Copyright 2025, the CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
308
11,025
cvxpy
cvxpy/reductions/solvers/nlp_solvers/uno_nlpif.py
.py
""" Copyright 2025, the CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
302
11,103
cvxpy
cvxpy/reductions/solvers/nlp_solvers/diff_engine/__init__.py
.py
""" Copyright 2025, the CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
39
1,211
cvxpy
cvxpy/reductions/solvers/nlp_solvers/diff_engine/registry.py
.py
""" Copyright 2025, the CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
320
12,377
cvxpy
cvxpy/reductions/solvers/nlp_solvers/diff_engine/converters.py
.py
""" Copyright 2025, the CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
148
6,035
cvxpy
cvxpy/reductions/solvers/nlp_solvers/diff_engine/helpers.py
.py
""" Copyright 2025, the CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
108
3,841
cvxpy
cvxpy/reductions/solvers/nlp_solvers/diff_engine/c_problem.py
.py
""" Copyright 2025, the CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
130
5,500
cvxpy
cvxpy/reductions/solvers/qp_solvers/piqp_qpif.py
.py
""" Copyright 2023, the CVXPY Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
206
7,790
cvxpy
cvxpy/reductions/solvers/qp_solvers/cplex_qpif.py
.py
import numpy as np import cvxpy.interface as intf import cvxpy.settings as s from cvxpy.reductions.solution import Solution, failure_solution from cvxpy.reductions.solvers import utilities from cvxpy.reductions.solvers.conic_solvers.cplex_conif import ( get_status, hide_solver_output, set_parameters, ) fro...
210
7,044
cvxpy
cvxpy/reductions/solvers/qp_solvers/qpalm_qpif.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
153
5,665
cvxpy
cvxpy/reductions/solvers/qp_solvers/proxqp_qpif.py
.py
""" Copyright 2022, the CVXPY Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
208
7,319
cvxpy
cvxpy/reductions/solvers/qp_solvers/highs_qpif.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
264
9,542
cvxpy
cvxpy/reductions/solvers/qp_solvers/knitro_qpif.py
.py
""" Copyright 2025 CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
370
12,142
cvxpy
cvxpy/reductions/solvers/qp_solvers/xpress_qpif.py
.py
import numpy as np import cvxpy.interface as intf import cvxpy.settings as s from cvxpy.reductions.matrix_stuffing import extract_mip_idx from cvxpy.reductions.solution import Solution, failure_solution from cvxpy.reductions.solvers import utilities from cvxpy.reductions.solvers.conic_solvers.xpress_conif import ( ...
374
13,592
cvxpy
cvxpy/reductions/solvers/qp_solvers/daqp_qpif.py
.py
from ctypes import c_double, c_int import numpy as np import cvxpy.interface as intf import cvxpy.settings as s from cvxpy.reductions.solution import Solution, failure_solution from cvxpy.reductions.solvers import utilities from cvxpy.reductions.solvers.qp_solvers.qp_solver import QpSolver from cvxpy.utilities.citati...
204
7,212
cvxpy
cvxpy/reductions/solvers/qp_solvers/mpax_qpif.py
.py
""" Copyright 2025, the CVXPY Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
171
5,627
cvxpy
cvxpy/reductions/solvers/qp_solvers/gurobi_qpif.py
.py
import numpy as np import cvxpy.interface as intf import cvxpy.settings as s from cvxpy.reductions.solution import Solution, failure_solution from cvxpy.reductions.solvers import utilities from cvxpy.reductions.solvers.qp_solvers.qp_solver import QpSolver from cvxpy.utilities.citations import CITATION_DICT def const...
252
8,823
cvxpy
cvxpy/reductions/solvers/qp_solvers/qp_solver.py
.py
""" Copyright 2017 Robin Verschueren Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
154
5,548
cvxpy
cvxpy/reductions/solvers/qp_solvers/osqp_qpif.py
.py
import numpy as np import scipy.sparse as sp import cvxpy.interface as intf import cvxpy.settings as s from cvxpy.error import SolverError from cvxpy.reductions.solution import Solution, failure_solution from cvxpy.reductions.solvers import utilities from cvxpy.reductions.solvers.qp_solvers.qp_solver import QpSolver f...
170
6,867
cvxpy
cvxpy/reductions/solvers/qp_solvers/copt_qpif.py
.py
""" This file is the CVXPY QP extension of the Cardinal Optimizer """ import numpy as np import scipy.sparse as sp import cvxpy.settings as s from cvxpy.reductions.solution import Solution, failure_solution from cvxpy.reductions.solvers import utilities from cvxpy.reductions.solvers.qp_solvers.qp_solver import QpSolve...
240
8,172
cvxpy
cvxpy/reductions/solvers/conic_solvers/knitro_conif.py
.py
""" Copyright 2025 CVXPY developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
656
23,083
cvxpy
cvxpy/reductions/solvers/conic_solvers/conic_solver.py
.py
""" Copyright 2017 Robin Verschueren, 2017 Akshay Agrawal Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
394
15,701
cvxpy
cvxpy/reductions/solvers/conic_solvers/sdpa_conif.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
201
6,893
cvxpy
cvxpy/reductions/solvers/conic_solvers/glpk_conif.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
120
4,223
cvxpy
cvxpy/reductions/solvers/conic_solvers/cvxopt_conif.py
.py
""" Copyright 2013 Steven Diamond, 2017 Robin Verschueren Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
383
13,943
cvxpy
cvxpy/reductions/solvers/conic_solvers/mosek_conif.py
.py
""" Copyright 2015 Enzo Busseti, 2017 Robin Verschueren, 2018 Riley Murray Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
765
32,407
cvxpy
cvxpy/reductions/solvers/conic_solvers/copt_conif.py
.py
""" This file is the CVXPY conic extension of the Cardinal Optimizer """ import numpy as np import scipy.sparse as sp import cvxpy.settings as s from cvxpy.constraints import SOC, ExpCone, SvecPSD from cvxpy.reductions.solution import Solution, failure_solution from cvxpy.reductions.solvers import utilities from cvxpy...
434
16,279
cvxpy
cvxpy/reductions/solvers/conic_solvers/cosmo_conif.py
.py
""" Copyright 2022, the CVXPY Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
190
5,651
cvxpy
cvxpy/reductions/solvers/conic_solvers/glop_conif.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
240
9,641
cvxpy
cvxpy/reductions/solvers/conic_solvers/ecos_bb_conif.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
148
5,650
cvxpy
cvxpy/reductions/solvers/conic_solvers/cuopt_conif.py
.py
""" Copyright 2025 NVIDIA CORPORATION Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
517
19,373
cvxpy
cvxpy/reductions/solvers/conic_solvers/scs_conif.py
.py
""" Copyright 2013 Steven Diamond, 2017 Robin Verschueren, 2017 Akshay Agrawal Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ap...
279
10,249
cvxpy
cvxpy/reductions/solvers/conic_solvers/__init__.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
44
1,409
cvxpy
cvxpy/reductions/solvers/conic_solvers/nag_conif.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
306
10,715
cvxpy
cvxpy/reductions/solvers/conic_solvers/gurobi_conif.py
.py
""" Copyright 2013 Steven Diamond, 2017 Robin Verschueren Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
417
15,130
cvxpy
cvxpy/reductions/solvers/conic_solvers/xpress_conif.py
.py
""" Copyright 2013 Steven Diamond, 2017 Robin Verschueren Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
570
21,983
cvxpy
cvxpy/reductions/solvers/conic_solvers/moreau_conif.py
.py
""" Copyright 2025, the CVXPY Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
305
9,862
cvxpy
cvxpy/reductions/solvers/conic_solvers/diffcp_conif.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
195
7,398
cvxpy
cvxpy/reductions/solvers/conic_solvers/ecos_conif.py
.py
""" Copyright 2013 Steven Diamond, 2017 Robin Verschueren Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
201
7,387
cvxpy
cvxpy/reductions/solvers/conic_solvers/scipy_conif.py
.py
""" Copyright 2021 The CVXPY Developers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
307
12,640
cvxpy
cvxpy/reductions/solvers/conic_solvers/qoco_conif.py
.py
""" Copyright 2025, the CVXPY Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
269
8,978
cvxpy
cvxpy/reductions/solvers/conic_solvers/highs_conif.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
367
14,040
cvxpy
cvxpy/reductions/solvers/conic_solvers/scip_conif.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
511
16,809
cvxpy
cvxpy/reductions/solvers/conic_solvers/pdcs_conif.py
.py
""" Copyright 2026, the CVXPY Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
250
9,586
cvxpy
cvxpy/reductions/solvers/conic_solvers/pdlp_conif.py
.py
""" Copyright, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
233
9,309
cvxpy
cvxpy/reductions/solvers/conic_solvers/cuclarabel_conif.py
.py
""" Copyright 2022, the CVXPY Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
213
7,172
cvxpy
cvxpy/reductions/solvers/conic_solvers/clarabel_conif.py
.py
""" Copyright 2022, the CVXPY Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
283
9,467
cvxpy
cvxpy/reductions/solvers/conic_solvers/cbc_conif.py
.py
""" Copyright 2016 Sascha-Dominic Schnug Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
236
8,527
cvxpy
cvxpy/reductions/solvers/conic_solvers/cplex_conif.py
.py
""" Copyright 2013 Steven Diamond, 2017 Robin Verschueren Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
533
19,288
cvxpy
cvxpy/reductions/solvers/conic_solvers/glpk_mi_conif.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
134
4,761
cvxpy
cvxpy/reductions/dcp2cone/cone_matrix_stuffing.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
510
20,416
cvxpy
cvxpy/reductions/dcp2cone/__init__.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
17
564
cvxpy
cvxpy/reductions/dcp2cone/dcp2cone.py
.py
""" Copyright 2013 Steven Diamond, 2017 Akshay Agrawal, 2017 Robin Verschueren Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
303
13,090
cvxpy
cvxpy/reductions/dcp2cone/canonicalizers/xexp_canon.py
.py
""" Copyright 2022, the CVXPY authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
33
1,219
cvxpy
cvxpy/reductions/dcp2cone/canonicalizers/geo_mean_canon.py
.py
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
89
2,715