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

cvxgrp / cvxpy / 1869 / 4
20%
master: 20%

Build:
DEFAULT BRANCH: master
Ran 09 Aug 2018 04:17PM UTC
Files 267
Run time 1min
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

09 Aug 2018 04:09PM UTC coverage: 79.451% (+2.6%) from 76.866%
DISTRIB="conda" PYTHON_VERSION="2.7" INSTALL_ATLAS="true" NUMPY_VERSION="1.13" SCIPY_VERSION="0.19" COVERAGE="true" DEPLOY_PYPI="false"

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

12759 of 16059 relevant lines covered (79.45%)

0.79 hits per line

Source Files on job 1869.4 (DISTRIB="conda" PYTHON_VERSION="2.7" INSTALL_ATLAS="true" NUMPY_VERSION="1.13" SCIPY_VERSION="0.19" COVERAGE="true" DEPLOY_PYPI="false")
  • Tree
  • List 0
  • Changed 6
  • Source Changed 6
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1760
  • Travis Job 1869.4
  • 51c6a3be on github
  • Prev Job for DISTRIB="conda" PYTHON_VERSION="2.7" INSTALL_ATLAS="true" NUMPY_VERSION="1.13" SCIPY_VERSION="0.19" COVERAGE="true" DEPLOY_PYPI="false" on master (#1863.1)
  • Next Job for DISTRIB="conda" PYTHON_VERSION="2.7" INSTALL_ATLAS="true" NUMPY_VERSION="1.13" SCIPY_VERSION="0.19" COVERAGE="true" DEPLOY_PYPI="false" on master (#1871.1)
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