Install¶
cvxreg supports Python 3 on Linux, macOS, and Windows. You can install the latest version of the package using pip:
pip¶
pip install cvxreg
Solver options¶
cvxreg is built on top of CVXPY, which supports a variety of open-source solvers ECOS, OSQP, and SCS.
We use the default solver ECOS in cvxreg. To use a different solver, simply install the solver and specify the solver name in the solver argument of the model.
from cvxreg.models import CR
model = CR()
Install with commercial solvers¶
Many other solvers can be called by cvxreg if installed separately. See the table in CVXPY for a list of supported solvers.
To see which solvers are available in your machine, run:
from cvxreg import installed_solvers
print(installed_solvers())
To use a commercial solver, you need to install the solver and specify the solver name in the solver argument of the model. For example, to use MOSEK:
from cvxreg.models import CR
model = CR(solver='mosek')