CVXR 1.9.3
Changed results
These fix wrong answers, so code that relied on the old results will see different numbers.
- GUROBI solved quadratic objectives with cross terms (e.g.
quad_form(w, Sigma)) with every cross term halved. Gurobi now receives the full matrix, as in CVXPY. Present in 1.9.2. - CVXOPT returned wrong answers on problems with no inequality constraints (feasible equality-constrained problems were reported infeasible) and reported unbounded problems as optimal. These now solve correctly or fail with a solver error, as in CVXPY.
- GUROBI second-order-cone dual values had the wrong sign; they now agree with CVXPY and with every other solver.
-
cvxr_norm(X, p)andnorm(X, type)now agree with base R’snorm()and CVXPY on matrices: with noaxis,p = 1,2andInfare the maximum absolute column sum, the largest singular value and the maximum absolute row sum. They were entrywise; usecvxr_norm(X, "fro")ornorm1(X)for those.- A row vector is a 1 x n matrix, as in base R, so its 1- and Inf-norms are the other way round from before.
- Any other
pon a matrix or row vector is now an error, “Unsupported matrix norm.”, as in CVXPY; usep_norm(x, p)for the entrywise norm. -
norm()on an expression accepts every base R type ("O","M"and"E"failed, and"I"was the largest absolute entry). With notypeit is the spectral norm ("2"), as in CVXPY.
-
gmatmul(A, X)with aParameterin bothAandXgave a wrong answer undergp = TRUE, and parameter substitution rebuilt it withAandXswapped. Both fixed (CVXPY 1.9.3 still has the swap). -
x / Awith a matrix or vectorAdivided every entry ofxbyA[1, 1]. It now divides entrywise, as in CVXPY. Division by a scalar is unchanged. Present in 1.9.2. - Constants built from Matrix classes other than
dgCMatrixgave wrong answers or errors: a unitDiagonal(n)was read as all zeros, soquad_form(x, Diagonal(n))was unbounded, and symmetric, triangular, triplet, pattern and logical sparse matrices failed in canonicalization. Every sparse input is now stored as a general doubledgCMatrix, as in CVXPY, and a logical matrix constant keeps its shape instead of becoming a column. Present in 1.9.2. - A sparse
boundsmatrix was applied only at its stored entries, so a symmetric (dsCMatrix) bound on a dense variable left half the entries unbounded and a triplet matrix with repeated entries used the first copy. As in CVXPY, a sparse bound is now accepted only on asparsityvariable with the same pattern, and repeated entries are summed. Solvers that take variable bounds natively (HiGHS, GUROBI, SCIP, XPRESS) now receive such bounds as bounds rather than as constraints. Present in 1.9.2. - A warm re-solve with CLARABEL or OSQP after a parameter became zero (or nonzero) pushed the new coefficients into the solver’s old sparsity pattern, returning the previous optimum with status optimal, or an OSQP error. Both now start a fresh solver when the pattern changes, as PIQP already did. Present in 1.9.2.
- The cached DGP, DQCP and problem-level curvature queries ignored whether a DPP check was running, so a DGP problem with parameters could be reported DPP and solved with wrong solver data. All caches are now keyed on the DPP scope, as CVXPY’s are.
-
perspective()of a function of asymmetric,PSDorNSDmatrix variable of size 3 or more returned a wrong optimum. -
sum_entries(x, axis = 2)of a one-row expression gave wrong results or crashed R. Present in 1.9.2. -
%*%with a scalar operand that does not conform (2 %*% xfor a 2 x 3x) or a non-conforming 1 x 1 operand built a product that gave a scalar product or crashed R. Both are now errors, as in base R; use*to multiply by a scalar. A scalar operand that conforms (x %*% 2for a 3 x 1x) is a product, as in base R. -
x / dwith shapes that do not broadcast, such as a 2 x 3xand a length-3d, recycled the divisor silently. It is now an error, as in CVXPY; a row or column divisor still broadcasts. -
value()of a sum, a product or an index of a sparse-matrix constant failed with “non-conformable arrays” or “subscript out of bounds”, and a sum of two sparse constants came back flattened to one column. These now evaluate; a mixed sparse and dense result is a base matrix, a sparse one stays sparse. -
sum(),max(),min()andprod()of an expression now honoraxisandkeepdims, as in CVXPY. A namedaxiswas taken as one more operand, sosum(x, axis = 2)returnedsum(x + 2). Any other name labels an operand, as inbase::sum(), sosum(a = x)anddo.call(sum, parts)with a named list work as before. -
sum(),prod(),max()andmin()with more than one operand now mean what they mean in base R: each operand is reduced on its own and the results combined, sosum(x, 2)issum(x) + 2andmax(x, y)is one scalar, the largest entry of either. They weresum(x + 2),prod(x * y)and the elementwise maximum and minimum; usemax_elemwise()andmin_elemwise()for those. -
matrix_trace(A * B)returned the trace of the matrix product (CVXPY 1.9.3, #3492). -
cumsum(X)of a matrix expression is now column-wise, as in CVXPY and ascumprod()andcummax()already were;value()and the solver used to disagree.cumsum_axis(X, axis = NULL)gives all entries in column-major order as a column. -
lambda_sum_largest(X, k)accepts a fractionalk, as CVXPY does;kwas silently truncated. - Bounds through
min_elemwise()andmax_elemwise()with operands of different shapes now broadcast as NumPy does; a row operand was permuted. -
derivative()andbackward()through a Hermitian variable or parameter of size 4 or more had imaginary entries transposed. -
backward()through asparsityvariable returned garbage, and on the NLP path the bounds of asparsityvariable were dropped. A recovered variable value is now projected onto its attribute (anonneg-1e-9 reads back as 0), as in CVXPY. -
psolve(solver = "CLARABEL", warm_start = TRUE)re-solves from scratch when the cones changed (e.g. a parametric power-cone exponent), instead of returning the previous optimum. CVXPY 1.9.3 still has this defect. - A complex variable declared
PSD/NSDlost its cone (#3342), and one declareddiagor with asparsitypattern solved as dense (CVXPY 1.9.3 still ignores those). Both are now enforced. -
conv(),cumsum()andkron()were treated as log-log affine, so a geometric program containing them was accepted and could solve to a wrong value. They are now not DGP, as in CVXPY, and such a problem is rejected. - Calling
problem_data()(orget_problem_data()) on a geometric program between two solves made the next solve after a parameter change return the previous optimum.problem_data()now goes through the same compile cache aspsolve(), as in CVXPY. -
max_elemwise()andmin_elemwise()of a column and a row recycled instead of broadcasting, sopsolve()returned a wrong objective and a second solve failed. -
log(x, base)on an expression ignoredbaseand gave the natural log. It now honorsbase, which must be a positive number other than 1. -
outer(x, y, FUN)on an expression ignoredFUNand gave the product. AnyFUNother than"*"is now an error. -
x[NULL, ]andx[NULL]on an expression returned all ofx. ANULLsubscript is now an error. -
x[c(TRUE, NA, FALSE), ]on an expression dropped theNA. AnNAor character subscript is now a clear error instead of an obscure one. -
diag(x, nrow)on an expression ignorednrow.nrow,ncolandnamesare now errors there; the offset isk. -
log1p(x)on an expression is now thelog1patom instead oflog(x + 1), so it is accurate near 0 and keeps the sign ofx.
New features
-
geo_mean()accepts an argument of any shape and gainsaxisandkeepdims(CVXPY 1.9.3, #3493). -
cvxr_var()supportsaxisandkeepdims, likecvxr_mean()andcvxr_std()(#3496). -
cvxr_norm(X, "nuc")returns the nuclear norm (it errored). - Exact
geo_mean(x, approx = FALSE), and anyPowConeNDconstraint, now solve on SCS and MOSEK, not just Clarabel.PowConeND()with a row-vectorz, or a 1 x nWwithaxis = 1, now works and has correct duals. -
perspective(f, s)wherefneeds a positive semidefinite cone (for examplelambda_max()orsigma_max()) now solves on Clarabel, SCS and MOSEK. -
grad()works forpartial_optimize()expressions andlambda_sum_largest(), and is correct for complex arguments ofnorm_nuc(),sigma_max(),quad_form(),quad_over_lin()andmatrix_frac(). -
indicator()andpartial_optimize()expressions now have bounds, as in CVXPY:(0, Inf)for an indicator and unbounded for a partial problem. - A quadratic objective over a
symmetric,PSD,NSD,diagorsparsityvariable now solves on QP-capable solvers (#3384), andquad_over_lin()/sum_squares()with anaxistake the QP path, so OSQP accepts them. - DNLP (
psolve(..., nlp = TRUE)) now needssparsediff (>= 0.6.1)and consequences thereof. It also acceptsNonNeg(),NonPos()andZero()constraints, which it used to abort on. - New
curvatures(),log_log_curvature()andis_diag(), as CVXPY’sExpression.curvatures,Expression.log_log_curvatureandLeaf.is_diag(). -
curvature()now reports log-log and quasi curvature (e.g."LOG-LOG CONVEX","QUASILINEAR") instead of"UNKNOWN", as in CVXPY.
DPP, DGP and DQCP
-
psolve()now checks that everyParameterhas a value before it starts any solve, as CVXPY does. -
psolve(gp = TRUE)now checks variable bounds when deciding whether a parameterized problem is DPP, as CVXPY does, and requires a conic solver. -
is_dpp()is now one DCP pass inside the DPP scope, as in CVXPY, instead of that pass plus a recursion over every argument. - These are no longer DPP, as in CVXPY:
quad_over_lin(x, p)with aParameterdenominator (#2433), aPowCone3D()/PowConeND()with aParameterexponent, anddotsort(x, W)with a non-affine parametricW.gmatmul(A, X)requires a parametricAto be theParameteritself.cumsum()of aParameteris DPP (#3398). -
psolve(requires_grad = TRUE)checks match CVXPY: a non-DPP problem is aDPPError,qcp = TRUEis refused, andsolver = "SCS"routes to DIFFCP. - DQCP bisection now follows CVXPY: no extra solve at the upper end of an automatically found interval, sub-solve warnings reach the user, a failed query point warns and bisection continues, and its aborts carry class
SolverError.
Solvers
- Solver selection now follows CVXPY 1.9: the solver is chosen from the problem’s structure first, and its interface (QP or conic) follows. The commercial-first default covers QPs and mixed-integer QPs, SCIP solves mixed-integer QPs, a named HiGHS, Gurobi, CPLEX or Xpress solves an LP through its conic interface, and falling back to a non-default solver warns. ECOS_BB is never chosen unless named.
- When no installed (or non-excluded) solver can be used, the error now reads “No installed solver could handle this problem.”, as in CVXPY.
-
psolve(solver_path = ...)forwards everypsolve()argument to each attempt (enforce_dpp,ignore_dppandnlpwere dropped), and only aSolverErrormoves on to the next solver, as in CVXPY. The conditions CVXPY raises asSolverErrornow carry that class in R too. - MOSEK: the status comes from the solution status, as in CVXPY, so a termination code such as an iteration or time limit is no longer an error by itself. The simplex optimizers work, and
bfs = TRUEandsave_file = <path>are accepted. - HiGHS: options may be nested in a
highs_optionslist, as in CVXPY, and an option HiGHS rejects is an error instead of being dropped. A stop onmip_max_improving_solsreturns the incumbent with statususer_limit. - Gurobi:
warm_start = TRUEseeds the start point from the variables’ values,save_filewrites the model, andenvis rejected, as in CVXPY.solver_stats(prob)@num_itersis 0 instead ofNULLwhen presolve finished the problem. - CPLEX:
reoptimize = TRUEre-solves with presolve off on “infeasible or unbounded”, as in CVXPY;solve_timeis set; unknown options abort. A continuous problem with a second-order cone now returns dual values (all were missing), as in CVXPY. - SCS: an infeasible solve exposes the infeasibility certificate through
dual_value()(#3197), andextra_statsis the full SCS result. -
solver_stats(prob)@extra_statsnow carries the raw solver result for OSQP, ECOS, ECOS_BB, Gurobi, DIFFCP, HiGHS and PIQP, as CVXPY does, andsolution(prob)holds only the problem’s own variables. - PIQP:
backend = "dense"builds a dense model (it was silently sparse). - XPRESS: a
write_mpspath that cannot be written is an error (it was silently skipped), and a failed optimization reports the solver’s message as a warning before the solver-error status. - GLPK_MI: an infeasible mixed-integer problem has status
infeasible, as in CVXPY; it failed with a solver error. GLPK’s presolve is now on by default (passpresolve = FALSEto turn it off). - Solving no longer advances R’s random number stream. Compilation drew from it (sixteen uniforms per expression node, for an internal debugging label), so random draws after
psolve()differed from the same draws without the solve. Present in every earlier version.
Errors, warnings and other changes
-
diag()on an ordinary R matrix or vector now behaves exactly as base R’sdiag():diag(nrow = 3)andnames = FALSEwork, andk(expressions only) is an error instead of being ignored. -
norm(A)on an ordinary R matrix without atypenow uses base R’s default one-norm ("O"), not the spectral norm; expressions keep"2". -
convolve()on ordinary numeric vectors now returns exactlystats::convolve()’s result, with itsconjandtypearguments, as the 1.9.2 NEWS promised; expressions still get the numpy-style convolution. -
sd()andvar()on an expression arecvxr_std()andcvxr_var()(ddof 0, as in CVXPY);na.rm,useand a second variableynow give a clear error instead of an obscure one. -
mean()on an expression iscvxr_mean();trimandna.rmnow give a clear error, and an axis other than 1 or 2 (such as1.5) is an error instead of being truncated. - A non-scalar constant exponent (
x^c(1, 2),power(x, c(1, 2))) is now a clear error; withapprox = FALSEit was silently accepted. - New
cvxr_power(), the same function aspower().power()masks the unrelatedstats::power(), aglm()link, so with CVXR attached writestats::power()in aglm()family. - Variable
boundsaccept a 1-d array, asparseVectorand a sparse matrix with unsorted row indices, whichConstant()already accepted. -
power(x, p)now takes its sign, curvature, domain, value and printed name frompas written, as CVXPY does, rather than from the rational approximation used to solve it. - Calling
NonPos(expr)explicitly now warns, once per session, that it is deprecated in favor of operator overloading (expr <= 0) orNonNeg(-expr), in CVXPY’s words and with classCvxpyDeprecationWarning. - Now errors, as in CVXPY: a negative
axis; anaxiswithcvxr_norm(X, "fro")or"nuc"(#3501); a complex variable declarednonneg,nonpos,pos,negor withbounds, which were silently ignored (#3342);partial_optimize()of a complex inner problem. - Whether a constant matrix is symmetric, Hermitian or skew-symmetric is now decided with NumPy’s
allclosetolerance (relative 1e-5, absolute 1e-8), as in CVXPY;quad_form(x, P)used to reject aPthat CVXPY accepts. - Smaller alignments with CVXPY 1.9.3 in
get_bounds(),grad()anddomain()of several atoms,dual_cone(),is_symmetric()ofRe(X),constr_size(),is_dpp()with an unsupported context, interval bounds of matrix products, andis_quadratic()ofx / ywith a non-constanty(nowFALSE).value(constraint, tolerance = )exposes the violation tolerance. -
visualize()no longer errors on a problem containingsqrt(),inv_pos()or a fractionalpower()(broken in 1.9.2). -
cvxr_norm(x, p)with a stringpthat is not a norm name reports “Unsupported norm option”, as CVXPY does; it was an R internal error. Assigning a sparse value containingInfto a sparsity variable works; it was an R internal error. -
max_elemwise()andmin_elemwise()takena.rm, andhstack()andvstack()takedeparse.level, aspmax()andrbind()do; neither has an effect.max_elemwise(u, v, na.rm = TRUE)used to takeTRUEas a third operand. Named operands, as fromdo.call(vstack, split(...)), are accepted as before. -
residual()andviolation()of anSOCconstraint whose value is a sparse matrix are right; they were garbage or an error. APowConeNDwith a sparsealphakeeps one cone per column on solvers with native N-dimensional power cones. A sparse constant prints as[n x m matrix]. -
norm1()andlog_sum_exp()with anaxisevaluate on a sparse value; they were an error. So dolength_expr()andlog_det(), andvisualize()shows a 1x1 sparse constant as its number. -
matrix_frac(x, P)with a non-square constantPreports the shape error; it saidPwas singular. -
length_expr(),eye_minus_inv(),huber()anddotsort()reject a complex argument, as CVXPY does; they accepted one. - Problems with no constraint rows no longer trigger the Matrix deprecation warning
as(<ngCMatrix>, "dgCMatrix") is deprecated, and Gurobi QPs no longer trigger thedtCMatrixone. - Internal: a conic solver’s
reduction_accepts()now refuses a mixed-integer problem when the solver is not MIP-capable, as CVXPY’sConicSolver.acceptsdoes.psolve()already refused such a solve while choosing the solver, so no solve changes.constr_expr()returnslhs - rhsfor==,<=and>=, as CVXPY’s.exprdoes.
Performance
- The first solve of a parametric (DPP) problem compiles about twice as fast and allocates a small fraction of the memory it did: at 500 variables with CLARABEL,
sum_squares(w - q)goes from 21 ms / 24 MB to 11 ms / 0.9 MB, an SOC problem from 17.5 ms / 12.7 MB to 12 ms / 0.9 MB, an LP with a 100 x 500 dense matrix from 55 ms / 23 MB to 50 ms / 8 MB. - A DPP problem whose objective is quadratic in the variables and depends on parameters (
sum_squares(y - q),quad_form(y, P) + t(q) %*% y, …) now keeps its parameter program across solves, as in CVXPY. - The compiled-chain cache is keyed as CVXPY’s is, on the solver,
gp,ignore_dppanduse_quad_obj;enforce_dppno longer takes part. - DQCP bisections are 7 percent and medium LPs 4 percent faster than in CVXR 1.9.2.
- Bounds propagation keeps a sparse constant sparse, as CVXPY does; it densified it, so
abs(A %*% x)with a large sparseAon HiGHS, Gurobi, SCIP or XPRESS allocated two dense copies ofA. -
psolve(nlp = TRUE)hands a dense constant matrix with at least 5 percent nonzeros to the derivative engine as dense, as CVXPY does: 1.7 to 2.6 times faster for a dense 1000 x 1000A. Pass a sparseMatrixto keep the sparse form for a structured matrix. -
psolve(nlp = TRUE)no longer makes dense copies of a sparse constant matrix while building the problem: a solve with a 3000 x 3000 one allocated 208 MB and now allocates 2 MB.
CVXR 1.9.2
CRAN release: 2026-08-24
This release tracks CVXPY 1.9.2. It is chiefly a correctness release: a number of bugs that returned plausible wrong answers without any error are fixed, and dual variables now come back with the shape of their constraint.
Incorrect results fixed
- A constant weight on
sum(square(x))was silently dropped, so penalized least-squares (ridge) problems were solved with weight 1 (since 1.8.2).sum_squares(),quad_form(), and unweighted terms were unaffected. - A failed solve poisoned the compiled-chain cache: repeating the identical call could silently return an answer computed with the previous options, or die with an unrelated
NULLerror instead of the real message. - The
sparsityvariable attribute was accepted and then ignored — the variable solved as fully dense. It is now enforced; off-pattern entries come back as structural zeros, matching CVXPY. -
gradient(p)from the derivative API was exactly 0 whenevervalue(p) == 0, and correct elsewhere. Fixed jointly withdiffcp; requiresdiffcp (>= 0.1.2). - DQCP problems with nested inverses could return a confidently wrong “optimal” answer: the bisection parameter was canonicalized away, so every query point looked feasible.
-
Variable(pos = TRUE)andneg = TRUEemitted no sign constraint, so bounded problems were reported unbounded on most solvers (since 1.8.2). - Partial
boolean/integerattributes were silently ignored — the problem solved as its continuous relaxation and reported"optimal". They are now honored and require a mixed-integer solver. - Numeric bounds of the wrong shape on a symmetric leaf were silently truncated (HiGHS returned a feasible but suboptimal answer). Bounds are now shape-checked, and conflicting dimension-reducing attributes (
symmetric+diag,PSD+NSD, …) are rejected, as in CVXPY. -
project()and value assignment disagreed with the solver path on partialboolean/integerindices: one index spelling rejected valid values, another silently accepted invalid ones. - A complex
quad_form()with a negative semidefinite matrix passedis_dcp()and then failed to compile; it now solves. An indefinite matrix is no longer mislabeled PSD. - Quasiconvex (
qcp = TRUE) problems treated a matrix productA %*% xas an elementwise one; it is now rejected up front with CVXPY’s message. Elementwise and scalar products are unaffected. -
vdot()andscalar_product()omitted the conjugation for complex arguments. Matching upstream,vdot()of a non-affine real argument is now of unknown curvature. -
conv(expr, kernel)— the constant kernel second — read monotonicity off the wrong argument and accepted a concave composition as convex. -
sqrt()andinv_pos()now canonicalize to second-order cones as in CVXPY, not power cones:ECOSand mixed-integer SOCP solvers accept them, and anSCSquasiconvex failure mode (NaNobjective) is gone. Usepower(x, 0.5, approx = FALSE)for the power-cone form. - Duals of a PSD constraint on a Hermitian matrix were half their correct value; PSD duals were transposed for sizes 3 and up on
CLARABEL/SCS/MOSEK;PowCone3Dduals were transposed across cones in multi-cone constraints. Objectives and primal solutions were never affected. - A complex
Parameternever triggered the complex-to-real reduction, so problems CVXPY solves errored with “Inequality constraints cannot be complex.” - Gurobi:
SUBOPTIMALmapped tooptimal_inaccurate, claiming a near-optimal solution that need not exist, and the QP path promotedSOLVER_ERRORtoOPTIMAL_INACCURATE. Both now match CVXPY. - CPLEX: the status table’s labels — and the mappings that followed them — were shifted by one across the abort-status block. Statuses are now derived from
(solstat, pfeas, dfeas)as upstream does. - Smaller fixes:
floor()could be off by one within solver tolerance of an integer;log1p()reported the bounds oflog(x);get_bounds()errored on fractional powers; ahermitianleaf could not hold a complex value; assigningNaNto a leaf raised an R internal error instead of the real message.
Dual variables have their constraint’s shape
-
dual_value()returns a matrix shaped like its constraint — n-by-n for a PSD constraint, n-by-1 for a vector constraint — instead of a flat vector. Scalar constraints,SOC, andExpConeare exempt, matching CVXPY. - Linear indexing (
d[3]) still works; code callinglength()ordim()on a dual may need adjusting.
Mixed-integer variable attributes
-
booleanandintegeraccept four spellings: whole-variable (TRUE), flat 1-based positions,cbind(row, col)pairs, and a logical mask of the variable’s shape. - Index lists are validated at construction — out-of-range, fractional, duplicated, or
NAindices raise. A partial list combined withsymmetric/PSD/NSD/diagis rejected, as in CVXPY; logic atoms (And,Or, …) accept partially-boolean variables.
Other improvements
- Common-subexpression elimination: a subtree appearing more than once is canonicalized once. Transparent — solutions, objective values, and duals are unchanged, and only structurally identical subtrees are merged.
-
Minimize()/Maximize()support+,-,*,/as in CVXPY; negation or a negative scale flips the sense, and mixing senses in a sum raises.is_dpp()rejects an unrecognized context instead of silently answering the"dcp"question. - DQCP bisection compiles its one-parameter subproblem family once when the reduction emits no lazy constraints, instead of recanonicalizing at every query — about 14x on
maximize sqrt(x)/exp(x). Answers are unchanged. An explicit bisection bound of 0 can now grow, and two valid quasiconvex forms previously rejected now solve. -
norm(x, 1)is recognized as log-log convex;partial_trace()andpartial_transpose()propagate PSD/symmetric/hermitian structure;atanh()reports its domain instead of raising. -
domain()on a variable or parameter returns the attribute-implied constraints (previously an empty list). -
matrix_frac()evaluates an ill-conditioned second argument and warns, where base R’ssolve()refused and CVXPY (via NumPy) computes silently. -
Infis accepted where CVXPY accepts it — constraint right-hand sides and variable bounds — and the decomposedsolve_via_data()path validates problem data exactly likepsolve(). - Solver selection can skip commercial solvers:
options(CVXR.default_to_commercial_solvers = FALSE)or theCVXR_DEFAULT_TO_COMMERCIAL_SOLVERSenvironment variable. Default unchanged; explicitsolver =unaffected.
Solver behavior
- SCS: acceleration defaults now match SCS’s own C defaults, which is what CVXPY gets (
acceleration_lookback = 10, interval 10); the Rscspackage’s defaults had disabled acceleration. Numbers may move at the ~1e-5 level; convergence on hard problems improves. - CLARABEL:
reduced_tol_infeas_absis set to5e-12onclarabel0.11.2 and earlier (a shim — 0.11.3 fixed the default), restoring the almost-infeasible certificates that quasiconvex bisection needs. Pass the option explicitly to override. -
accept_unknownis now supported for CLARABEL and MOSEK, matching CVXPY: a stalled solve that still produced primal and dual iterates is reported asoptimal_inaccurate. Deliberately opt-in; other statuses are unaffected. - HiGHS: an infeasible problem returns a Farkas dual ray through
dual_value(), as CLARABEL/OSQP/MOSEK already did. When HiGHS produces no ray (ipm/pdlp, bound-infeasibility), duals stayNULLrather than a zero vector that would read as a certificate. An unmapped HiGHS status is reported as a solver error. - The cone scan that picks a solver looks inside constraints, not just the objective; and
square(x)buildspower(x, 2)as in CVXPY, so a squared term no longer reads as a power-cone requirement excluding mixed-integer SOCP solvers. - A standard parameter (
feastol/reltol/abstol/num_iter) with no mapping for the chosen solver now warns instead of being silently ignored. - MOSEK solver parameters actually reach MOSEK now. They were merged into Rmosek’s interface options instead of
problem$dparam/$iparam, so no parameter ever arrived and passing one crashed with an unrelated R error. All three carriers work: Rmosek-nativedparam/iparam/sparamlists,MSK_*-prefixed names, and CVXPY’smosek_params; unknown options raise, as in CVXPY.feastol,reltol, andnum_itertranslate to MOSEK’s native tolerances; HiGHS gainsfeastol(primal_feasibility_tolerance). - The
epskeyword works as in CVXPY: for SCS it setseps_absandeps_rel(it was silently ignored); for MOSEK it fans out to all 17 tolerance parameters, explicitly-set tolerances taking precedence.
Performance
- About a third faster than 1.9.1 on a benchmark suite, every problem faster and allocating less — from 8% on the smallest problems to ~60% at 4000 constraints. Dual recovery is now linear in the number of constraints (was quadratic), cutting memory up to ~60% on constraint-heavy problems.
-
geo_mean(),power(), andp_norm()with fractional exponents are 15-37% faster end to end.
CVXR 1.9.1
CRAN release: 2026-06-09
This is the first CRAN release since 1.8.2 and is a large one: it tracks CVXPY 1.9.1 and folds in the changes from the internal 1.8.2-1 and 1.9.0 development cycles. The headline additions are a derivative API for differentiable convex programs, disciplined nonlinear programming (DNLP), and interval-bounds propagation with native solver-bound support.
Disciplined nonlinear programming (DNLP)
- Solve smooth nonlinear programs with
psolve(prob, nlp = TRUE). The problem must satisfy the newis_dnlp()grammar (disciplined nonlinear program); DCP problems are a subset, so any DCP problem is also a valid DNLP. - New smooth atoms usable in DNLPs:
sin(),cos(),tan(),sinh(),tanh(),asinh(),atanh(), andnormcdf(). -
prod()is now recognized as a smooth atom, so problems involving products of entries (includingprod_entries(X, axis = ...)) are DNLP and solvable through the NLP path. - The classically-differentiable atoms now report
is_atom_smooth()matching CVXPY 1.9: affine atoms,exp,log,entr,logistic,kl_div,rel_entr,xexp,power(with a constant exponent),geo_mean,log_sum_exp,quad_form,quad_over_lin, andprod. As a result smooth convex/concave functions such assum_squares()are linearizable in both directions (is_smooth()isTRUE), while piecewise atoms (abs,min,max) remain convex/concave-only. New predicate exports:is_smooth(),is_atom_smooth(),is_linearizable_convex(),is_linearizable_concave(). - Piecewise-linear atoms used in a DNLP (
abs,max,max_elemwise,norm_inf,sum_largest, andsum_smallest) now initialize their epigraph variables during canonicalization, so the NLP backend has a complete starting point.sum_largestinitializes its threshold to the (k+1)-th largest entry, matching CVXPY’s warm-start fix. - New
convolve()atom, CVXPY 1.9’s preferred (numpy-style) name for the 1-D discrete-convolutionconv()atom. For numeric input it falls through tostats::convolve(). - The DNLP path is powered by derivatives from the optional
sparsediffpackage and can solve through the optionalipoptandUnoR packages. NLP solver names:"IPOPT","UNO"(and the variants"uno_ipm"/"uno_sqp"),"KNITRO", and"COPT";"KNITRO"and"COPT"are registered but require solver bindings not yet available in R. When installed,IPOPTis the first automatic NLP solver, matching CVXPY’s preference order. -
quad_over_lin()andsum_squares()now canonicalize axis-aware reductions (axis = 1andaxis = 2) into batched second-order cone constraints, closing the CVXPY parity gap forsum_squares(..., axis = ...)in objectives and constraints. -
The
UNOinterface defaults to the interior-pointipoptpreset (plus MUMPS), which differs from CVXPY’sfiltersqpdefault. CVXPY’sfiltersqpuses the BQPD active-set solver for its quadratic subproblems, which handles indefinite Hessians. The bundled Uno build is HiGHS-only (BQPD is not bundled and is not CRAN-license compatible), and HiGHS solves only convex quadratic subproblems, sofiltersqpfails on nonconvex DNLPs. The interior-pointipoptpreset factors the regularized KKT system with MUMPS and is robust on both convex and nonconvex problems. Force the SQP path withsolver = "uno_sqp"(orpreset = "filtersqp"); it is reliable only for problems whose subproblem Hessians stay positive semidefinite. - Best-of-N random restarts for nonconvex DNLPs:
psolve(prob, nlp = TRUE, best_of = n)solves fromnrandom initial points and keeps the best result. Random initialization draws from a variable’ssample_bounds(var) <- c(low, high)(when set) or its finite variable bounds. The per-run objectives are available viasolver_stats(prob)@extra_stats$all_objs_from_best_of. - After an NLP solve,
dual_value()returns the constraint duals recovered from the solver (a CVXR addition; the duals are not exposed by CVXPY’s NLP interface).
Derivative API for differentiable convex programs
- New derivative API backed by the
diffcpR package:psolve(prob, requires_grad = TRUE)followed bybackward(prob)orderivative(prob);gradient(x)<-anddelta(x)<-set tangent / cotangent values on leaves. The chain rule is wired throughDgp2Dcp(log/exp) andComplex2Real(real/imag split).
Bounds propagation
-
get_bounds()now works on any expression, not just variables: it propagates interval bounds through affine, elementwise, and piecewise-linear atoms (e.g.get_bounds(A %*% x + b),get_bounds(abs(x)),get_bounds(sum(x))). Bounds are returned shaped to the expression’s dimensions. - Variable bounds may now be sparse
Matrixobjects or symbolic bounds involvingParameters.get_bounds()preserves sparse numeric bounds and skips symbolic bounds, while solve-time attribute lowering enforces the symbolic constraints.Parametervalues containing matchingInfentries now validate correctly. - Solvers that expose native variable bounds now consume dense numeric bounds directly instead of adding bound constraints: HiGHS (LP/MILP and QP paths), Gurobi (QP/MIQP and conic/SOCP), CPLEX (QP/MIQP), XPRESS (QP/MIQP and conic/SOCP), PIQP (QP), and SCIP (conic). Sparse bounds continue through constraint lowering.
- Parametric variable bounds use bound tensors (HiGHS), so changing
Parameterbounds updates native solver bounds on DPP re-solves. - Bounds inferred for DCP auxiliary variables are now preserved for solvers that consume native variable bounds.
- Attribute reduction now compacts 2D symmetric, PSD, NSD, and diagonal
Parameters before rebuilding their full expressions. - Variables now report
Parameters embedded in expression bounds and include those bounds in DPP/DGP compliance checks.
HiGHS warm-start and column-name validation
- HiGHS warm-start is now enabled.
psolve(prob, solver = "HIGHS", warm_start = TRUE)reuses the previous solution via the persistent-solver API (hi_solver_set_solution) across LP, MILP, and QP paths. This requireshighs (>= 1.14), now available on CRAN; on olderhighsthe warm-start tests skip and solves fall back to cold starts. -
validate_column_name()checks a name against the HiGHS LP-file column-name rules, mirroring CVXPY’shighs_conif.validate_column_name. - Known limitation: writing a model to a file with the original variable names is not yet supported — the R
highspackage exposes no column-name setter, so a written model would carry generic names (c0,c1, …).
Geometric and parameterized programming
- Positive (DGP) variables now accept numeric and parametric bounds under
gp = TRUE(e.g.Variable(pos = TRUE, bounds = list(lb, ub))withlb/ubParameters). The DGP reduction log-transforms the bounds into the log domain and lowers them to constraints; parametric bounds canonicalize through the DGP tree without eagerly evaluatinglog(value(param)), so DPP re-solves with changed bound parameters work. -
is_dpp()gains acontextargument ("dcp"or"dgp"), matching CVXPY’sis_dpp(context=...). In the"dgp"context a variable’s symbolic bounds must be log-log-affine (e.g. a product of positiveParameters is DGP-DPP though not DCP-DPP;norm()/sum()bounds are rejected). - New
partial_optimize()transform. - CPLEX now solves LP/SOCP/MI-LP/MI-SOCP problems through the conic path by translating SOC blocks to
Rcplexquadratic constraints.
New atoms, transforms, and accessors
- New
sign()atom (DQCP, scalar input). -
psolve()gains asolver_pathargument for solver fallback chains. - New
set_label()/label<-/format_labeled()for attaching user-supplied labels to expressions. -
power(),geo_mean(), andp_norm()withapprox = TRUEnow warn when the selected solver supports power cones (approx = FALSEuses the exactPowCone3D/PowConeNDform). - MOSEK now supports mixed-integer programs (requires
Rmosek11.1.1+). -
solver_stats()for MOSEK now populatessolve_time,num_iters, andextra_stats. - New
param_dict(),var_dict(), andsize_metrics()accessors onProblem. -
Variable(value = ...)accepts an initial value at construction. - New
CallbackParamclass — aParametersubclass whose value is computed on every read by a user-supplied callback. -
project()accepts index-basedboolean = c(i, j, ...)andinteger = c(i, j, ...)attributes (1-based). -
validate_arguments()now called onCummax,Cumprod, andMinEntriesconstructors.
Performance
- Problem canonicalization and solving are faster than the 1.8.2 CRAN release on a wide range of problems. Two changes account for most of the gain: a new
.fast_newhelper for S7 expression construction (roughly 40% lower wall-clock on atom-dense and PSD-heavy problems), and routing S7 class-membership checks on the hot canonicalization path through a cached check on the object’s class vector instead ofS7::S7_inherits()(which rebuilt the class name on every call; the per-node cone-detection scan benefits most). Deterministic memory allocation is unchanged. These are internal changes with no user-visible API difference.
Bug fixes
- Bug fix (also affected 1.8.x):
problem_data()andget_problem_data()now take an explicitgpargument. Previouslygp = TRUEpassed through...was silently ignored, compiling a geometric program as a DCP problem. - Bug fix (also affected 1.8.x):
psolve()now takes explicitenforce_dppandignore_dpparguments, matching CVXPY’ssolve(). Previously they were silently swallowed by...;enforce_dpp = TRUEnow raises on a non-DPP parametrized problem instead of falling back to a non-DPP compile. - Fixed QP-path canonicalization of
quad_over_lin(expr, constant)so the decision uses the canonicalized denominator, matching CVXPY 1.9 behavior for cases such asquad_over_lin(exp(x), 1)that should keepExpConewithout adding an SOC block. - Fix
Variable(c(n, n), diag = TRUE)handling throughCvxAttr2Constr. - Fix
perspective()canonicalizer on PSD, NSD, and diag matrix variables. - Fix
project()on sparseMatrix-package objects.
Notes
- Complex-parameter DPP fast-path parity remains a deliberate feature gap: complex parameters are evaluated before
Complex2Realbecause CVXR’s R sparse-matrix backend cannot carry complex sparse parameter tensors. Ordinary complex expression solving is still supported throughComplex2Real. - CVXR’s 2-D positive-dimensional model does not support zero-sized expressions, constraints, or solves. Generated or data-dependent models should skip vacuous constraints and use explicit zero contributions when a mask or filter selects no entries.
CVXR 1.8.2
CRAN release: 2026-04-04
New solvers: SCIP and XPRESS (15 total)
- Added SCIP solver (14th solver) via the R
scippackage. Supports LP, SOCP, MI-LP, and MI-SOCP problems. SCIP is registered in the conic solver path withSUPPORTED_CONSTRAINTS = list(Zero, NonNeg, SOC)andMIP_CAPABLE = TRUE. - SCIP solver parameters can be passed via
scip_paramssub-list (matching CVXPY convention) for path-style parameter names like"limits/time","limits/gap". - Duals are not currently extracted (R
scippackage lacks dual API). - 29 tests mirroring CVXPY’s
TestSCIPclass. - Added XPRESS solver (15th solver) via the R
xpresspackage with dual-interface architecture: QP path (XPRESS_QP_Solver) for LP/QP and conic path (XPRESS_Conic_Solver) for SOCP/MI-LP/MI-SOCP. Both paths support Zero and NonNeg constraints; the conic path also supports SOC. MIP warm-start is supported.
diag() and norm() dispatch fixes
-
diag()now works on CVXR expressions:diag(vector_expr)creates a diagonal matrix (DiagVec),diag(square_matrix_expr)extracts the diagonal (DiagMat). Falls through toMatrix::diag()for non-Expression inputs, correctly handling both Matrix S4 objects and base R matrices. -
norm()fallthrough now delegates toMatrix::norm()instead ofbase::norm(), fixingnorm(sparse_matrix)when CVXR is loaded. -
t()andmean()switched from S7method()toregisterS3method()to avoid demoting Matrix’s S4 generics.
CVXPY 1.8.2 parity
All applicable bug fixes from CVXPY v1.8.2 have been ported, each annotated with ## CVXPY v1.8.2 fix: in the source.
solver_opts() and use_quad_obj
- New
solver_opts()constructor for unified solver options. Standard tolerance parameters (feastol,reltol,abstol,num_iter) and solver-specific parameters now flow throughpsolve(...)via thesolver_opts()constructor. - New
use_quad_objoption (defaultTRUE): whenFALSE, forces conic decomposition path instead of QP, enablingquad_form_canonto detect indefinite P matrices. - New
supports_quad_obj()generic on conic solvers (Clarabel and SCS returnTRUE, othersFALSE).
Element-wise matrix indexing (SpecialIndex)
-
New
SpecialIndexatom (mirroring CVXPY’sspecial_index) enables R-idiomatic element-wise selection on matrix expressions:- 2-column matrix indexing:
x[cbind(rows, cols)] - Logical matrix indexing:
x[mask] - Linear integer indexing:
x[c(1, 5, 9)] - Logical vector indexing:
x[c(TRUE, FALSE, ...)]
- 2-column matrix indexing:
-
This makes it natural to constrain specific entries of a matrix variable, e.g., fixing observed entries of a partially-known matrix:
Previously,
x[i]on a matrix expression errored with “Single-index selection on matrices not supported.” The workaround required an element-wise multiply with a binary mask, which was unintuitive.Internally uses sparse selection matrix multiplication (reshape → sparse matmul), requiring no C++ changes.
Bug Fixes
- Fixed O(n²) memory usage in
sum_squares(),power(x, 2),quad_over_lin(), andhuber()when the first argument has many elements (e.g., regression residuals with thousands of observations). The quadratic canonicalizer was converting a sparse identity matrix to dense form. Memory now scales linearly with problem size.
CVXR 1.8.1
CRAN release: 2026-03-06
Complete rewrite using S7 object system
This is a ground-up rewrite of CVXR using R’s S7 object system, designed to be isomorphic with CVXPY 1.8.1 for long-term maintainability. ~4-5x faster than CVXR 1.0-15 on typical problems.
New features
- S7 class system replaces S4 for all expression, constraint, and problem classes. Significantly faster construction and method dispatch.
- 13 solvers at initial release: Clarabel (default), SCS, OSQP, HiGHS, MOSEK, Gurobi, GLPK, GLPK_MI, ECOS, ECOS_BB, CPLEX, CVXOPT, PIQP.
- Mixed-integer programming via GLPK_MI, ECOS_BB, Gurobi, or HiGHS (
boolean = TRUEorinteger = TRUEinVariable()). - Parameter support via
Parameter()class with DPP (Disciplined Parameterized Programming) for efficient re-solves when only parameter values change. - 50+ atom classes covering LP, QP, SOCP, SDP, exponential cone, and power cone problems.
-
psolve()as the primary solve interface, returning the optimal value directly. -
solve()backward-compatibility wrapper returning acvxr_resultlist with$value,$status,$solver,$getValue(), and$getDualValue(). -
verbose = TRUEoption inpsolve()for structured solve output with timing information. - Standard solver parameters (
feastol,reltol,abstol,num_iter) inpsolve()with automatic translation to solver-native names viasolver_default_param(). Solver-native parameters in...take priority. - Automatic solver selection based on problem type.
- Warm-start support for 7 solvers (OSQP, SCS, Clarabel, Gurobi, MOSEK, PIQP; HiGHS blocked by R package limitation).
- Decomposed solve API:
problem_data(),solve_via_data(),problem_unpack_results()for compile-once/solve-many workflows. -
visualize()for problem introspection: text display with Smith form annotations, interactive HTML output (D3 tree + KaTeX), on-demand DCP violation analysis for non-compliant problems, curvature coloring on constraint nodes, and matrix stuffing visualization (Stages 4-5: Standard Form + Solver Data) via the newsolverparameter. - Matrix package interoperability via
as_cvxr_expr(). Sparse Matrix objects (dgCMatrix,dgeMatrix, etc.) use S4 dispatch which preempts S7/S3, so direct arithmetic likesparseA %*% xfails. Wrapping withas_cvxr_expr(sparseA) %*% xconverts to a CVXR Constant while preserving sparsity. Base Rmatrixandnumericwork natively without wrapping. - Full 2D broadcasting for
+and-operators, matching CVXPY’sExpression.broadcast(). Expressions with compatible but different shapes (e.g.,(1, n) + (m, 1)→(m, n)) now work correctly in constraints and objectives. Previously only scalar promotion was supported. - Correct solver-cone routing matching CVXPY’s atom classifications. Atoms that canonicalize to PSD cones (
MatrixFrac,TrInv,SigmaMax,NormNuc,LambdaSumLargest) are now correctly classified, ensuring solvers like ECOS that don’t support SDP are rejected with a clear error message instead of a cryptic dimension mismatch. Approximate variants (PnormApprox,PowerApprox,GeoMeanApprox) correctly route to SOC; exact variants route to their native cone types (PowCone3D,PowConeND).
Breaking changes from CVXR 1.x
- S7 classes replace S4. Use
Variable(n)instead ofnew("Variable", n). - Requires R >= 4.3.0 (for
chooseOpsMethod()and S7@support). -
solve()now returns acvxr_resultS3 list, not an S4 object. Usepsolve()for a direct numeric return value. -
getValue(x)andgetDualValue(con)are deprecated. Usevalue(x)anddual_value(con)after solving instead. -
problem_status(),problem_solution(), andget_problem_data()are deprecated. Usestatus(),solution(), andproblem_data()instead. - The
axisparameter uses 1-based indexing matching R’sapply()MARGIN convention:axis = 1for row-wise (reduce columns),axis = 2for column-wise (reduce rows),axis = NULLfor all entries. - Internal class structure completely changed (S7 instead of S4). Code that accessed slots directly will need updating.
- S4 class checks like
is(x, "Variable")no longer work. UseS7_inherits(x, Variable).
Convenience atoms and functions
-
ptp(x, axis, keepdims)– peak-to-peak (range):max(x) - min(x). -
cvxr_mean(x, axis, keepdims)– arithmetic mean along an axis. -
cvxr_std(x, axis, keepdims, ddof)– standard deviation. -
cvxr_var(x, axis, keepdims, ddof)– variance. -
vdot(x, y)– vector dot product (inner product). -
scalar_product(x, y)– alias forvdot. -
cvxr_outer(x, y)– outer product of two vectors. -
inv_prod(x)– reciprocal of product of entries. -
loggamma(x)– elementwise log of gamma function (piecewise linear approximation). -
log_normcdf(x)– elementwise log of standard normal CDF (quadratic approximation). -
cummax_expr(x, axis)– cumulative maximum along an axis. -
dotsort(X, W)– weighted sorted dot product (generalization ofsum_largest/sum_smallest). -
diff_pos(),resolvent()– DGP convenience functions.
Clean API names
-
status(prob)– returns the solution status (replacesproblem_status()). -
solution(prob)– returns the raw Solution object (replacesproblem_solution()). -
problem_data(prob, solver)– returns solver-ready data (replacesget_problem_data()). - Old names still work but emit once-per-session deprecation warnings.
Backward-compatibility aliases
-
tv()is a deprecated alias fortotal_variation(). -
norm2(x)is a deprecated alias forp_norm(x, 2). -
multiply(x, y)is a deprecated alias forx * y. -
installed_solvers()lists available solver packages.
Advanced features
- DPP (Disciplined Parameterized Programming) for efficient parameter re-solve with compilation caching.
- DGP (Disciplined Geometric Programming) via
psolve(prob, gp = TRUE). New atoms:prod_entries(),cumprod(),one_minus_pos(),eye_minus_inv(),pf_eigenvalue(),gmatmul(). - DQCP (Disciplined Quasiconvex Programming) via
psolve(prob, qcp = TRUE). New atoms:ceil_expr(),floor_expr(),condition_number(),gen_lambda_max(),dist_ratio(). - Complex variable support via
Variable(n, complex = TRUE)andComplex2Realreduction. Atoms:Conj_(),Real_(),Imag_(),expr_H()for conjugate transpose. -
perspective(f, s)atom for perspective functions. -
FiniteSet(expr, values)constraint for discrete optimization. - Boolean logic atoms:
Not(),And(),Or(),Xor(),implies(),iff(). -
%>>%and%<<%operators for PSD and NSD constraints. -
as_cvxr_expr()helper for wrapping R objects as CVXR constants. Required for Matrix package objects (dgCMatrix,dgeMatrix, etc.) which use S4 dispatch that preempts S7/S3. Preserves sparsity (unlikeas.matrix()). Base Rmatrix/numericwork natively without wrapping.
Bug fixes
- Fixed
kron()KRON_L coefficient matrix construction. - Fixed
CvxAttr2Constrindex type and matrix variable handling. - Fixed Clarabel PowConeND bridge for uniquely-named cones.
- Fixed C++
diagoffset for super/sub-diagonals (k != 0). - Fixed DQCP bisection: infinity check, stale bounds for Maximize, conditional high-endpoint seeding.
- Fixed MOSEK dual extraction (
suc - slcreconstruction). - Fixed OSQP/HiGHS inequality dual sign convention.
Known limitations
- Matrix package objects (
dgCMatrix,dgeMatrix,ddiMatrix,sparseVector) cannot be used directly with CVXR operators due to S4 dispatch preempting S7/S3. Wrap withas_cvxr_expr()first. Base Rmatrix/numericwork natively. This is an R dispatch limitation requiring upstream changes in S7 and/or Matrix. - Warm-start for HiGHS is implemented (works with
highs1.14) but the upstream RhighsPR exposingsetSolution()has not yet been actioned by the maintainers; lives on branchhighs-warm-start. - Complex SOC dual variables are not recovered (CVXPY itself does not implement this —
complex2real.py:56declaresUNIMPLEMENTED_COMPLEX_DUALS = (SOC, OpRelEntrConeQuad)). Complex SOC primal canonicalization works. - Deferred to a future release: RelEntrConeQuad / OpRelEntrConeQuad, quantum atoms, CPLEX conic (SOC) path.
CVXR 1.0-15
CRAN release: 2024-11-07
- Revert
clarabelrequirement and use enhance rather than import until really necessary (Issue 142). - Update return codes for
user_limitetc to beinfeasible_inaccurateto matchCVXPYfor gurobi - Add an S3 print method for result from
solve(). - Move
upper_tri_to_fullto C++ - Drop use of R6 classes
- Address bug in copying
Powerobject (Issue 145).
CVXR 1.0-14
CRAN release: 2024-06-27
- Address further inefficiency in use of diagonal matrices in
qp2quad_form.R - Add initial interface to clarabel solver
CVXR 1.0-13
CRAN release: 2024-06-01
- Address inefficient processing of cones for MOSEK (Issue 137 reported by aszekMosek)
- Fix
extract_quadratic_coeffsto use sparse matrix and sweep in place for better memory use (reported by Marissa Reitsma)
CVXR 1.0-12
CRAN release: 2024-02-01
-
Rmosekto be removed from CRAN, so moved to drat repo - Cleaned up some problematic Rd files shown in CRAN results
CVXR 1.0-11
CRAN release: 2022-10-30
- Being more careful about coercing to
dgCMatrixvia(as(as(<matrix>, "CsparseMatrix"), "generalMatrix")) - Modify all class inheritance checks to use
inherits()
CVXR 1.0-9
CRAN release: 2021-01-19
- Now importing ECOSolveR version 0.5.4 and higher
- Added fixes for Matrix 1.3 update
- Somewhat better typesetting for Power class documentation (Issue #86)
CVXR 1.0-8 to 1.0-3
CRAN release: 2020-09-13
- Conforming to CRAN suggestions on non-CRAN packages, but no actual changes.
CVXR 1.0-2
- Added exponential cone support for
MOSEKand uncommented associated test. - Added JSS publication DOI.
CVXR 1.0-1
CRAN release: 2020-04-02
- Many small fixes to solver interfaces
- Reference semantics for
Parameter - Warm start for
OSQPand updates to solver cache - Solver parameter defaults explicit now
- New tests added for solver combinations
CVXR 0.99
CRAN release: 2018-05-26
- Bug fix: duplicated integer and boolean indices.
- Bug fix: correct typo in constraint specification to GLPK.
- Added tutorial articles based on v0.99 to CVXR website on using other solvers, integer programming, MOSEK and GUROBI examples.
CVXR 0.98
Dropped
delay_loadparameter dropped inreticulate::import_from_path, per changes inreticulate.Cleaned up hooks into reticulate for commercial solvers.
CVXR 0.97
- Added
LPSOLVEvialpSolveAPI - Added
GLPKviaRglpk - Added
MOSEK - Added
GUROBI - Bug fix: issue #25. All CVXR expressions retain dimensions. Culprit was
drop = FALSE(in functionIndex.get_special_slice) as suspected.
CVXR 0.95
CRAN release: 2018-02-20
Updated Solver.solve to adapt to new ECOSolveR. Require version 0.4 of ECOSolveR now.
Updated
unpack_resultsto behave exactly like in CVXPY. Added documentation and testthat tests. Documented in the Speed.
