• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cvxgrp / cvxpy / 1869
20%

Build:
DEFAULT BRANCH: master
Ran 09 Aug 2018 04:16PM UTC
Jobs 6
Files 267
Run time 9min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1869

push

travis-ci

SteveDiamond
Add support for CPLEX (#506)

* Add support for CPLEX

With this commit a new legacy CPLEX solver has been added that
supports LP, QP, SOCP, and MIP. This is exposed via a new 1.0 style
solver under cvxpy/reductions/solvers/conic_solvers. Minor changes
have been made to the existing CPLEX solver under
cvxpy/reductions/solvers/qp_solvers for consistency. As expected, the
solver output will be hidden by default, but can be shown by setting
the verbose keyword argument to True. The warm_start solver option is
supported for linear constraints. There are two CPLEX-specific solver
options which are supported: 1) cplex_params is a keyword argument
that accepts a dictionary of parameter names (as used in the CPLEX
Python API) and parameter values; 2) cplex_filename takes a file path
which will be used to export the model to a given file format (e.g.,
SAV, LP, MPS) before solving.

For example, the following snippet will set the solver to CPLEX,
display the engine log, set a CPLEX parameter, and export the model to
LP format:

>>> # Set CPXPARAM_Benders_Strategy (1501) to FULL (3)
... cpx_params = {"benders.strategy": 3}
>>> prob.solve(solver=cvx.CPLEX, verbose=True,
               cplex_params=cpx_params,
               cplex_filename="example.lp")

* Fix CPLEX tests for the case when it is not installed.

I forgot to qualify CPLEX as cvx.CPLEX in a few places.

* Appease flake8

257 of 257 new or added lines in 7 files covered. (100.0%)

12790 of 16059 relevant lines covered (79.64%)

4.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1869.1 (DISTRIB="conda" PYTHON_VERSION="2.7" INSTALL_ATLAS="true" NUMPY_VERSION="1.13" SCIPY_VERSION="0.19" COVERAGE="true" DEPLOY_PYPI="false") 09 Aug 2018 04:17PM UTC 0
76.08
Travis Job 1869.1
2 1869.2 (DISTRIB="conda" PYTHON_VERSION="3.5" INSTALL_ATLAS="true" NUMPY_VERSION="1.13" SCIPY_VERSION="0.19" COVERAGE="true" DEPLOY_PYPI="false") 09 Aug 2018 04:17PM UTC 0
76.14
Travis Job 1869.2
3 1869.3 (DISTRIB="conda" PYTHON_VERSION="3.6" INSTALL_ATLAS="true" NUMPY_VERSION="1.13" SCIPY_VERSION="0.19" COVERAGE="true" DEPLOY_PYPI="true" PYPI_SERVER="https://upload.pypi.org/legacy/") 09 Aug 2018 04:17PM UTC 0
76.14
Travis Job 1869.3
4 1869.4 (DISTRIB="conda" PYTHON_VERSION="2.7" INSTALL_ATLAS="true" NUMPY_VERSION="1.13" SCIPY_VERSION="0.19" COVERAGE="true" DEPLOY_PYPI="false") 09 Aug 2018 04:17PM UTC 0
79.45
Travis Job 1869.4
5 1869.5 (DISTRIB="conda" PYTHON_VERSION="3.5" INSTALL_ATLAS="true" NUMPY_VERSION="1.13" SCIPY_VERSION="0.19" COVERAGE="true" DEPLOY_PYPI="false") 09 Aug 2018 04:16PM UTC 0
79.51
Travis Job 1869.5
6 1869.6 (DISTRIB="conda" PYTHON_VERSION="3.6" INSTALL_ATLAS="true" NUMPY_VERSION="1.13" SCIPY_VERSION="0.19" COVERAGE="true" DEPLOY_PYPI="true" PYPI_SERVER="https://upload.pypi.org/legacy/") 09 Aug 2018 04:25PM UTC 0
79.51
Travis Job 1869.6
Source Files on build 1869
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1869
  • 51c6a3be on github
  • Prev Build on master (#1863)
  • Next Build on master (#1871)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc