Last active
September 14, 2021 10:03
-
-
Save carrascomj/a4d91a926814646e36592a853516c7ac to your computer and use it in GitHub Desktop.
try_cuosqp_optlang.ipynb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nbformat": 4, | |
"nbformat_minor": 0, | |
"metadata": { | |
"colab": { | |
"name": "Untitled0.ipynb", | |
"provenance": [], | |
"collapsed_sections": [], | |
"authorship_tag": "ABX9TyNvr/EPEc1BFa4Eh/645sZo", | |
"include_colab_link": true | |
}, | |
"kernelspec": { | |
"name": "python3", | |
"display_name": "Python 3" | |
}, | |
"accelerator": "GPU" | |
}, | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "view-in-github", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"<a href=\"https://colab.research.google.com/gist/carrascomj/a4d91a926814646e36592a853516c7ac/untitled0.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "R8dZz7fNKL_W" | |
}, | |
"source": [ | |
"# Optlang test suite with CUOSQP \n", | |
"Install optlang fork with osqp support, install cuda, install osqp and run nose test suite. `ConstraintTestCase` was removed, so it will error out at `ModelTestCase.test_binary_variables`." | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "D8MNni91Ary3", | |
"outputId": "4d6ec1c4-efa7-4541-aeb2-3cb8dcbe6c4b" | |
}, | |
"source": [ | |
"!pip install git+https://github.com/carrascomj/optlang.git@feature/osqp" | |
], | |
"execution_count": 1, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": [ | |
"Collecting git+https://github.com/carrascomj/optlang.git@feature/osqp\n", | |
" Cloning https://github.com/carrascomj/optlang.git (to revision feature/osqp) to /tmp/pip-req-build-_nis498n\n", | |
" Running command git clone -q https://github.com/carrascomj/optlang.git /tmp/pip-req-build-_nis498n\n", | |
" Running command git checkout -b feature/osqp --track origin/feature/osqp\n", | |
" Switched to a new branch 'feature/osqp'\n", | |
" Branch 'feature/osqp' set up to track remote branch 'feature/osqp' from 'origin'.\n", | |
"Requirement already satisfied: six>=1.9 in /usr/local/lib/python3.7/dist-packages (from optlang==1.4.6+24.g402e082) (1.15.0)\n", | |
"Collecting swiglpk>=1.4.3\n", | |
"\u001b[?25l Downloading https://files.pythonhosted.org/packages/fa/eb/8379b5f44a4ac6639b1f13602b008c31fe109d81e119a1ae928c327c0ab4/swiglpk-5.0.0-cp37-cp37m-manylinux1_x86_64.whl (623kB)\n", | |
"\u001b[K |████████████████████████████████| 624kB 8.3MB/s \n", | |
"\u001b[?25hRequirement already satisfied: sympy>=1.0 in /usr/local/lib/python3.7/dist-packages (from optlang==1.4.6+24.g402e082) (1.7.1)\n", | |
"Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.7/dist-packages (from sympy>=1.0->optlang==1.4.6+24.g402e082) (1.2.1)\n", | |
"Building wheels for collected packages: optlang\n", | |
" Building wheel for optlang (setup.py) ... \u001b[?25l\u001b[?25hdone\n", | |
" Created wheel for optlang: filename=optlang-1.4.6+24.g402e082-py2.py3-none-any.whl size=135064 sha256=053d95eacad1c71203617d98b05f4a2a0c022b8a9efc7af0e95480bae426cd75\n", | |
" Stored in directory: /tmp/pip-ephem-wheel-cache-xloa_tz3/wheels/eb/dc/ea/c37c7146a30d3078d61d473e82843656ff961b85271aea54aa\n", | |
"Successfully built optlang\n", | |
"Installing collected packages: swiglpk, optlang\n", | |
"Successfully installed optlang-1.4.6+24.g402e082 swiglpk-5.0.0\n" | |
], | |
"name": "stdout" | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "ZDdkco1MCuwb", | |
"outputId": "db93eb0d-1a2e-44ac-8990-6f332463b1bc" | |
}, | |
"source": [ | |
"!apt install cuda" | |
], | |
"execution_count": 2, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": [ | |
"Reading package lists... Done\n", | |
"Building dependency tree \n", | |
"Reading state information... Done\n", | |
"The following additional packages will be installed:\n", | |
" cuda-11-2 cuda-command-line-tools-11-2 cuda-compiler-11-2 cuda-cudart-11-2\n", | |
" cuda-cudart-dev-11-2 cuda-cuobjdump-11-2 cuda-cupti-11-2 cuda-cupti-dev-11-2\n", | |
" cuda-cuxxfilt-11-2 cuda-demo-suite-11-2 cuda-documentation-11-2\n", | |
" cuda-driver-dev-11-2 cuda-gdb-11-2 cuda-libraries-11-2\n", | |
" cuda-libraries-dev-11-2 cuda-memcheck-11-2 cuda-nsight-11-2\n", | |
" cuda-nsight-compute-11-2 cuda-nsight-systems-11-2 cuda-nvcc-11-2\n", | |
" cuda-nvdisasm-11-2 cuda-nvml-dev-11-2 cuda-nvprof-11-2 cuda-nvprune-11-2\n", | |
" cuda-nvrtc-11-2 cuda-nvrtc-dev-11-2 cuda-nvtx-11-2 cuda-nvvp-11-2\n", | |
" cuda-runtime-11-2 cuda-samples-11-2 cuda-sanitizer-11-2 cuda-toolkit-11-2\n", | |
" cuda-tools-11-2 cuda-visual-tools-11-2 libcublas-11-2 libcublas-dev-11-2\n", | |
" libcufft-11-2 libcufft-dev-11-2 libcurand-11-2 libcurand-dev-11-2\n", | |
" libcusolver-11-2 libcusolver-dev-11-2 libcusparse-11-2 libcusparse-dev-11-2\n", | |
" libnpp-11-2 libnpp-dev-11-2 libnvjpeg-11-2 libnvjpeg-dev-11-2\n", | |
"The following NEW packages will be installed:\n", | |
" cuda cuda-11-2 cuda-command-line-tools-11-2 cuda-compiler-11-2\n", | |
" cuda-cudart-11-2 cuda-cudart-dev-11-2 cuda-cuobjdump-11-2 cuda-cupti-11-2\n", | |
" cuda-cupti-dev-11-2 cuda-cuxxfilt-11-2 cuda-demo-suite-11-2\n", | |
" cuda-documentation-11-2 cuda-driver-dev-11-2 cuda-gdb-11-2\n", | |
" cuda-libraries-11-2 cuda-libraries-dev-11-2 cuda-memcheck-11-2\n", | |
" cuda-nsight-11-2 cuda-nsight-compute-11-2 cuda-nsight-systems-11-2\n", | |
" cuda-nvcc-11-2 cuda-nvdisasm-11-2 cuda-nvml-dev-11-2 cuda-nvprof-11-2\n", | |
" cuda-nvprune-11-2 cuda-nvrtc-11-2 cuda-nvrtc-dev-11-2 cuda-nvtx-11-2\n", | |
" cuda-nvvp-11-2 cuda-runtime-11-2 cuda-samples-11-2 cuda-sanitizer-11-2\n", | |
" cuda-toolkit-11-2 cuda-tools-11-2 cuda-visual-tools-11-2 libcublas-11-2\n", | |
" libcublas-dev-11-2 libcufft-11-2 libcufft-dev-11-2 libcurand-11-2\n", | |
" libcurand-dev-11-2 libcusolver-11-2 libcusolver-dev-11-2 libcusparse-11-2\n", | |
" libcusparse-dev-11-2 libnpp-11-2 libnpp-dev-11-2 libnvjpeg-11-2\n", | |
" libnvjpeg-dev-11-2\n", | |
"0 upgraded, 49 newly installed, 0 to remove and 29 not upgraded.\n", | |
"Need to get 1,608 MB of archives.\n", | |
"After this operation, 4,051 MB of additional disk space will be used.\n", | |
"Get:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cudart-11-2 11.2.146-1 [141 kB]\n", | |
"Get:2 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvrtc-11-2 11.2.142-1 [25.6 MB]\n", | |
"Get:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libcublas-11-2 11.4.1.1026-1 [134 MB]\n", | |
"Get:4 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libcufft-11-2 10.4.0.135-1 [107 MB]\n", | |
"Get:5 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libcurand-11-2 10.2.3.135-1 [39.9 MB]\n", | |
"Get:6 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libcusolver-11-2 11.1.0.135-1 [153 MB]\n", | |
"Get:7 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libcusparse-11-2 11.4.0.135-1 [96.1 MB]\n", | |
"Get:8 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libnpp-11-2 11.3.2.139-1 [70.8 MB]\n", | |
"Get:9 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libnvjpeg-11-2 11.4.0.135-1 [1,498 kB]\n", | |
"Get:10 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-libraries-11-2 11.2.1-1 [2,502 B]\n", | |
"Get:11 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-runtime-11-2 11.2.1-1 [2,424 B]\n", | |
"Get:12 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cuobjdump-11-2 11.2.135-1 [111 kB]\n", | |
"Get:13 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cuxxfilt-11-2 11.2.135-1 [44.2 kB]\n", | |
"Get:14 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-driver-dev-11-2 11.2.146-1 [25.9 kB]\n", | |
"Get:15 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cudart-dev-11-2 11.2.146-1 [1,647 kB]\n", | |
"Get:16 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvcc-11-2 11.2.142-1 [45.9 MB]\n", | |
"Get:17 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvprune-11-2 11.2.135-1 [54.6 kB]\n", | |
"Get:18 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-compiler-11-2 11.2.1-1 [2,428 B]\n", | |
"Get:19 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvrtc-dev-11-2 11.2.142-1 [25.6 MB]\n", | |
"Get:20 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libcublas-dev-11-2 11.4.1.1026-1 [142 MB]\n", | |
"Get:21 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libcufft-dev-11-2 10.4.0.135-1 [179 MB]\n", | |
"Get:22 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libcurand-dev-11-2 10.2.3.135-1 [40.3 MB]\n", | |
"Get:23 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libcusolver-dev-11-2 11.1.0.135-1 [20.5 MB]\n", | |
"Get:24 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libcusparse-dev-11-2 11.4.0.135-1 [96.6 MB]\n", | |
"Get:25 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libnpp-dev-11-2 11.3.2.139-1 [71.3 MB]\n", | |
"Get:26 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libnvjpeg-dev-11-2 11.4.0.135-1 [1,420 kB]\n", | |
"Get:27 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-libraries-dev-11-2 11.2.1-1 [2,518 B]\n", | |
"Get:28 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cupti-11-2 11.2.135-1 [11.3 MB]\n", | |
"Get:29 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cupti-dev-11-2 11.2.135-1 [2,313 kB]\n", | |
"Get:30 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvdisasm-11-2 11.2.135-1 [32.9 MB]\n", | |
"Get:31 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-gdb-11-2 11.2.135-1 [3,622 kB]\n", | |
"Get:32 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-memcheck-11-2 11.2.135-1 [145 kB]\n", | |
"Get:33 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvprof-11-2 11.2.135-1 [1,915 kB]\n", | |
"Get:34 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvtx-11-2 11.2.67-1 [50.9 kB]\n", | |
"Get:35 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-sanitizer-11-2 11.2.135-1 [7,642 kB]\n", | |
"Get:36 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-command-line-tools-11-2 11.2.1-1 [2,470 B]\n", | |
"Get:37 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nsight-compute-11-2 11.2.1-1 [3,700 B]\n", | |
"Get:38 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nsight-systems-11-2 11.2.1-1 [3,306 B]\n", | |
"Get:39 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nsight-11-2 11.2.135-1 [119 MB]\n", | |
"Get:40 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvml-dev-11-2 11.2.67-1 [73.5 kB]\n", | |
"Get:41 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvvp-11-2 11.2.135-1 [115 MB]\n", | |
"Get:42 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-visual-tools-11-2 11.2.1-1 [2,948 B]\n", | |
"Get:43 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-tools-11-2 11.2.1-1 [2,380 B]\n", | |
"Get:44 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-samples-11-2 11.2.135-1 [57.0 MB]\n", | |
"Get:45 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-documentation-11-2 11.2.146-1 [48.8 kB]\n", | |
"Get:46 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-toolkit-11-2 11.2.1-1 [3,288 B]\n", | |
"Get:47 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-demo-suite-11-2 11.2.67-1 [3,928 kB]\n", | |
"Get:48 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-11-2 11.2.1-1 [2,448 B]\n", | |
"Get:49 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda 11.2.1-1 [2,394 B]\n", | |
"Fetched 1,608 MB in 25s (65.3 MB/s)\n", | |
"Extracting templates from packages: 100%\n", | |
"Selecting previously unselected package cuda-cudart-11-2.\n", | |
"(Reading database ... 160975 files and directories currently installed.)\n", | |
"Preparing to unpack .../00-cuda-cudart-11-2_11.2.146-1_amd64.deb ...\n", | |
"Unpacking cuda-cudart-11-2 (11.2.146-1) ...\n", | |
"Selecting previously unselected package cuda-nvrtc-11-2.\n", | |
"Preparing to unpack .../01-cuda-nvrtc-11-2_11.2.142-1_amd64.deb ...\n", | |
"Unpacking cuda-nvrtc-11-2 (11.2.142-1) ...\n", | |
"Selecting previously unselected package libcublas-11-2.\n", | |
"Preparing to unpack .../02-libcublas-11-2_11.4.1.1026-1_amd64.deb ...\n", | |
"Unpacking libcublas-11-2 (11.4.1.1026-1) ...\n", | |
"Selecting previously unselected package libcufft-11-2.\n", | |
"Preparing to unpack .../03-libcufft-11-2_10.4.0.135-1_amd64.deb ...\n", | |
"Unpacking libcufft-11-2 (10.4.0.135-1) ...\n", | |
"Selecting previously unselected package libcurand-11-2.\n", | |
"Preparing to unpack .../04-libcurand-11-2_10.2.3.135-1_amd64.deb ...\n", | |
"Unpacking libcurand-11-2 (10.2.3.135-1) ...\n", | |
"Selecting previously unselected package libcusolver-11-2.\n", | |
"Preparing to unpack .../05-libcusolver-11-2_11.1.0.135-1_amd64.deb ...\n", | |
"Unpacking libcusolver-11-2 (11.1.0.135-1) ...\n", | |
"Selecting previously unselected package libcusparse-11-2.\n", | |
"Preparing to unpack .../06-libcusparse-11-2_11.4.0.135-1_amd64.deb ...\n", | |
"Unpacking libcusparse-11-2 (11.4.0.135-1) ...\n", | |
"Selecting previously unselected package libnpp-11-2.\n", | |
"Preparing to unpack .../07-libnpp-11-2_11.3.2.139-1_amd64.deb ...\n", | |
"Unpacking libnpp-11-2 (11.3.2.139-1) ...\n", | |
"Selecting previously unselected package libnvjpeg-11-2.\n", | |
"Preparing to unpack .../08-libnvjpeg-11-2_11.4.0.135-1_amd64.deb ...\n", | |
"Unpacking libnvjpeg-11-2 (11.4.0.135-1) ...\n", | |
"Selecting previously unselected package cuda-libraries-11-2.\n", | |
"Preparing to unpack .../09-cuda-libraries-11-2_11.2.1-1_amd64.deb ...\n", | |
"Unpacking cuda-libraries-11-2 (11.2.1-1) ...\n", | |
"Selecting previously unselected package cuda-runtime-11-2.\n", | |
"Preparing to unpack .../10-cuda-runtime-11-2_11.2.1-1_amd64.deb ...\n", | |
"Unpacking cuda-runtime-11-2 (11.2.1-1) ...\n", | |
"Selecting previously unselected package cuda-cuobjdump-11-2.\n", | |
"Preparing to unpack .../11-cuda-cuobjdump-11-2_11.2.135-1_amd64.deb ...\n", | |
"Unpacking cuda-cuobjdump-11-2 (11.2.135-1) ...\n", | |
"Selecting previously unselected package cuda-cuxxfilt-11-2.\n", | |
"Preparing to unpack .../12-cuda-cuxxfilt-11-2_11.2.135-1_amd64.deb ...\n", | |
"Unpacking cuda-cuxxfilt-11-2 (11.2.135-1) ...\n", | |
"Selecting previously unselected package cuda-driver-dev-11-2.\n", | |
"Preparing to unpack .../13-cuda-driver-dev-11-2_11.2.146-1_amd64.deb ...\n", | |
"Unpacking cuda-driver-dev-11-2 (11.2.146-1) ...\n", | |
"Selecting previously unselected package cuda-cudart-dev-11-2.\n", | |
"Preparing to unpack .../14-cuda-cudart-dev-11-2_11.2.146-1_amd64.deb ...\n", | |
"Unpacking cuda-cudart-dev-11-2 (11.2.146-1) ...\n", | |
"Selecting previously unselected package cuda-nvcc-11-2.\n", | |
"Preparing to unpack .../15-cuda-nvcc-11-2_11.2.142-1_amd64.deb ...\n", | |
"Unpacking cuda-nvcc-11-2 (11.2.142-1) ...\n", | |
"Selecting previously unselected package cuda-nvprune-11-2.\n", | |
"Preparing to unpack .../16-cuda-nvprune-11-2_11.2.135-1_amd64.deb ...\n", | |
"Unpacking cuda-nvprune-11-2 (11.2.135-1) ...\n", | |
"Selecting previously unselected package cuda-compiler-11-2.\n", | |
"Preparing to unpack .../17-cuda-compiler-11-2_11.2.1-1_amd64.deb ...\n", | |
"Unpacking cuda-compiler-11-2 (11.2.1-1) ...\n", | |
"Selecting previously unselected package cuda-nvrtc-dev-11-2.\n", | |
"Preparing to unpack .../18-cuda-nvrtc-dev-11-2_11.2.142-1_amd64.deb ...\n", | |
"Unpacking cuda-nvrtc-dev-11-2 (11.2.142-1) ...\n", | |
"Selecting previously unselected package libcublas-dev-11-2.\n", | |
"Preparing to unpack .../19-libcublas-dev-11-2_11.4.1.1026-1_amd64.deb ...\n", | |
"Unpacking libcublas-dev-11-2 (11.4.1.1026-1) ...\n", | |
"Selecting previously unselected package libcufft-dev-11-2.\n", | |
"Preparing to unpack .../20-libcufft-dev-11-2_10.4.0.135-1_amd64.deb ...\n", | |
"Unpacking libcufft-dev-11-2 (10.4.0.135-1) ...\n", | |
"Selecting previously unselected package libcurand-dev-11-2.\n", | |
"Preparing to unpack .../21-libcurand-dev-11-2_10.2.3.135-1_amd64.deb ...\n", | |
"Unpacking libcurand-dev-11-2 (10.2.3.135-1) ...\n", | |
"Selecting previously unselected package libcusolver-dev-11-2.\n", | |
"Preparing to unpack .../22-libcusolver-dev-11-2_11.1.0.135-1_amd64.deb ...\n", | |
"Unpacking libcusolver-dev-11-2 (11.1.0.135-1) ...\n", | |
"Selecting previously unselected package libcusparse-dev-11-2.\n", | |
"Preparing to unpack .../23-libcusparse-dev-11-2_11.4.0.135-1_amd64.deb ...\n", | |
"Unpacking libcusparse-dev-11-2 (11.4.0.135-1) ...\n", | |
"Selecting previously unselected package libnpp-dev-11-2.\n", | |
"Preparing to unpack .../24-libnpp-dev-11-2_11.3.2.139-1_amd64.deb ...\n", | |
"Unpacking libnpp-dev-11-2 (11.3.2.139-1) ...\n", | |
"Selecting previously unselected package libnvjpeg-dev-11-2.\n", | |
"Preparing to unpack .../25-libnvjpeg-dev-11-2_11.4.0.135-1_amd64.deb ...\n", | |
"Unpacking libnvjpeg-dev-11-2 (11.4.0.135-1) ...\n", | |
"Selecting previously unselected package cuda-libraries-dev-11-2.\n", | |
"Preparing to unpack .../26-cuda-libraries-dev-11-2_11.2.1-1_amd64.deb ...\n", | |
"Unpacking cuda-libraries-dev-11-2 (11.2.1-1) ...\n", | |
"Selecting previously unselected package cuda-cupti-11-2.\n", | |
"Preparing to unpack .../27-cuda-cupti-11-2_11.2.135-1_amd64.deb ...\n", | |
"Unpacking cuda-cupti-11-2 (11.2.135-1) ...\n", | |
"Selecting previously unselected package cuda-cupti-dev-11-2.\n", | |
"Preparing to unpack .../28-cuda-cupti-dev-11-2_11.2.135-1_amd64.deb ...\n", | |
"Unpacking cuda-cupti-dev-11-2 (11.2.135-1) ...\n", | |
"Selecting previously unselected package cuda-nvdisasm-11-2.\n", | |
"Preparing to unpack .../29-cuda-nvdisasm-11-2_11.2.135-1_amd64.deb ...\n", | |
"Unpacking cuda-nvdisasm-11-2 (11.2.135-1) ...\n", | |
"Selecting previously unselected package cuda-gdb-11-2.\n", | |
"Preparing to unpack .../30-cuda-gdb-11-2_11.2.135-1_amd64.deb ...\n", | |
"Unpacking cuda-gdb-11-2 (11.2.135-1) ...\n", | |
"Selecting previously unselected package cuda-memcheck-11-2.\n", | |
"Preparing to unpack .../31-cuda-memcheck-11-2_11.2.135-1_amd64.deb ...\n", | |
"Unpacking cuda-memcheck-11-2 (11.2.135-1) ...\n", | |
"Selecting previously unselected package cuda-nvprof-11-2.\n", | |
"Preparing to unpack .../32-cuda-nvprof-11-2_11.2.135-1_amd64.deb ...\n", | |
"Unpacking cuda-nvprof-11-2 (11.2.135-1) ...\n", | |
"Selecting previously unselected package cuda-nvtx-11-2.\n", | |
"Preparing to unpack .../33-cuda-nvtx-11-2_11.2.67-1_amd64.deb ...\n", | |
"Unpacking cuda-nvtx-11-2 (11.2.67-1) ...\n", | |
"Selecting previously unselected package cuda-sanitizer-11-2.\n", | |
"Preparing to unpack .../34-cuda-sanitizer-11-2_11.2.135-1_amd64.deb ...\n", | |
"Unpacking cuda-sanitizer-11-2 (11.2.135-1) ...\n", | |
"Selecting previously unselected package cuda-command-line-tools-11-2.\n", | |
"Preparing to unpack .../35-cuda-command-line-tools-11-2_11.2.1-1_amd64.deb ...\n", | |
"Unpacking cuda-command-line-tools-11-2 (11.2.1-1) ...\n", | |
"Selecting previously unselected package cuda-nsight-compute-11-2.\n", | |
"Preparing to unpack .../36-cuda-nsight-compute-11-2_11.2.1-1_amd64.deb ...\n", | |
"Unpacking cuda-nsight-compute-11-2 (11.2.1-1) ...\n", | |
"Selecting previously unselected package cuda-nsight-systems-11-2.\n", | |
"Preparing to unpack .../37-cuda-nsight-systems-11-2_11.2.1-1_amd64.deb ...\n", | |
"Unpacking cuda-nsight-systems-11-2 (11.2.1-1) ...\n", | |
"Selecting previously unselected package cuda-nsight-11-2.\n", | |
"Preparing to unpack .../38-cuda-nsight-11-2_11.2.135-1_amd64.deb ...\n", | |
"Unpacking cuda-nsight-11-2 (11.2.135-1) ...\n", | |
"Selecting previously unselected package cuda-nvml-dev-11-2.\n", | |
"Preparing to unpack .../39-cuda-nvml-dev-11-2_11.2.67-1_amd64.deb ...\n", | |
"Unpacking cuda-nvml-dev-11-2 (11.2.67-1) ...\n", | |
"Selecting previously unselected package cuda-nvvp-11-2.\n", | |
"Preparing to unpack .../40-cuda-nvvp-11-2_11.2.135-1_amd64.deb ...\n", | |
"Unpacking cuda-nvvp-11-2 (11.2.135-1) ...\n", | |
"Selecting previously unselected package cuda-visual-tools-11-2.\n", | |
"Preparing to unpack .../41-cuda-visual-tools-11-2_11.2.1-1_amd64.deb ...\n", | |
"Unpacking cuda-visual-tools-11-2 (11.2.1-1) ...\n", | |
"Selecting previously unselected package cuda-tools-11-2.\n", | |
"Preparing to unpack .../42-cuda-tools-11-2_11.2.1-1_amd64.deb ...\n", | |
"Unpacking cuda-tools-11-2 (11.2.1-1) ...\n", | |
"Selecting previously unselected package cuda-samples-11-2.\n", | |
"Preparing to unpack .../43-cuda-samples-11-2_11.2.135-1_amd64.deb ...\n", | |
"Unpacking cuda-samples-11-2 (11.2.135-1) ...\n", | |
"Selecting previously unselected package cuda-documentation-11-2.\n", | |
"Preparing to unpack .../44-cuda-documentation-11-2_11.2.146-1_amd64.deb ...\n", | |
"Unpacking cuda-documentation-11-2 (11.2.146-1) ...\n", | |
"Selecting previously unselected package cuda-toolkit-11-2.\n", | |
"Preparing to unpack .../45-cuda-toolkit-11-2_11.2.1-1_amd64.deb ...\n", | |
"Unpacking cuda-toolkit-11-2 (11.2.1-1) ...\n", | |
"Selecting previously unselected package cuda-demo-suite-11-2.\n", | |
"Preparing to unpack .../46-cuda-demo-suite-11-2_11.2.67-1_amd64.deb ...\n", | |
"Unpacking cuda-demo-suite-11-2 (11.2.67-1) ...\n", | |
"Selecting previously unselected package cuda-11-2.\n", | |
"Preparing to unpack .../47-cuda-11-2_11.2.1-1_amd64.deb ...\n", | |
"Unpacking cuda-11-2 (11.2.1-1) ...\n", | |
"Selecting previously unselected package cuda.\n", | |
"Preparing to unpack .../48-cuda_11.2.1-1_amd64.deb ...\n", | |
"Unpacking cuda (11.2.1-1) ...\n", | |
"Setting up libcufft-11-2 (10.4.0.135-1) ...\n", | |
"Setting up libcusparse-11-2 (11.4.0.135-1) ...\n", | |
"Setting up libnpp-11-2 (11.3.2.139-1) ...\n", | |
"Setting up cuda-nvrtc-11-2 (11.2.142-1) ...\n", | |
"Setting up libcurand-11-2 (10.2.3.135-1) ...\n", | |
"Setting up cuda-nvvp-11-2 (11.2.135-1) ...\n", | |
"Setting up cuda-nvtx-11-2 (11.2.67-1) ...\n", | |
"Setting up cuda-nvml-dev-11-2 (11.2.67-1) ...\n", | |
"Setting up libnvjpeg-11-2 (11.4.0.135-1) ...\n", | |
"Setting up cuda-nsight-compute-11-2 (11.2.1-1) ...\n", | |
"Setting up libcufft-dev-11-2 (10.4.0.135-1) ...\n", | |
"Setting up libcusparse-dev-11-2 (11.4.0.135-1) ...\n", | |
"Setting up cuda-cuobjdump-11-2 (11.2.135-1) ...\n", | |
"Setting up libcurand-dev-11-2 (10.2.3.135-1) ...\n", | |
"Setting up libnpp-dev-11-2 (11.3.2.139-1) ...\n", | |
"Setting up cuda-driver-dev-11-2 (11.2.146-1) ...\n", | |
"Setting up cuda-cudart-11-2 (11.2.146-1) ...\n", | |
"Setting up cuda-cuxxfilt-11-2 (11.2.135-1) ...\n", | |
"Setting up libnvjpeg-dev-11-2 (11.4.0.135-1) ...\n", | |
"Setting up cuda-memcheck-11-2 (11.2.135-1) ...\n", | |
"Setting up cuda-cudart-dev-11-2 (11.2.146-1) ...\n", | |
"Setting up cuda-nvprune-11-2 (11.2.135-1) ...\n", | |
"Setting up cuda-nvrtc-dev-11-2 (11.2.142-1) ...\n", | |
"Setting up cuda-nsight-11-2 (11.2.135-1) ...\n", | |
"Setting up libcublas-11-2 (11.4.1.1026-1) ...\n", | |
"Setting up cuda-sanitizer-11-2 (11.2.135-1) ...\n", | |
"Setting up cuda-nvdisasm-11-2 (11.2.135-1) ...\n", | |
"Setting up cuda-nsight-systems-11-2 (11.2.1-1) ...\n", | |
"Setting up libcusolver-11-2 (11.1.0.135-1) ...\n", | |
"Setting up cuda-nvprof-11-2 (11.2.135-1) ...\n", | |
"Setting up cuda-libraries-11-2 (11.2.1-1) ...\n", | |
"Setting up libcusolver-dev-11-2 (11.1.0.135-1) ...\n", | |
"Setting up libcublas-dev-11-2 (11.4.1.1026-1) ...\n", | |
"Setting up cuda-libraries-dev-11-2 (11.2.1-1) ...\n", | |
"Setting up cuda-nvcc-11-2 (11.2.142-1) ...\n", | |
"Setting up cuda-gdb-11-2 (11.2.135-1) ...\n", | |
"Setting up cuda-runtime-11-2 (11.2.1-1) ...\n", | |
"Setting up cuda-demo-suite-11-2 (11.2.67-1) ...\n", | |
"Setting up cuda-samples-11-2 (11.2.135-1) ...\n", | |
"Setting up cuda-compiler-11-2 (11.2.1-1) ...\n", | |
"Setting up cuda-visual-tools-11-2 (11.2.1-1) ...\n", | |
"Setting up cuda-documentation-11-2 (11.2.146-1) ...\n", | |
"Setting up cuda-cupti-11-2 (11.2.135-1) ...\n", | |
"Setting up cuda-cupti-dev-11-2 (11.2.135-1) ...\n", | |
"Setting up cuda-command-line-tools-11-2 (11.2.1-1) ...\n", | |
"Setting up cuda-tools-11-2 (11.2.1-1) ...\n", | |
"Setting up cuda-toolkit-11-2 (11.2.1-1) ...\n", | |
"Setting alternatives\n", | |
"update-alternatives: using /usr/local/cuda-11.2 to provide /usr/local/cuda (cuda) in auto mode\n", | |
"update-alternatives: using /usr/local/cuda-11.2 to provide /usr/local/cuda-11 (cuda-11) in auto mode\n", | |
"Setting up cuda-11-2 (11.2.1-1) ...\n", | |
"Setting up cuda (11.2.1-1) ...\n" | |
], | |
"name": "stdout" | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "zO5DDTLkBn4-", | |
"outputId": "55b9ef48-1d7c-4fb7-bbf0-5f39a830d912" | |
}, | |
"source": [ | |
"!git clone --recurse-submodules https://github.com/oxfordcontrol/cuosqp && cd cuosqp && CUDA_PATH=/usr/local/cuda python setup.py install" | |
], | |
"execution_count": 3, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": [ | |
"Cloning into 'cuosqp'...\n", | |
"remote: Enumerating objects: 4872, done.\u001b[K\n", | |
"remote: Counting objects: 100% (4872/4872), done.\u001b[K\n", | |
"remote: Compressing objects: 100% (1778/1778), done.\u001b[K\n", | |
"remote: Total 4872 (delta 3028), reused 4841 (delta 2997), pack-reused 0\u001b[K\n", | |
"Receiving objects: 100% (4872/4872), 28.03 MiB | 32.35 MiB/s, done.\n", | |
"Resolving deltas: 100% (3028/3028), done.\n", | |
"Submodule 'osqp_sources' (https://github.com/oxfordcontrol/osqp) registered for path 'osqp_sources'\n", | |
"Cloning into '/content/cuosqp/osqp_sources'...\n", | |
"remote: Enumerating objects: 3, done. \n", | |
"remote: Counting objects: 100% (3/3), done. \n", | |
"remote: Compressing objects: 100% (3/3), done. \n", | |
"remote: Total 18966 (delta 0), reused 1 (delta 0), pack-reused 18963 \n", | |
"Receiving objects: 100% (18966/18966), 36.56 MiB | 30.63 MiB/s, done.\n", | |
"Resolving deltas: 100% (12967/12967), done.\n", | |
"Submodule path 'osqp_sources': checked out '6d6b126fbf55cfd004a5bc1b60d7720f69e7dd5d'\n", | |
"Submodule 'lin_sys/direct/qdldl/qdldl_sources' (https://github.com/oxfordcontrol/qdldl.git) registered for path 'osqp_sources/lin_sys/direct/qdldl/qdldl_sources'\n", | |
"Cloning into '/content/cuosqp/osqp_sources/lin_sys/direct/qdldl/qdldl_sources'...\n", | |
"remote: Enumerating objects: 18, done. \n", | |
"remote: Counting objects: 100% (18/18), done. \n", | |
"remote: Compressing objects: 100% (16/16), done. \n", | |
"remote: Total 647 (delta 4), reused 11 (delta 1), pack-reused 629 \n", | |
"Receiving objects: 100% (647/647), 124.01 KiB | 6.89 MiB/s, done.\n", | |
"Resolving deltas: 100% (336/336), done.\n", | |
"Submodule path 'osqp_sources/lin_sys/direct/qdldl/qdldl_sources': checked out '69e845bf4e6bfcbc2029a739959a6723cbb04783'\n", | |
"running install\n", | |
"running bdist_egg\n", | |
"running egg_info\n", | |
"creating cuosqp.egg-info\n", | |
"writing cuosqp.egg-info/PKG-INFO\n", | |
"writing dependency_links to cuosqp.egg-info/dependency_links.txt\n", | |
"writing requirements to cuosqp.egg-info/requires.txt\n", | |
"writing top-level names to cuosqp.egg-info/top_level.txt\n", | |
"writing manifest file 'cuosqp.egg-info/SOURCES.txt'\n", | |
"reading manifest template 'MANIFEST.in'\n", | |
"writing manifest file 'cuosqp.egg-info/SOURCES.txt'\n", | |
"installing library code to build/bdist.linux-x86_64/egg\n", | |
"running install_lib\n", | |
"running build_py\n", | |
"creating build\n", | |
"creating build/lib.linux-x86_64-3.7\n", | |
"creating build/lib.linux-x86_64-3.7/cuosqp\n", | |
"copying module/__init__.py -> build/lib.linux-x86_64-3.7/cuosqp\n", | |
"copying module/utils.py -> build/lib.linux-x86_64-3.7/cuosqp\n", | |
"copying module/interface.py -> build/lib.linux-x86_64-3.7/cuosqp\n", | |
"creating build/lib.linux-x86_64-3.7/cuosqp/tests\n", | |
"copying module/tests/non_convex_test.py -> build/lib.linux-x86_64-3.7/cuosqp/tests\n", | |
"copying module/tests/unconstrained_test.py -> build/lib.linux-x86_64-3.7/cuosqp/tests\n", | |
"copying module/tests/__init__.py -> build/lib.linux-x86_64-3.7/cuosqp/tests\n", | |
"copying module/tests/basic_test.py -> build/lib.linux-x86_64-3.7/cuosqp/tests\n", | |
"copying module/tests/update_matrices_test.py -> build/lib.linux-x86_64-3.7/cuosqp/tests\n", | |
"copying module/tests/feasibility_test.py -> build/lib.linux-x86_64-3.7/cuosqp/tests\n", | |
"copying module/tests/polishing_test.py -> build/lib.linux-x86_64-3.7/cuosqp/tests\n", | |
"copying module/tests/warm_start_test.py -> build/lib.linux-x86_64-3.7/cuosqp/tests\n", | |
"copying module/tests/primal_infeasibility_test.py -> build/lib.linux-x86_64-3.7/cuosqp/tests\n", | |
"copying module/tests/dual_infeasibility_test.py -> build/lib.linux-x86_64-3.7/cuosqp/tests\n", | |
"running build_ext\n", | |
"-- The C compiler identification is GNU 7.5.0\n", | |
"-- The CXX compiler identification is GNU 7.5.0\n", | |
"-- Check for working C compiler: /usr/bin/cc\n", | |
"-- Check for working C compiler: /usr/bin/cc -- works\n", | |
"-- Detecting C compiler ABI info\n", | |
"-- Detecting C compiler ABI info - done\n", | |
"-- Detecting C compile features\n", | |
"-- Detecting C compile features - done\n", | |
"-- Check for working CXX compiler: /usr/bin/c++\n", | |
"-- Check for working CXX compiler: /usr/bin/c++ -- works\n", | |
"-- Detecting CXX compiler ABI info\n", | |
"-- Detecting CXX compiler ABI info - done\n", | |
"-- Detecting CXX compile features\n", | |
"-- Detecting CXX compile features - done\n", | |
"-- We are on a Linux system\n", | |
"-- Embedded is OFF\n", | |
"-- CUDA support is ON\n", | |
"-- Printing is ON\n", | |
"-- Profiling is ON\n", | |
"-- User interrupt is ON\n", | |
"-- Floats are ON\n", | |
"-- Disabling long integers (64bit) for CUDA\n", | |
"-- Long integers (64bit) are OFF\n", | |
"-- Code coverage is OFF\n", | |
"-- The CUDA compiler identification is NVIDIA 11.2.142\n", | |
"-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc\n", | |
"-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc -- works\n", | |
"-- Detecting CUDA compiler ABI info\n", | |
"-- Detecting CUDA compiler ABI info - done\n", | |
"-- Looking for pthread.h\n", | |
"-- Looking for pthread.h - found\n", | |
"-- Looking for pthread_create\n", | |
"-- Looking for pthread_create - not found\n", | |
"-- Looking for pthread_create in pthreads\n", | |
"-- Looking for pthread_create in pthreads - not found\n", | |
"-- Looking for pthread_create in pthread\n", | |
"-- Looking for pthread_create in pthread - found\n", | |
"-- Found Threads: TRUE \n", | |
"-- Found CUDA: /usr/local/cuda (found version \"11.2\") \n", | |
"-- Disabling MKL Pardiso Solver with floats\n", | |
"-- MKL Pardiso: OFF\n", | |
"-- Using custom algebra implementation in /content/cuosqp/osqp_sources/algebra/cuda\n", | |
"-- Configuring done\n", | |
"-- Generating done\n", | |
"-- Build files have been written to: /content/cuosqp/osqp_sources/build\n", | |
"\u001b[35m\u001b[1mScanning dependencies of target linsys_cuda_pcg\u001b[0m\n", | |
"[ 5%] \u001b[32mBuilding C object lin_sys/cuda/cuda_pcg/CMakeFiles/linsys_cuda_pcg.dir/cuda_pcg_interface.c.o\u001b[0m\n", | |
"[ 10%] \u001b[32mBuilding CUDA object lin_sys/cuda/cuda_pcg/CMakeFiles/linsys_cuda_pcg.dir/src/cuda_pcg.cu.o\u001b[0m\n", | |
"\u001b[01m\u001b[K/content/cuosqp/osqp_sources/lin_sys/cuda/cuda_pcg/src/cuda_pcg.cu:\u001b[m\u001b[K In function ‘\u001b[01m\u001b[Kvoid mat_vec_prod(cudapcg_solver*, c_float*, const c_float*, c_int)\u001b[m\u001b[K’:\n", | |
"\u001b[01m\u001b[K/content/cuosqp/osqp_sources/lin_sys/cuda/cuda_pcg/src/cuda_pcg.cu:73:272:\u001b[m\u001b[K \u001b[01;35m\u001b[Kwarning: \u001b[m\u001b[K‘\u001b[01m\u001b[KcusparseStatus_t cusparseCsrmvEx(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const void*, cudaDataType, cusparseMatDescr_t, const void*, cudaDataType, const int*, const int*, const void*, cudaDataType, const void*, cudaDataType, void*, cudaDataType, cudaDataType, void*)\u001b[m\u001b[K’ is deprecated: please use cusparseSpMV instead [\u001b[01;35m\u001b[K-Wdeprecated-declarations\u001b[m\u001b[K]\n", | |
" checkCudaErrors(cusparseCsrmvEx(CUDA_handle->cusparseHandle, P->alg,\n", | |
" \u001b[01;35m\u001b[K^\u001b[m\u001b[K\n", | |
"\u001b[01m\u001b[K/usr/local/cuda/targets/x86_64-linux/include/cusparse.h:734:1:\u001b[m\u001b[K \u001b[01;36m\u001b[Knote: \u001b[m\u001b[Kdeclared here\n", | |
" \u001b[01;36m\u001b[KcusparseCsrmvEx\u001b[m\u001b[K(cusparseHandle_t handle,\n", | |
" \u001b[01;36m\u001b[K^~~~~~~~~~~~~~~\u001b[m\u001b[K\n", | |
"\u001b[01m\u001b[K/content/cuosqp/osqp_sources/lin_sys/cuda/cuda_pcg/src/cuda_pcg.cu:85:278:\u001b[m\u001b[K \u001b[01;35m\u001b[Kwarning: \u001b[m\u001b[K‘\u001b[01m\u001b[KcusparseStatus_t cusparseCsrmvEx(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const void*, cudaDataType, cusparseMatDescr_t, const void*, cudaDataType, const int*, const int*, const void*, cudaDataType, const void*, cudaDataType, void*, cudaDataType, cudaDataType, void*)\u001b[m\u001b[K’ is deprecated: please use cusparseSpMV instead [\u001b[01;35m\u001b[K-Wdeprecated-declarations\u001b[m\u001b[K]\n", | |
" checkCudaErrors(cusparseCsrmvEx(CUDA_handle->cusparseHandle, A->alg,\n", | |
" \u001b[01;35m\u001b[K^\u001b[m\u001b[K\n", | |
"\u001b[01m\u001b[K/usr/local/cuda/targets/x86_64-linux/include/cusparse.h:734:1:\u001b[m\u001b[K \u001b[01;36m\u001b[Knote: \u001b[m\u001b[Kdeclared here\n", | |
" \u001b[01;36m\u001b[KcusparseCsrmvEx\u001b[m\u001b[K(cusparseHandle_t handle,\n", | |
" \u001b[01;36m\u001b[K^~~~~~~~~~~~~~~\u001b[m\u001b[K\n", | |
"\u001b[01m\u001b[K/content/cuosqp/osqp_sources/lin_sys/cuda/cuda_pcg/src/cuda_pcg.cu:95:276:\u001b[m\u001b[K \u001b[01;35m\u001b[Kwarning: \u001b[m\u001b[K‘\u001b[01m\u001b[KcusparseStatus_t cusparseCsrmvEx(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const void*, cudaDataType, cusparseMatDescr_t, const void*, cudaDataType, const int*, const int*, const void*, cudaDataType, const void*, cudaDataType, void*, cudaDataType, cudaDataType, void*)\u001b[m\u001b[K’ is deprecated: please use cusparseSpMV instead [\u001b[01;35m\u001b[K-Wdeprecated-declarations\u001b[m\u001b[K]\n", | |
" checkCudaErrors(cusparseCsrmvEx(CUDA_handle->cusparseHandle, A->alg,\n", | |
" \u001b[01;35m\u001b[K^\u001b[m\u001b[K\n", | |
"\u001b[01m\u001b[K/usr/local/cuda/targets/x86_64-linux/include/cusparse.h:734:1:\u001b[m\u001b[K \u001b[01;36m\u001b[Knote: \u001b[m\u001b[Kdeclared here\n", | |
" \u001b[01;36m\u001b[KcusparseCsrmvEx\u001b[m\u001b[K(cusparseHandle_t handle,\n", | |
" \u001b[01;36m\u001b[K^~~~~~~~~~~~~~~\u001b[m\u001b[K\n", | |
"\u001b[01m\u001b[K/content/cuosqp/osqp_sources/lin_sys/cuda/cuda_pcg/src/cuda_pcg.cu:108:283:\u001b[m\u001b[K \u001b[01;35m\u001b[Kwarning: \u001b[m\u001b[K‘\u001b[01m\u001b[KcusparseStatus_t cusparseCsrmvEx(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const void*, cudaDataType, cusparseMatDescr_t, const void*, cudaDataType, const int*, const int*, const void*, cudaDataType, const void*, cudaDataType, void*, cudaDataType, cudaDataType, void*)\u001b[m\u001b[K’ is deprecated: please use cusparseSpMV instead [\u001b[01;35m\u001b[K-Wdeprecated-declarations\u001b[m\u001b[K]\n", | |
" checkCudaErrors(cusparseCsrmvEx(CUDA_handle->cusparseHandle, At->alg,\n", | |
" \u001b[01;35m\u001b[K^\u001b[m\u001b[K\n", | |
"\u001b[01m\u001b[K/usr/local/cuda/targets/x86_64-linux/include/cusparse.h:734:1:\u001b[m\u001b[K \u001b[01;36m\u001b[Knote: \u001b[m\u001b[Kdeclared here\n", | |
" \u001b[01;36m\u001b[KcusparseCsrmvEx\u001b[m\u001b[K(cusparseHandle_t handle,\n", | |
" \u001b[01;36m\u001b[K^~~~~~~~~~~~~~~\u001b[m\u001b[K\n", | |
"[ 10%] Built target linsys_cuda_pcg\n", | |
"\u001b[35m\u001b[1mScanning dependencies of target osqp_algebra\u001b[0m\n", | |
"[ 15%] \u001b[32mBuilding C object algebra/CMakeFiles/osqp_algebra.dir/cuda/algebra_libs.c.o\u001b[0m\n", | |
"[ 21%] \u001b[32mBuilding CUDA object algebra/CMakeFiles/osqp_algebra.dir/cuda/matrix.cu.o\u001b[0m\n", | |
"[ 26%] \u001b[32mBuilding CUDA object algebra/CMakeFiles/osqp_algebra.dir/cuda/vector.cu.o\u001b[0m\n", | |
"[ 31%] \u001b[32mBuilding CUDA object algebra/CMakeFiles/osqp_algebra.dir/cuda/src/cuda_csr.cu.o\u001b[0m\n", | |
"\u001b[01m\u001b[K/content/cuosqp/osqp_sources/algebra/cuda/src/cuda_csr.cu:\u001b[m\u001b[K In function ‘\u001b[01m\u001b[Kvoid update_mp_buffer(csr*)\u001b[m\u001b[K’:\n", | |
"\u001b[01m\u001b[K/content/cuosqp/osqp_sources/algebra/cuda/src/cuda_csr.cu:240:298:\u001b[m\u001b[K \u001b[01;35m\u001b[Kwarning: \u001b[m\u001b[K‘\u001b[01m\u001b[KcusparseStatus_t cusparseCsrmvEx_bufferSize(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const void*, cudaDataType, cusparseMatDescr_t, const void*, cudaDataType, const int*, const int*, const void*, cudaDataType, const void*, cudaDataType, void*, cudaDataType, cudaDataType, size_t*)\u001b[m\u001b[K’ is deprecated: please use cusparseSpMV instead [\u001b[01;35m\u001b[K-Wdeprecated-declarations\u001b[m\u001b[K]\n", | |
" checkCudaErrors(cusparseCsrmvEx_bufferSize(CUDA_handle->cusparseHandle, P->alg,\n", | |
" \u001b[01;35m\u001b[K^\u001b[m\u001b[K\n", | |
"\u001b[01m\u001b[K/usr/local/cuda/targets/x86_64-linux/include/cusparse.h:710:1:\u001b[m\u001b[K \u001b[01;36m\u001b[Knote: \u001b[m\u001b[Kdeclared here\n", | |
" \u001b[01;36m\u001b[KcusparseCsrmvEx_bufferSize\u001b[m\u001b[K(cusparseHandle_t handle,\n", | |
" \u001b[01;36m\u001b[K^~~~~~~~~~~~~~~~~~~~~~~~~~\u001b[m\u001b[K\n", | |
"[ 36%] \u001b[32mBuilding CUDA object algebra/CMakeFiles/osqp_algebra.dir/cuda/src/cuda_handler.cu.o\u001b[0m\n", | |
"[ 42%] \u001b[32mBuilding CUDA object algebra/CMakeFiles/osqp_algebra.dir/cuda/src/cuda_lin_alg.cu.o\u001b[0m\n", | |
"\u001b[01m\u001b[K/content/cuosqp/osqp_sources/algebra/cuda/src/cuda_lin_alg.cu:\u001b[m\u001b[K In function ‘\u001b[01m\u001b[Kvoid cuda_mat_Axpy(const csr*, const c_float*, c_float*, c_float, c_float)\u001b[m\u001b[K’:\n", | |
"\u001b[01m\u001b[K/content/cuosqp/osqp_sources/algebra/cuda/src/cuda_lin_alg.cu:952:271:\u001b[m\u001b[K \u001b[01;35m\u001b[Kwarning: \u001b[m\u001b[K‘\u001b[01m\u001b[KcusparseStatus_t cusparseCsrmvEx(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const void*, cudaDataType, cusparseMatDescr_t, const void*, cudaDataType, const int*, const int*, const void*, cudaDataType, const void*, cudaDataType, void*, cudaDataType, cudaDataType, void*)\u001b[m\u001b[K’ is deprecated: please use cusparseSpMV instead [\u001b[01;35m\u001b[K-Wdeprecated-declarations\u001b[m\u001b[K]\n", | |
" checkCudaErrors(cusparseCsrmvEx(CUDA_handle->cusparseHandle, A->alg,\n", | |
" \u001b[01;35m\u001b[K^\u001b[m\u001b[K\n", | |
"\u001b[01m\u001b[K/usr/local/cuda/targets/x86_64-linux/include/cusparse.h:734:1:\u001b[m\u001b[K \u001b[01;36m\u001b[Knote: \u001b[m\u001b[Kdeclared here\n", | |
" \u001b[01;36m\u001b[KcusparseCsrmvEx\u001b[m\u001b[K(cusparseHandle_t handle,\n", | |
" \u001b[01;36m\u001b[K^~~~~~~~~~~~~~~\u001b[m\u001b[K\n", | |
"[ 47%] \u001b[32mBuilding CUDA object algebra/CMakeFiles/osqp_algebra.dir/cuda/src/cuda_malloc.cu.o\u001b[0m\n", | |
"[ 47%] Built target osqp_algebra\n", | |
"\u001b[35m\u001b[1mScanning dependencies of target osqpstatic\u001b[0m\n", | |
"[ 52%] \u001b[32mBuilding C object CMakeFiles/osqpstatic.dir/src/auxil.c.o\u001b[0m\n", | |
"[ 57%] \u001b[32mBuilding C object CMakeFiles/osqpstatic.dir/src/error.c.o\u001b[0m\n", | |
"[ 63%] \u001b[32mBuilding C object CMakeFiles/osqpstatic.dir/src/osqp_api.c.o\u001b[0m\n", | |
"[ 68%] \u001b[32mBuilding C object CMakeFiles/osqpstatic.dir/src/proj.c.o\u001b[0m\n", | |
"[ 73%] \u001b[32mBuilding C object CMakeFiles/osqpstatic.dir/src/scaling.c.o\u001b[0m\n", | |
"[ 78%] \u001b[32mBuilding C object CMakeFiles/osqpstatic.dir/src/util.c.o\u001b[0m\n", | |
"[ 84%] \u001b[32mBuilding C object CMakeFiles/osqpstatic.dir/src/polish.c.o\u001b[0m\n", | |
"[ 89%] \u001b[32mBuilding C object CMakeFiles/osqpstatic.dir/src/lin_sys.c.o\u001b[0m\n", | |
"[ 94%] \u001b[32mBuilding C object CMakeFiles/osqpstatic.dir/src/ctrlc.c.o\u001b[0m\n", | |
"[100%] \u001b[32m\u001b[1mLinking CUDA static library out/libosqp.a\u001b[0m\n", | |
"[100%] Built target osqpstatic\n", | |
"building 'cuosqp._osqp' extension\n", | |
"creating build/temp.linux-x86_64-3.7\n", | |
"creating build/temp.linux-x86_64-3.7/extension\n", | |
"creating build/temp.linux-x86_64-3.7/extension/src\n", | |
"x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.7-a56wZI/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -g -fdebug-prefix-map=/build/python3.7-a56wZI/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYTHON -Iosqp_sources/include -Iextension/include -I/usr/local/lib/python3.7/dist-packages/numpy/core/include -I/usr/include/python3.7m -c extension/src/osqpmodule.c -o build/temp.linux-x86_64-3.7/extension/src/osqpmodule.o -O3\n", | |
"x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.7-a56wZI/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.7/extension/src/osqpmodule.o extension/src/libosqp.a -L/usr/local/cuda/lib64 -lcublas -lcusparse -lcudart -lrt -o build/lib.linux-x86_64-3.7/cuosqp/_osqp.cpython-37m-x86_64-linux-gnu.so\n", | |
"creating build/bdist.linux-x86_64\n", | |
"creating build/bdist.linux-x86_64/egg\n", | |
"creating build/bdist.linux-x86_64/egg/cuosqp\n", | |
"copying build/lib.linux-x86_64-3.7/cuosqp/_osqp.cpython-37m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg/cuosqp\n", | |
"copying build/lib.linux-x86_64-3.7/cuosqp/__init__.py -> build/bdist.linux-x86_64/egg/cuosqp\n", | |
"copying build/lib.linux-x86_64-3.7/cuosqp/utils.py -> build/bdist.linux-x86_64/egg/cuosqp\n", | |
"copying build/lib.linux-x86_64-3.7/cuosqp/interface.py -> build/bdist.linux-x86_64/egg/cuosqp\n", | |
"creating build/bdist.linux-x86_64/egg/cuosqp/tests\n", | |
"copying build/lib.linux-x86_64-3.7/cuosqp/tests/non_convex_test.py -> build/bdist.linux-x86_64/egg/cuosqp/tests\n", | |
"copying build/lib.linux-x86_64-3.7/cuosqp/tests/unconstrained_test.py -> build/bdist.linux-x86_64/egg/cuosqp/tests\n", | |
"copying build/lib.linux-x86_64-3.7/cuosqp/tests/__init__.py -> build/bdist.linux-x86_64/egg/cuosqp/tests\n", | |
"copying build/lib.linux-x86_64-3.7/cuosqp/tests/basic_test.py -> build/bdist.linux-x86_64/egg/cuosqp/tests\n", | |
"copying build/lib.linux-x86_64-3.7/cuosqp/tests/update_matrices_test.py -> build/bdist.linux-x86_64/egg/cuosqp/tests\n", | |
"copying build/lib.linux-x86_64-3.7/cuosqp/tests/feasibility_test.py -> build/bdist.linux-x86_64/egg/cuosqp/tests\n", | |
"copying build/lib.linux-x86_64-3.7/cuosqp/tests/polishing_test.py -> build/bdist.linux-x86_64/egg/cuosqp/tests\n", | |
"copying build/lib.linux-x86_64-3.7/cuosqp/tests/warm_start_test.py -> build/bdist.linux-x86_64/egg/cuosqp/tests\n", | |
"copying build/lib.linux-x86_64-3.7/cuosqp/tests/primal_infeasibility_test.py -> build/bdist.linux-x86_64/egg/cuosqp/tests\n", | |
"copying build/lib.linux-x86_64-3.7/cuosqp/tests/dual_infeasibility_test.py -> build/bdist.linux-x86_64/egg/cuosqp/tests\n", | |
"byte-compiling build/bdist.linux-x86_64/egg/cuosqp/__init__.py to __init__.cpython-37.pyc\n", | |
"byte-compiling build/bdist.linux-x86_64/egg/cuosqp/utils.py to utils.cpython-37.pyc\n", | |
"byte-compiling build/bdist.linux-x86_64/egg/cuosqp/interface.py to interface.cpython-37.pyc\n", | |
"byte-compiling build/bdist.linux-x86_64/egg/cuosqp/tests/non_convex_test.py to non_convex_test.cpython-37.pyc\n", | |
"byte-compiling build/bdist.linux-x86_64/egg/cuosqp/tests/unconstrained_test.py to unconstrained_test.cpython-37.pyc\n", | |
"byte-compiling build/bdist.linux-x86_64/egg/cuosqp/tests/__init__.py to __init__.cpython-37.pyc\n", | |
"byte-compiling build/bdist.linux-x86_64/egg/cuosqp/tests/basic_test.py to basic_test.cpython-37.pyc\n", | |
"byte-compiling build/bdist.linux-x86_64/egg/cuosqp/tests/update_matrices_test.py to update_matrices_test.cpython-37.pyc\n", | |
"byte-compiling build/bdist.linux-x86_64/egg/cuosqp/tests/feasibility_test.py to feasibility_test.cpython-37.pyc\n", | |
"byte-compiling build/bdist.linux-x86_64/egg/cuosqp/tests/polishing_test.py to polishing_test.cpython-37.pyc\n", | |
"byte-compiling build/bdist.linux-x86_64/egg/cuosqp/tests/warm_start_test.py to warm_start_test.cpython-37.pyc\n", | |
"byte-compiling build/bdist.linux-x86_64/egg/cuosqp/tests/primal_infeasibility_test.py to primal_infeasibility_test.cpython-37.pyc\n", | |
"byte-compiling build/bdist.linux-x86_64/egg/cuosqp/tests/dual_infeasibility_test.py to dual_infeasibility_test.cpython-37.pyc\n", | |
"creating stub loader for cuosqp/_osqp.cpython-37m-x86_64-linux-gnu.so\n", | |
"byte-compiling build/bdist.linux-x86_64/egg/cuosqp/_osqp.py to _osqp.cpython-37.pyc\n", | |
"creating build/bdist.linux-x86_64/egg/EGG-INFO\n", | |
"copying cuosqp.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO\n", | |
"copying cuosqp.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO\n", | |
"copying cuosqp.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO\n", | |
"copying cuosqp.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO\n", | |
"copying cuosqp.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO\n", | |
"writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt\n", | |
"zip_safe flag not set; analyzing archive contents...\n", | |
"cuosqp.__pycache__._osqp.cpython-37: module references __file__\n", | |
"creating dist\n", | |
"creating 'dist/cuosqp-0.1.0-py3.7-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it\n", | |
"removing 'build/bdist.linux-x86_64/egg' (and everything under it)\n", | |
"Processing cuosqp-0.1.0-py3.7-linux-x86_64.egg\n", | |
"creating /usr/local/lib/python3.7/dist-packages/cuosqp-0.1.0-py3.7-linux-x86_64.egg\n", | |
"Extracting cuosqp-0.1.0-py3.7-linux-x86_64.egg to /usr/local/lib/python3.7/dist-packages\n", | |
"Adding cuosqp 0.1.0 to easy-install.pth file\n", | |
"\n", | |
"Installed /usr/local/lib/python3.7/dist-packages/cuosqp-0.1.0-py3.7-linux-x86_64.egg\n", | |
"Processing dependencies for cuosqp==0.1.0\n", | |
"Searching for scipy==1.4.1\n", | |
"Best match: scipy 1.4.1\n", | |
"Adding scipy 1.4.1 to easy-install.pth file\n", | |
"\n", | |
"Using /usr/local/lib/python3.7/dist-packages\n", | |
"Searching for numpy==1.19.5\n", | |
"Best match: numpy 1.19.5\n", | |
"Adding numpy 1.19.5 to easy-install.pth file\n", | |
"Installing f2py script to /usr/local/bin\n", | |
"Installing f2py3 script to /usr/local/bin\n", | |
"Installing f2py3.7 script to /usr/local/bin\n", | |
"\n", | |
"Using /usr/local/lib/python3.7/dist-packages\n", | |
"Finished processing dependencies for cuosqp==0.1.0\n" | |
], | |
"name": "stdout" | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "F5zPuuHrEYcc", | |
"outputId": "68207683-3f84-4ec1-d201-c4eb6ecd8723" | |
}, | |
"source": [ | |
"pip install nose" | |
], | |
"execution_count": 4, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": [ | |
"Collecting nose\n", | |
"\u001b[?25l Downloading https://files.pythonhosted.org/packages/15/d8/dd071918c040f50fa1cf80da16423af51ff8ce4a0f2399b7bf8de45ac3d9/nose-1.3.7-py3-none-any.whl (154kB)\n", | |
"\r\u001b[K |██▏ | 10kB 20.6MB/s eta 0:00:01\r\u001b[K |████▎ | 20kB 16.4MB/s eta 0:00:01\r\u001b[K |██████▍ | 30kB 9.9MB/s eta 0:00:01\r\u001b[K |████████▌ | 40kB 8.2MB/s eta 0:00:01\r\u001b[K |██████████▋ | 51kB 8.9MB/s eta 0:00:01\r\u001b[K |████████████▊ | 61kB 8.2MB/s eta 0:00:01\r\u001b[K |██████████████▉ | 71kB 9.0MB/s eta 0:00:01\r\u001b[K |█████████████████ | 81kB 8.7MB/s eta 0:00:01\r\u001b[K |███████████████████ | 92kB 8.2MB/s eta 0:00:01\r\u001b[K |█████████████████████▏ | 102kB 8.5MB/s eta 0:00:01\r\u001b[K |███████████████████████▎ | 112kB 8.5MB/s eta 0:00:01\r\u001b[K |█████████████████████████▍ | 122kB 8.5MB/s eta 0:00:01\r\u001b[K |███████████████████████████▌ | 133kB 8.5MB/s eta 0:00:01\r\u001b[K |█████████████████████████████▋ | 143kB 8.5MB/s eta 0:00:01\r\u001b[K |███████████████████████████████▊| 153kB 8.5MB/s eta 0:00:01\r\u001b[K |████████████████████████████████| 163kB 8.5MB/s \n", | |
"\u001b[?25hInstalling collected packages: nose\n", | |
"Successfully installed nose-1.3.7\n" | |
], | |
"name": "stdout" | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "egDpWylJEaZT", | |
"outputId": "e8d02536-ea31-48c7-ef78-a86f0cad423a" | |
}, | |
"source": [ | |
"!git clone https://github.com/carrascomj/optlang.git && cd optlang && git checkout -b feature/osqp --track origin/feature/osqp && python -m nose src/optlang/tests -v" | |
], | |
"execution_count": 5, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": [ | |
"Cloning into 'optlang'...\n", | |
"remote: Enumerating objects: 98, done.\u001b[K\n", | |
"remote: Counting objects: 100% (98/98), done.\u001b[K\n", | |
"remote: Compressing objects: 100% (33/33), done.\u001b[K\n", | |
"remote: Total 3807 (delta 47), reused 89 (delta 46), pack-reused 3709\u001b[K\n", | |
"Receiving objects: 100% (3807/3807), 9.60 MiB | 10.69 MiB/s, done.\n", | |
"Resolving deltas: 100% (2650/2650), done.\n", | |
"Branch 'feature/osqp' set up to track remote branch 'feature/osqp' from 'origin'.\n", | |
"Switched to a new branch 'feature/osqp'\n", | |
"test_fail (optlang.tests.test_change_solver.TestMissingDependency) ... SKIP: Missing dependency - No module named 'cplex'\n", | |
"test_add_already_existing_item_raises (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_change_object_name (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_clear (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_container_append (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_container_from_iterable (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_container_from_iterable_with_items_without_name_attribute_raise (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_del_by_index (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_del_by_key (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_dir (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_extend (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_fromkeys (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_get (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_getattr (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_has_key (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_iter_container_len_change_raises (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_iteritems (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_iterkeys (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_itervalues (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_keys (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_non_name_item_raises (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_pickle (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_setitem (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_values (optlang.tests.test_container.ContainerTestCase) ... ok\n", | |
"test_fail (optlang.tests.test_cplex_interface.TestMissingDependency) ... SKIP: Missing dependency - No module named 'cplex'\n", | |
"test_dual_is_standard_form (optlang.tests.test_duality.DualityTestCase) ... Scaling...\n", | |
" A: min|aij| = 1.000e+00 max|aij| = 1.000e+00 ratio = 1.000e+00\n", | |
"Problem data seem to be well scaled\n", | |
"ok\n", | |
"test_dual_value_equal_primal (optlang.tests.test_duality.DualityTestCase) ... ok\n", | |
"test_empty_constraint (optlang.tests.test_duality.DualityTestCase) ... ok\n", | |
"test_equality_constraint_not_zero (optlang.tests.test_duality.DualityTestCase) ... ok\n", | |
"test_explicit_model (optlang.tests.test_duality.DualityTestCase) ... ok\n", | |
"test_free_constraint (optlang.tests.test_duality.DualityTestCase) ... ok\n", | |
"test_infinity (optlang.tests.test_duality.DualityTestCase) ... ok\n", | |
"test_making_primal_infeasible (optlang.tests.test_duality.DualityTestCase) ... ok\n", | |
"test_making_primal_unbounded (optlang.tests.test_duality.DualityTestCase) ... ok\n", | |
"test_non_continuous_raises (optlang.tests.test_duality.DualityTestCase) ... ok\n", | |
"test_non_linear_raises (optlang.tests.test_duality.DualityTestCase) ... ok\n", | |
"test_non_standard_raises (optlang.tests.test_duality.DualityTestCase) ... ok\n", | |
"test_variable_with_positive_lower_bound (optlang.tests.test_duality.DualityTestCase) ... ok\n", | |
"test_variable_with_upper_bound (optlang.tests.test_duality.DualityTestCase) ... ok\n", | |
"test_with_minimization (optlang.tests.test_duality.DualityTestCase) ... ok\n", | |
"test_zero_bound_variable (optlang.tests.test_duality.DualityTestCase) ... ok\n", | |
"test_canonicalization_with_lb (optlang.tests.test_elements.ConstraintTestCase) ... ok\n", | |
"test_canonicalization_with_lb_and_ub (optlang.tests.test_elements.ConstraintTestCase) ... ok\n", | |
"test_canonicalization_with_ub (optlang.tests.test_elements.ConstraintTestCase) ... ok\n", | |
"test_catching_nonlinear_expressions (optlang.tests.test_elements.ConstraintTestCase) ... ok\n", | |
"test_is_Linear (optlang.tests.test_elements.ConstraintTestCase) ... ok\n", | |
"test_is_Quadratic_pow (optlang.tests.test_elements.ConstraintTestCase) ... ok\n", | |
"test_is_Quadratic_xy (optlang.tests.test_elements.ConstraintTestCase) ... ok\n", | |
"test_lonely_coefficient_and_no_bounds_raises (optlang.tests.test_elements.ConstraintTestCase) ... ok\n", | |
"test_change_lb (optlang.tests.test_elements.VariableTestCase) ... ok\n", | |
"test_change_problem (optlang.tests.test_elements.VariableTestCase) ... ok\n", | |
"test_change_type (optlang.tests.test_elements.VariableTestCase) ... ok\n", | |
"test_change_ub (optlang.tests.test_elements.VariableTestCase) ... ok\n", | |
"test_init (optlang.tests.test_elements.VariableTestCase) ... ok\n", | |
"test_lb_greater_than_ub_raises (optlang.tests.test_elements.VariableTestCase) ... ok\n", | |
"test_pickle_ability (optlang.tests.test_elements.VariableTestCase) ... ok\n", | |
"test_ub_smaller_than_lb_raises (optlang.tests.test_elements.VariableTestCase) ... ok\n", | |
"test_white_space_name_raises (optlang.tests.test_elements.VariableTestCase) ... ok\n", | |
"test_parse_linear_expression (optlang.tests.test_expression_parsing.ExpressionParsingTestCase) ... ok\n", | |
"test_parse_non_expanded_quadratic_expression (optlang.tests.test_expression_parsing.ExpressionParsingTestCase) ... ok\n", | |
"test_parse_quadratic_expression (optlang.tests.test_expression_parsing.ExpressionParsingTestCase) ... ok\n", | |
"test_tolerance_parameters (optlang.tests.test_glpk_exact_interface.ConfigurationTestCase) ... ok\n", | |
"test_change_constraint_name (optlang.tests.test_glpk_exact_interface.ConstraintTestCase) ... ok\n", | |
"test_constraint_get_linear_coefficients_raises (optlang.tests.test_glpk_exact_interface.ConstraintTestCase) ... ok\n", | |
"test_constraint_set_linear_coefficients_raises (optlang.tests.test_glpk_exact_interface.ConstraintTestCase) ... ok\n", | |
"test_construct_with_sloppy (optlang.tests.test_glpk_exact_interface.ConstraintTestCase) ... ok\n", | |
"test_get_dual (optlang.tests.test_glpk_exact_interface.ConstraintTestCase) ... ok\n", | |
"test_get_primal (optlang.tests.test_glpk_exact_interface.ConstraintTestCase) ... ok\n", | |
"test_indicator_constraint_support (optlang.tests.test_glpk_exact_interface.ConstraintTestCase) ... SKIP: NA\n", | |
"test_invalid_name_raises (optlang.tests.test_glpk_exact_interface.ConstraintTestCase) ... ok\n", | |
"test_move_constant_to_rhs (optlang.tests.test_glpk_exact_interface.ConstraintTestCase) ... ok\n", | |
"test_new_invalid_name_raises (optlang.tests.test_glpk_exact_interface.ConstraintTestCase) ... ok\n", | |
"test_set_constraint_bounds_to_none (optlang.tests.test_glpk_exact_interface.ConstraintTestCase) ... ok\n", | |
"test_setting_bounds (optlang.tests.test_glpk_exact_interface.ConstraintTestCase) ... ok\n", | |
"test_setting_lower_bound_higher_than_upper_bound_raises (optlang.tests.test_glpk_exact_interface.ConstraintTestCase) ... ok\n", | |
"test_setting_nonnumerical_bounds_raises (optlang.tests.test_glpk_exact_interface.ConstraintTestCase) ... ok\n", | |
"test_add_constraints (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_add_integer_var (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_add_non_cplex_conform_variable (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_add_nonlinear_constraint_raises (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_add_variable (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_binary_variables (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... SKIP: No integers with glpk_exact\n", | |
"test_change_constraint_bounds (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_change_constraint_name (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_change_objective (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_change_objective_can_handle_removed_vars (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_change_of_constraint_is_reflected_in_low_level_solver (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_change_of_objective_is_reflected_in_low_level_solver (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_change_variable_bounds (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_change_variable_type (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_clone_model_with_json (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
" 0: obj = -0.000000000e+00 inf = 1.080e+09 (47)\n", | |
"Perturbing LP to avoid instability [73]...\n", | |
" 73: obj = -0.000000000e+00 inf = 2.104e-07 (0)\n", | |
"LP HAS NO PRIMAL FEASIBLE SOLUTION\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
"Preprocessing...\n", | |
"54 rows, 66 columns, 302 non-zeros\n", | |
"Scaling...\n", | |
" A: min|aij| = 7.090e-02 max|aij| = 5.981e+01 ratio = 8.436e+02\n", | |
"GM: min|aij| = 1.856e-01 max|aij| = 5.389e+00 ratio = 2.904e+01\n", | |
"EQ: min|aij| = 3.443e-02 max|aij| = 1.000e+00 ratio = 2.904e+01\n", | |
"Constructing initial basis...\n", | |
"Size of triangular part is 46\n", | |
" 73: obj = -0.000000000e+00 inf = 3.007e+08 (26)\n", | |
" 116: obj = -0.000000000e+00 inf = 5.937e-09 (0)\n", | |
"* 121: obj = 8.739215067e-01 inf = 5.161e-09 (0)\n", | |
"OPTIMAL LP SOLUTION FOUND\n", | |
"glp_exact: 72 rows, 95 columns, 360 non-zeros\n", | |
"GNU MP bignum library is being used\n", | |
"* 121: objval = 0.873921506978249 (5)\n", | |
"* 121: objval = 0.873921506978249 (5)\n", | |
"OPTIMAL SOLUTION FOUND\n", | |
"Scaling...\n", | |
" A: min|aij| = 1.000e+00 max|aij| = 1.000e+00 ratio = 1.000e+00\n", | |
"Problem data seem to be well scaled\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
" 0: obj = -0.000000000e+00 inf = 1.080e+09 (47)\n", | |
"Perturbing LP to avoid instability [73]...\n", | |
" 73: obj = -0.000000000e+00 inf = 2.104e-07 (0)\n", | |
"LP HAS NO PRIMAL FEASIBLE SOLUTION\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
"Preprocessing...\n", | |
"54 rows, 66 columns, 302 non-zeros\n", | |
"Scaling...\n", | |
" A: min|aij| = 7.090e-02 max|aij| = 5.981e+01 ratio = 8.436e+02\n", | |
"GM: min|aij| = 1.856e-01 max|aij| = 5.389e+00 ratio = 2.904e+01\n", | |
"EQ: min|aij| = 3.443e-02 max|aij| = 1.000e+00 ratio = 2.904e+01\n", | |
"Constructing initial basis...\n", | |
"Size of triangular part is 46\n", | |
" 73: obj = -0.000000000e+00 inf = 3.007e+08 (26)\n", | |
" 116: obj = -0.000000000e+00 inf = 5.937e-09 (0)\n", | |
"* 121: obj = 8.739215067e-01 inf = 5.161e-09 (0)\n", | |
"OPTIMAL LP SOLUTION FOUND\n", | |
"glp_exact: 72 rows, 95 columns, 360 non-zeros\n", | |
"GNU MP bignum library is being used\n", | |
"* 121: objval = 0.873921506978249 (5)\n", | |
"* 121: objval = 0.873921506978249 (5)\n", | |
"OPTIMAL SOLUTION FOUND\n", | |
"ok\n", | |
"test_clone_model_with_lp (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... Scaling...\n", | |
" A: min|aij| = 1.000e+00 max|aij| = 1.000e+00 ratio = 1.000e+00\n", | |
"Problem data seem to be well scaled\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
" 0: obj = -0.000000000e+00 inf = 1.080e+09 (47)\n", | |
"Perturbing LP to avoid instability [73]...\n", | |
" 73: obj = -0.000000000e+00 inf = 2.104e-07 (0)\n", | |
"LP HAS NO PRIMAL FEASIBLE SOLUTION\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
"Preprocessing...\n", | |
"54 rows, 66 columns, 302 non-zeros\n", | |
"Scaling...\n", | |
" A: min|aij| = 7.090e-02 max|aij| = 5.981e+01 ratio = 8.436e+02\n", | |
"GM: min|aij| = 1.856e-01 max|aij| = 5.389e+00 ratio = 2.904e+01\n", | |
"EQ: min|aij| = 3.443e-02 max|aij| = 1.000e+00 ratio = 2.904e+01\n", | |
"Constructing initial basis...\n", | |
"Size of triangular part is 46\n", | |
" 73: obj = -0.000000000e+00 inf = 3.007e+08 (26)\n", | |
" 116: obj = -0.000000000e+00 inf = 5.937e-09 (0)\n", | |
"* 121: obj = 8.739215067e-01 inf = 5.161e-09 (0)\n", | |
"OPTIMAL LP SOLUTION FOUND\n", | |
"glp_exact: 72 rows, 95 columns, 360 non-zeros\n", | |
"GNU MP bignum library is being used\n", | |
"* 121: objval = 0.873921506978249 (5)\n", | |
"* 121: objval = 0.873921506978249 (5)\n", | |
"OPTIMAL SOLUTION FOUND\n", | |
"/content/optlang/src/optlang/interface.py:1135: UserWarning: Cloning with LP formats can change variable and constraint ID's.\n", | |
" warnings.warn(\"Cloning with LP formats can change variable and constraint ID's.\")\n", | |
"Writing problem data to '/tmp/tmpbxewon_a.lp'...\n", | |
"213 lines were written\n", | |
"Reading problem data from '/tmp/tmpdd6u6qp1.lp'...\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
"213 lines were read\n", | |
"Scaling...\n", | |
" A: min|aij| = 7.090e-02 max|aij| = 5.981e+01 ratio = 8.436e+02\n", | |
"GM: min|aij| = 1.856e-01 max|aij| = 5.389e+00 ratio = 2.904e+01\n", | |
"EQ: min|aij| = 3.443e-02 max|aij| = 1.000e+00 ratio = 2.904e+01\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
" 0: obj = -0.000000000e+00 inf = 2.947e+08 (47)\n", | |
" 95: obj = -0.000000000e+00 inf = 7.495e-09 (0)\n", | |
"* 99: obj = 8.739215069e-01 inf = 1.409e-08 (0)\n", | |
"OPTIMAL LP SOLUTION FOUND\n", | |
"glp_exact: 72 rows, 95 columns, 360 non-zeros\n", | |
"GNU MP bignum library is being used\n", | |
"* 99: objval = 0.873921506978249 (5)\n", | |
"* 99: objval = 0.873921506978249 (5)\n", | |
"OPTIMAL SOLUTION FOUND\n", | |
"ok\n", | |
"test_clone_model_without_json (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... Scaling...\n", | |
" A: min|aij| = 1.000e+00 max|aij| = 1.000e+00 ratio = 1.000e+00\n", | |
"Problem data seem to be well scaled\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
" 0: obj = -0.000000000e+00 inf = 1.080e+09 (47)\n", | |
"Perturbing LP to avoid instability [73]...\n", | |
" 73: obj = -0.000000000e+00 inf = 2.104e-07 (0)\n", | |
"LP HAS NO PRIMAL FEASIBLE SOLUTION\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
"Preprocessing...\n", | |
"54 rows, 66 columns, 302 non-zeros\n", | |
"Scaling...\n", | |
" A: min|aij| = 7.090e-02 max|aij| = 5.981e+01 ratio = 8.436e+02\n", | |
"GM: min|aij| = 1.856e-01 max|aij| = 5.389e+00 ratio = 2.904e+01\n", | |
"EQ: min|aij| = 3.443e-02 max|aij| = 1.000e+00 ratio = 2.904e+01\n", | |
"Constructing initial basis...\n", | |
"Size of triangular part is 46\n", | |
" 73: obj = -0.000000000e+00 inf = 3.007e+08 (26)\n", | |
" 116: obj = -0.000000000e+00 inf = 5.937e-09 (0)\n", | |
"* 121: obj = 8.739215067e-01 inf = 5.161e-09 (0)\n", | |
"OPTIMAL LP SOLUTION FOUND\n", | |
"glp_exact: 72 rows, 95 columns, 360 non-zeros\n", | |
"GNU MP bignum library is being used\n", | |
"* 121: objval = 0.873921506978249 (5)\n", | |
"* 121: objval = 0.873921506978249 (5)\n", | |
"OPTIMAL SOLUTION FOUND\n", | |
"Scaling...\n", | |
" A: min|aij| = 1.000e+00 max|aij| = 1.000e+00 ratio = 1.000e+00\n", | |
"Problem data seem to be well scaled\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
" 0: obj = -0.000000000e+00 inf = 1.080e+09 (47)\n", | |
"Perturbing LP to avoid instability [73]...\n", | |
" 73: obj = -0.000000000e+00 inf = 2.104e-07 (0)\n", | |
"LP HAS NO PRIMAL FEASIBLE SOLUTION\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
"Preprocessing...\n", | |
"54 rows, 66 columns, 302 non-zeros\n", | |
"Scaling...\n", | |
" A: min|aij| = 7.090e-02 max|aij| = 5.981e+01 ratio = 8.436e+02\n", | |
"GM: min|aij| = 1.856e-01 max|aij| = 5.389e+00 ratio = 2.904e+01\n", | |
"EQ: min|aij| = 3.443e-02 max|aij| = 1.000e+00 ratio = 2.904e+01\n", | |
"Constructing initial basis...\n", | |
"Size of triangular part is 46\n", | |
" 73: obj = -0.000000000e+00 inf = 3.007e+08 (26)\n", | |
" 116: obj = -0.000000000e+00 inf = 5.937e-09 (0)\n", | |
"* 121: obj = 8.739215067e-01 inf = 5.161e-09 (0)\n", | |
"OPTIMAL LP SOLUTION FOUND\n", | |
"glp_exact: 72 rows, 95 columns, 360 non-zeros\n", | |
"GNU MP bignum library is being used\n", | |
"* 121: objval = 0.873921506978249 (5)\n", | |
"* 121: objval = 0.873921506978249 (5)\n", | |
"OPTIMAL SOLUTION FOUND\n", | |
"ok\n", | |
"test_config_gets_copied_too (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... Scaling...\n", | |
" A: min|aij| = 1.000e+00 max|aij| = 1.000e+00 ratio = 1.000e+00\n", | |
"Problem data seem to be well scaled\n", | |
"Writing problem data to '/tmp/tmp69dye7gr.glpk'...\n", | |
"625 lines were written\n", | |
"Reading problem data from '/tmp/tmpraidhcay.glpk'...\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
"625 lines were read\n", | |
"Scaling...\n", | |
" A: min|aij| = 7.090e-02 max|aij| = 5.981e+01 ratio = 8.436e+02\n", | |
"GM: min|aij| = 1.856e-01 max|aij| = 5.389e+00 ratio = 2.904e+01\n", | |
"EQ: min|aij| = 3.443e-02 max|aij| = 1.000e+00 ratio = 2.904e+01\n", | |
"ok\n", | |
"test_constraint_get_linear_coefficients (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... Scaling...\n", | |
" A: min|aij| = 1.000e+00 max|aij| = 1.000e+00 ratio = 1.000e+00\n", | |
"Problem data seem to be well scaled\n", | |
"ok\n", | |
"test_constraint_set_linear_coefficients (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_constraint_set_problem_to_None_caches_the_latest_expression_from_solver_instance (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_copy (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_create_empty_model (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_deepcopy (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_dual_values (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_iadd_objective (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_implicitly_convert_milp_to_lp (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... SKIP: No integers with glpk_exact\n", | |
"test_imul_objective (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_init_from_existing_problem (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_initial_objective (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_instantiating_model_with_different_solver_problem_raises (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_integer_batch_duals (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... SKIP: No integers with glpk_exact\n", | |
"test_integer_constraint_dual (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... SKIP: No integers with glpk_exact\n", | |
"test_integer_variable_dual (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... SKIP: No integers with glpk_exact\n", | |
"test_is_integer (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... SKIP: No integers with glpk_exact\n", | |
"test_large_objective (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_number_objective (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_objective_expression_includes_constant (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_objective_get_linear_coefficients (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_objective_handles_constants_2 (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_objective_set_linear_coefficients (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_optimize (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_optimize_milp (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... SKIP: No integers with glpk_exact\n", | |
"test_pickle_ability (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_pickle_empty_model (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_primal_values (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"Test that an exception is raised when a non-linear objective is added to the model. ... ok\n", | |
"test_reduced_costs (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_remove_constraints (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_remove_variable (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_remove_variable_not_in_model_raises (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_remove_variable_str (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_set_copied_objective (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_set_linear_coefficients_constraint (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_set_linear_coefficients_objective (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_set_objective_in_constructor (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_shadow_prices (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_timeout (optlang.tests.test_glpk_exact_interface.ModelTestCase) ... ok\n", | |
"test_change_direction (optlang.tests.test_glpk_exact_interface.ObjectiveTestCase) ... ok\n", | |
"test_construct_with_sloppy (optlang.tests.test_glpk_exact_interface.ObjectiveTestCase) ... ok\n", | |
"test_invalid_name_raises (optlang.tests.test_glpk_exact_interface.ObjectiveTestCase) ... ok\n", | |
"test_new_invalid_name_raises (optlang.tests.test_glpk_exact_interface.ObjectiveTestCase) ... ok\n", | |
"test_objective_get_linear_coefficients_raises (optlang.tests.test_glpk_exact_interface.ObjectiveTestCase) ... ok\n", | |
"test_objective_set_linear_coefficients_raises (optlang.tests.test_glpk_exact_interface.ObjectiveTestCase) ... ok\n", | |
"test_objective_value_is_none (optlang.tests.test_glpk_exact_interface.ObjectiveTestCase) ... ok\n", | |
"test_change_name (optlang.tests.test_glpk_exact_interface.VariableTestCase) ... ok\n", | |
"test_change_type (optlang.tests.test_glpk_exact_interface.VariableTestCase) ... ok\n", | |
"test_changing_variable_names_is_reflected_in_the_solver (optlang.tests.test_glpk_exact_interface.VariableTestCase) ... ok\n", | |
"test_get_dual (optlang.tests.test_glpk_exact_interface.VariableTestCase) ... ok\n", | |
"test_get_primal (optlang.tests.test_glpk_exact_interface.VariableTestCase) ... ok\n", | |
"test_invalid_name_raises (optlang.tests.test_glpk_exact_interface.VariableTestCase) ... ok\n", | |
"test_magic (optlang.tests.test_glpk_exact_interface.VariableTestCase) ... SKIP: Abstract test method not implemented.\n", | |
"test_new_invalid_name_raises (optlang.tests.test_glpk_exact_interface.VariableTestCase) ... ok\n", | |
"test_non_string_name_raises (optlang.tests.test_glpk_exact_interface.VariableTestCase) ... ok\n", | |
"test_set_bounds_method (optlang.tests.test_glpk_exact_interface.VariableTestCase) ... ok\n", | |
"test_set_bounds_to_none (optlang.tests.test_glpk_exact_interface.VariableTestCase) ... ok\n", | |
"test_set_wrong_type_raises (optlang.tests.test_glpk_exact_interface.VariableTestCase) ... ok\n", | |
"test_setting_bounds (optlang.tests.test_glpk_exact_interface.VariableTestCase) ... ok\n", | |
"test_setting_lower_bound_higher_than_upper_bound_raises (optlang.tests.test_glpk_exact_interface.VariableTestCase) ... ok\n", | |
"test_setting_nonnumerical_bounds_raises (optlang.tests.test_glpk_exact_interface.VariableTestCase) ... ok\n", | |
"test_clone (optlang.tests.test_glpk_interface.ConfigurationTestCase) ... ok\n", | |
"test_pickle_ability (optlang.tests.test_glpk_interface.ConfigurationTestCase) ... ok\n", | |
"test_tolerance_parameters (optlang.tests.test_glpk_interface.ConfigurationTestCase) ... ok\n", | |
"test_change_constraint_name (optlang.tests.test_glpk_interface.ConstraintTestCase) ... ok\n", | |
"test_constraint_get_linear_coefficients_raises (optlang.tests.test_glpk_interface.ConstraintTestCase) ... ok\n", | |
"test_constraint_index (optlang.tests.test_glpk_interface.ConstraintTestCase) ... ok\n", | |
"test_constraint_set_linear_coefficients_raises (optlang.tests.test_glpk_interface.ConstraintTestCase) ... ok\n", | |
"test_construct_with_sloppy (optlang.tests.test_glpk_interface.ConstraintTestCase) ... ok\n", | |
"test_get_dual (optlang.tests.test_glpk_interface.ConstraintTestCase) ... ok\n", | |
"test_get_primal (optlang.tests.test_glpk_interface.ConstraintTestCase) ... ok\n", | |
"test_indicator_constraint_support (optlang.tests.test_glpk_interface.ConstraintTestCase) ... ok\n", | |
"test_invalid_name_raises (optlang.tests.test_glpk_interface.ConstraintTestCase) ... ok\n", | |
"test_move_constant_to_rhs (optlang.tests.test_glpk_interface.ConstraintTestCase) ... ok\n", | |
"test_new_invalid_name_raises (optlang.tests.test_glpk_interface.ConstraintTestCase) ... ok\n", | |
"test_set_constraint_bounds_to_none (optlang.tests.test_glpk_interface.ConstraintTestCase) ... ok\n", | |
"test_setting_bounds (optlang.tests.test_glpk_interface.ConstraintTestCase) ... ok\n", | |
"test_setting_lower_bound_higher_than_upper_bound_raises (optlang.tests.test_glpk_interface.ConstraintTestCase) ... ok\n", | |
"test_setting_nonnumerical_bounds_raises (optlang.tests.test_glpk_interface.ConstraintTestCase) ... ok\n", | |
"test_add_constraints (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_add_integer_var (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_add_non_cplex_conform_variable (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_add_nonlinear_constraint_raises (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_add_variable (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_binary_variables (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_change_constraint_bounds (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_change_constraint_name (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_change_objective (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_change_objective_can_handle_removed_vars (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_change_of_constraint_is_reflected_in_low_level_solver (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_change_of_objective_is_reflected_in_low_level_solver (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_change_variable_bounds (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_change_variable_type (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_clone_model_with_json (optlang.tests.test_glpk_interface.ModelTestCase) ... GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
" 0: obj = -0.000000000e+00 inf = 1.080e+09 (47)\n", | |
"Perturbing LP to avoid instability [73]...\n", | |
" 73: obj = -0.000000000e+00 inf = 2.104e-07 (0)\n", | |
"LP HAS NO PRIMAL FEASIBLE SOLUTION\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
"Preprocessing...\n", | |
"54 rows, 66 columns, 302 non-zeros\n", | |
"Scaling...\n", | |
" A: min|aij| = 7.090e-02 max|aij| = 5.981e+01 ratio = 8.436e+02\n", | |
"GM: min|aij| = 1.856e-01 max|aij| = 5.389e+00 ratio = 2.904e+01\n", | |
"EQ: min|aij| = 3.443e-02 max|aij| = 1.000e+00 ratio = 2.904e+01\n", | |
"Constructing initial basis...\n", | |
"Size of triangular part is 46\n", | |
" 73: obj = -0.000000000e+00 inf = 3.007e+08 (26)\n", | |
" 116: obj = -0.000000000e+00 inf = 5.937e-09 (0)\n", | |
"* 121: obj = 8.739215067e-01 inf = 5.161e-09 (0)\n", | |
"OPTIMAL LP SOLUTION FOUND\n", | |
"Scaling...\n", | |
" A: min|aij| = 1.000e+00 max|aij| = 1.000e+00 ratio = 1.000e+00\n", | |
"Problem data seem to be well scaled\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
" 0: obj = -0.000000000e+00 inf = 1.080e+09 (47)\n", | |
"Perturbing LP to avoid instability [73]...\n", | |
" 73: obj = -0.000000000e+00 inf = 2.104e-07 (0)\n", | |
"LP HAS NO PRIMAL FEASIBLE SOLUTION\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
"Preprocessing...\n", | |
"54 rows, 66 columns, 302 non-zeros\n", | |
"Scaling...\n", | |
" A: min|aij| = 7.090e-02 max|aij| = 5.981e+01 ratio = 8.436e+02\n", | |
"GM: min|aij| = 1.856e-01 max|aij| = 5.389e+00 ratio = 2.904e+01\n", | |
"EQ: min|aij| = 3.443e-02 max|aij| = 1.000e+00 ratio = 2.904e+01\n", | |
"Constructing initial basis...\n", | |
"Size of triangular part is 46\n", | |
" 73: obj = -0.000000000e+00 inf = 3.007e+08 (26)\n", | |
" 116: obj = -0.000000000e+00 inf = 5.937e-09 (0)\n", | |
"* 121: obj = 8.739215067e-01 inf = 5.161e-09 (0)\n", | |
"OPTIMAL LP SOLUTION FOUND\n", | |
"ok\n", | |
"test_clone_model_with_lp (optlang.tests.test_glpk_interface.ModelTestCase) ... Scaling...\n", | |
" A: min|aij| = 1.000e+00 max|aij| = 1.000e+00 ratio = 1.000e+00\n", | |
"Problem data seem to be well scaled\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
" 0: obj = -0.000000000e+00 inf = 1.080e+09 (47)\n", | |
"Perturbing LP to avoid instability [73]...\n", | |
" 73: obj = -0.000000000e+00 inf = 2.104e-07 (0)\n", | |
"LP HAS NO PRIMAL FEASIBLE SOLUTION\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
"Preprocessing...\n", | |
"54 rows, 66 columns, 302 non-zeros\n", | |
"Scaling...\n", | |
" A: min|aij| = 7.090e-02 max|aij| = 5.981e+01 ratio = 8.436e+02\n", | |
"GM: min|aij| = 1.856e-01 max|aij| = 5.389e+00 ratio = 2.904e+01\n", | |
"EQ: min|aij| = 3.443e-02 max|aij| = 1.000e+00 ratio = 2.904e+01\n", | |
"Constructing initial basis...\n", | |
"Size of triangular part is 46\n", | |
" 73: obj = -0.000000000e+00 inf = 3.007e+08 (26)\n", | |
" 116: obj = -0.000000000e+00 inf = 5.937e-09 (0)\n", | |
"* 121: obj = 8.739215067e-01 inf = 5.161e-09 (0)\n", | |
"OPTIMAL LP SOLUTION FOUND\n", | |
"Writing problem data to '/tmp/tmp4kvxjcbv.lp'...\n", | |
"213 lines were written\n", | |
"Reading problem data from '/tmp/tmpd6afkl0z.lp'...\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
"213 lines were read\n", | |
"Scaling...\n", | |
" A: min|aij| = 7.090e-02 max|aij| = 5.981e+01 ratio = 8.436e+02\n", | |
"GM: min|aij| = 1.856e-01 max|aij| = 5.389e+00 ratio = 2.904e+01\n", | |
"EQ: min|aij| = 3.443e-02 max|aij| = 1.000e+00 ratio = 2.904e+01\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
" 0: obj = -0.000000000e+00 inf = 2.947e+08 (47)\n", | |
" 95: obj = -0.000000000e+00 inf = 7.495e-09 (0)\n", | |
"* 99: obj = 8.739215069e-01 inf = 1.409e-08 (0)\n", | |
"OPTIMAL LP SOLUTION FOUND\n", | |
"ok\n", | |
"test_clone_model_without_json (optlang.tests.test_glpk_interface.ModelTestCase) ... Scaling...\n", | |
" A: min|aij| = 1.000e+00 max|aij| = 1.000e+00 ratio = 1.000e+00\n", | |
"Problem data seem to be well scaled\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
" 0: obj = -0.000000000e+00 inf = 1.080e+09 (47)\n", | |
"Perturbing LP to avoid instability [73]...\n", | |
" 73: obj = -0.000000000e+00 inf = 2.104e-07 (0)\n", | |
"LP HAS NO PRIMAL FEASIBLE SOLUTION\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
"Preprocessing...\n", | |
"54 rows, 66 columns, 302 non-zeros\n", | |
"Scaling...\n", | |
" A: min|aij| = 7.090e-02 max|aij| = 5.981e+01 ratio = 8.436e+02\n", | |
"GM: min|aij| = 1.856e-01 max|aij| = 5.389e+00 ratio = 2.904e+01\n", | |
"EQ: min|aij| = 3.443e-02 max|aij| = 1.000e+00 ratio = 2.904e+01\n", | |
"Constructing initial basis...\n", | |
"Size of triangular part is 46\n", | |
" 73: obj = -0.000000000e+00 inf = 3.007e+08 (26)\n", | |
" 116: obj = -0.000000000e+00 inf = 5.937e-09 (0)\n", | |
"* 121: obj = 8.739215067e-01 inf = 5.161e-09 (0)\n", | |
"OPTIMAL LP SOLUTION FOUND\n", | |
"Scaling...\n", | |
" A: min|aij| = 1.000e+00 max|aij| = 1.000e+00 ratio = 1.000e+00\n", | |
"Problem data seem to be well scaled\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
" 0: obj = -0.000000000e+00 inf = 1.080e+09 (47)\n", | |
"Perturbing LP to avoid instability [73]...\n", | |
" 73: obj = -0.000000000e+00 inf = 2.104e-07 (0)\n", | |
"LP HAS NO PRIMAL FEASIBLE SOLUTION\n", | |
"GLPK Simplex Optimizer 5.0\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
"Preprocessing...\n", | |
"54 rows, 66 columns, 302 non-zeros\n", | |
"Scaling...\n", | |
" A: min|aij| = 7.090e-02 max|aij| = 5.981e+01 ratio = 8.436e+02\n", | |
"GM: min|aij| = 1.856e-01 max|aij| = 5.389e+00 ratio = 2.904e+01\n", | |
"EQ: min|aij| = 3.443e-02 max|aij| = 1.000e+00 ratio = 2.904e+01\n", | |
"Constructing initial basis...\n", | |
"Size of triangular part is 46\n", | |
" 73: obj = -0.000000000e+00 inf = 3.007e+08 (26)\n", | |
" 116: obj = -0.000000000e+00 inf = 5.937e-09 (0)\n", | |
"* 121: obj = 8.739215067e-01 inf = 5.161e-09 (0)\n", | |
"OPTIMAL LP SOLUTION FOUND\n", | |
"ok\n", | |
"test_config_gets_copied_too (optlang.tests.test_glpk_interface.ModelTestCase) ... Scaling...\n", | |
" A: min|aij| = 1.000e+00 max|aij| = 1.000e+00 ratio = 1.000e+00\n", | |
"Problem data seem to be well scaled\n", | |
"Writing problem data to '/tmp/tmp69m7_77q.glpk'...\n", | |
"625 lines were written\n", | |
"Reading problem data from '/tmp/tmplg7t4uys.glpk'...\n", | |
"72 rows, 95 columns, 360 non-zeros\n", | |
"625 lines were read\n", | |
"Scaling...\n", | |
" A: min|aij| = 7.090e-02 max|aij| = 5.981e+01 ratio = 8.436e+02\n", | |
"GM: min|aij| = 1.856e-01 max|aij| = 5.389e+00 ratio = 2.904e+01\n", | |
"EQ: min|aij| = 3.443e-02 max|aij| = 1.000e+00 ratio = 2.904e+01\n", | |
"ok\n", | |
"test_constraint_get_linear_coefficients (optlang.tests.test_glpk_interface.ModelTestCase) ... Scaling...\n", | |
" A: min|aij| = 1.000e+00 max|aij| = 1.000e+00 ratio = 1.000e+00\n", | |
"Problem data seem to be well scaled\n", | |
"ok\n", | |
"test_constraint_set_linear_coefficients (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_constraint_set_problem_to_None_caches_the_latest_expression_from_solver_instance (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_copy (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_create_empty_model (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_deepcopy (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_dual_values (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_glpk_create_empty_model (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_glpk_remove_variable (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_iadd_objective (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_implicitly_convert_milp_to_lp (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_imul_objective (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_init_from_existing_problem (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_initial_objective (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_instantiating_model_with_different_solver_problem_raises (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_integer_batch_duals (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_integer_constraint_dual (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_integer_variable_dual (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_is_integer (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_large_objective (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_number_objective (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_objective_expression_includes_constant (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_objective_get_linear_coefficients (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_objective_handles_constants_2 (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_objective_set_linear_coefficients (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_optimize (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_optimize_milp (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_pickle_ability (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_pickle_empty_model (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_primal_values (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"Test that an exception is raised when a non-linear objective is added to the model. ... ok\n", | |
"test_reduced_costs (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_remove_constraints (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_remove_variable (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_remove_variable_not_in_model_raises (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_remove_variable_str (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_set_copied_objective (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_set_linear_coefficients_constraint (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_set_linear_coefficients_objective (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_set_objective_in_constructor (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_shadow_prices (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_timeout (optlang.tests.test_glpk_interface.ModelTestCase) ... ok\n", | |
"test_change_direction (optlang.tests.test_glpk_interface.ObjectiveTestCase) ... ok\n", | |
"test_construct_with_sloppy (optlang.tests.test_glpk_interface.ObjectiveTestCase) ... ok\n", | |
"test_invalid_name_raises (optlang.tests.test_glpk_interface.ObjectiveTestCase) ... ok\n", | |
"test_new_invalid_name_raises (optlang.tests.test_glpk_interface.ObjectiveTestCase) ... ok\n", | |
"test_objective_get_linear_coefficients_raises (optlang.tests.test_glpk_interface.ObjectiveTestCase) ... ok\n", | |
"test_objective_set_linear_coefficients_raises (optlang.tests.test_glpk_interface.ObjectiveTestCase) ... ok\n", | |
"test_objective_value_is_none (optlang.tests.test_glpk_interface.ObjectiveTestCase) ... ok\n", | |
"test_change_name (optlang.tests.test_glpk_interface.VariableTestCase) ... ok\n", | |
"test_change_type (optlang.tests.test_glpk_interface.VariableTestCase) ... ok\n", | |
"test_changing_variable_names_is_reflected_in_the_solver (optlang.tests.test_glpk_interface.VariableTestCase) ... ok\n", | |
"test_get_dual (optlang.tests.test_glpk_interface.VariableTestCase) ... ok\n", | |
"test_get_primal (optlang.tests.test_glpk_interface.VariableTestCase) ... ok\n", | |
"test_glpk_setting_bounds (optlang.tests.test_glpk_interface.VariableTestCase) ... ok\n", | |
"test_invalid_name_raises (optlang.tests.test_glpk_interface.VariableTestCase) ... ok\n", | |
"test_magic (optlang.tests.test_glpk_interface.VariableTestCase) ... SKIP: Abstract test method not implemented.\n", | |
"test_new_invalid_name_raises (optlang.tests.test_glpk_interface.VariableTestCase) ... ok\n", | |
"test_non_string_name_raises (optlang.tests.test_glpk_interface.VariableTestCase) ... ok\n", | |
"test_set_bounds_method (optlang.tests.test_glpk_interface.VariableTestCase) ... ok\n", | |
"test_set_bounds_to_none (optlang.tests.test_glpk_interface.VariableTestCase) ... ok\n", | |
"test_set_wrong_type_raises (optlang.tests.test_glpk_interface.VariableTestCase) ... ok\n", | |
"test_setting_bounds (optlang.tests.test_glpk_interface.VariableTestCase) ... ok\n", | |
"test_setting_lower_bound_higher_than_upper_bound_raises (optlang.tests.test_glpk_interface.VariableTestCase) ... ok\n", | |
"test_setting_nonnumerical_bounds_raises (optlang.tests.test_glpk_interface.VariableTestCase) ... ok\n", | |
"test_variable_without_problem_returns_None_index (optlang.tests.test_glpk_interface.VariableTestCase) ... ok\n", | |
"test_fail (optlang.tests.test_gurobi_interface.TestMissingDependency) ... SKIP: Missing dependency - No module named 'gurobipy'\n", | |
"test_fail (optlang.tests.test_inspyred_interface.TestMissingDependency) ... SKIP: Missing dependency - No module named 'interface'\n", | |
"test_is_linear_and_quadratic (optlang.tests.test_interface.TestConstraint) ... ok\n", | |
"test_add_differing_interface_type_raises (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_add_existing_variable (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_add_remove_collection (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_add_remove_constraint (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_add_variable (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_add_variable_twice_raises (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_all_entities_point_to_correct_model (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_create_empty_model (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_false_objective_direction_raises (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_interface (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_non_0_or_1_bound_on_binary_variable_raises (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_non_integer_bound_on_integer_variable_raises (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_number_objective (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_primal_and_dual_values (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_read_only_attributes (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_remove_add_remove_variable (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_remove_add_variable (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_remove_constraint (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_remove_variable_str (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_removing_crap_raises (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_removing_objective_raises (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_setting_binary_bounds (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_variable_independence (optlang.tests.test_interface.TestModel) ... ok\n", | |
"test_change_name (optlang.tests.test_interface.TestVariable) ... ok\n", | |
"test_init_variable (optlang.tests.test_interface.TestVariable) ... ok\n", | |
"test_primal_and_dual (optlang.tests.test_interface.TestVariable) ... ok\n", | |
"test_set_wrong_bounds_on_binary_raises (optlang.tests.test_interface.TestVariable) ... ok\n", | |
"test_set_wrong_bounds_on_integer_raises (optlang.tests.test_interface.TestVariable) ... ok\n", | |
"test_model_is_reconstructed_from_json (optlang.tests.test_io.JsonTest) ... ok\n", | |
"test_model_json_validates (optlang.tests.test_io.JsonTest) ... ok\n", | |
"test_objective_json_validates (optlang.tests.test_io.JsonTest) ... ok\n", | |
"test_lp_method (optlang.tests.test_osqp_interface.ConfigurationTestCase) ... ok\n", | |
"test_presolve (optlang.tests.test_osqp_interface.ConfigurationTestCase) ... ok\n", | |
"test_qp_method (optlang.tests.test_osqp_interface.ConfigurationTestCase) ... ok\n", | |
"test_solver (optlang.tests.test_osqp_interface.ConfigurationTestCase) ... ok\n", | |
"test_tolerance_parameters (optlang.tests.test_osqp_interface.ConfigurationTestCase) ... ok\n", | |
"test_verbosity (optlang.tests.test_osqp_interface.ConfigurationTestCase) ... ok\n", | |
"test_add_constraints (optlang.tests.test_osqp_interface.ModelTestCase) ... ok\n", | |
"test_add_integer_var (optlang.tests.test_osqp_interface.ModelTestCase) ... ok\n", | |
"test_add_non_cplex_conform_variable (optlang.tests.test_osqp_interface.ModelTestCase) ... ok\n", | |
"test_add_nonlinear_constraint_raises (optlang.tests.test_osqp_interface.ModelTestCase) ... ok\n", | |
"test_add_variable (optlang.tests.test_osqp_interface.ModelTestCase) ... ok\n", | |
"test_binary_variables (optlang.tests.test_osqp_interface.ModelTestCase) ... /usr/local/lib/python3.7/dist-packages/cuosqp-0.1.0-py3.7-linux-x86_64.egg/cuosqp/utils.py:20: UserWarning: Linear system solver not recognized. Using default solver CUDA PCG.\n", | |
" warn(\"Linear system solver not recognized. \" +\n", | |
"terminate called after throwing an instance of 'thrust::system::system_error'\n", | |
" what(): parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device\n" | |
], | |
"name": "stdout" | |
} | |
] | |
} | |
] | |
} |
This is working for me:
test_binary_variables (optlang.tests.test_osqp_interface.ModelTestCase) ... /usr/local/lib/python3.7/dist-packages/cuosqp-0.1.0-py3.7-linux-x86_64.egg/cuosqp/utils.py:20: UserWarning: Linear system solver not recognized. Using default solver CUDA PCG.
warn("Linear system solver not recognized. " +
ok
Have you changed your runtime to one with a GPU? (Runtime -> Change Runtime Type)
I have the same error (
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the fork, I changed
src/optlang/tests/test_osqp_interface.py
to allow cuosqp and removed the tests fromConstraintTestCase
(but it would have the same output).