diff --git a/.coin-or/config.yml b/.coin-or/config.yml new file mode 100644 index 0000000..2e87a6d --- /dev/null +++ b/.coin-or/config.yml @@ -0,0 +1,60 @@ +Description: + Slug: CoinMP + ShortName: CoinMP + LongName: CoinMP + ShortDescription: A lightweight C API library for Clp, Cbc, and Cgl. + LongDescription: |2 + CoinMP is a C-API interface library that supports most of the + functionality of the CLP (Coin LP), CBC (Coin Branch-and-Cut), and CGL + (Cut Generation Library) projects. It can be used as a shared library + (or DLL on Windows) from other C/C++ projects and applications. + Manager: Bjarni Kristjansson + Homepage: https://github.com/coin-or/CoinMP + License: Eclipse Public License 2.0 + LicenseURL: http://www.opensource.org/licenses/EPL-2.0 + Zenodo: + IncludedIn: + Package: CoinMP + Language: + - C++ + Categories: + - Optimization deterministic linear continuous + - Optimization deterministic linear discrete + - Interfaces + +Dependencies: + - Description: COIN-OR Utilities + URL: https://github.com/coin-or/CoinUtils + Version: stable/2.11 + Required: Required + - Description: Open Solver Interface + URL: https://github.com/coin-or/Osi + Version: stable/0.108 + Required: Required + - Description: COIN-OR Linear Programming Solver + URL: https://github.com/coin-or/Clp + Version: stable/1.17 + Required: Required + - Description: Cut Generator Library + URL: https://github.com/coin-or/Cgl + Version: stable/0.60 + Required: Required + - Description: COIN-OR Branch-and-Cut + URL: https://github.com/coin-or/Cbc + Version: stable/2.10 + Required: Required + +DevelopmentStatus: + activityStatus: Active + maturityLevel: 5 + testedPlatforms: + - operatingSystem: Linux + compiler: gcc + - operatingSystem: Mac OS X + compiler: + - gcc + - clang + - operatingSystem: Microsoft Windows with MSys2 + compiler: + - gcc + - cl diff --git a/.coin-or/generate_readme b/.coin-or/generate_readme new file mode 100755 index 0000000..ce0f80b --- /dev/null +++ b/.coin-or/generate_readme @@ -0,0 +1,53 @@ +#!/usr/bin/env bash + +# Exit when command fails +set -e +#Attempt to use undefined variable outputs error message, and forces an exit +set -u +#Causes a pipeline to return the exit status of the last command in the pipe +#that returned a non-zero return value. +set -o pipefail +#set -x + +source $COINBREW_HOME/scripts/generate_readme + +pushd . > /dev/null +cd $(dirname $0) +SCRIPT_DIR=$PWD +popd > /dev/null + +create_variables $SCRIPT_DIR/config.yml + +make_header + +echo "CoinMP is a C-API interface library that supports most of the +functionality of the CLP (Coin LP), CBC (Coin Branch-and-Cut), and CGL (Cut +Generation Library) projects. It is built as a shared library (\`libCoinMP\`, +or \`CoinMP.dll\` on Windows) that can be used from other C/C++ projects and +applications. The header file \`CoinMP/src/CoinMP.h\` contains the prototypes of all +functions of the library." + +# Arch's package is called coin-or-mp, Debian's only coinor-libcoinmp-dev, and +# conda-forge's coinmp. There are no current Fedora, linuxbrew, or Homebrew +# packages of CoinMP. +make_build_info | awk ' + /^ \* Fedora\/Redhat\/CentOS:/ || /^ \* linuxbrew:/ || /^ \* \*Mac OS X\*:/ { skip = 1; fences = 0; next } + skip { if (/```/ && ++fences == 2) skip = 0; next } + { print }' | sed -e 's/pacman -S coin-or-coinmp/pacman -S coin-or-mp/' \ + -e 's/coinor-coinmp coinor-libcoinmp-dev/coinor-libcoinmp-dev/' \ + -e 's/conda install coin-or-coinmp/conda install -c conda-forge coinmp/' \ + -e 's|repology.org/project/coin-or-coinmp/|repology.org/project/coinmp/|' + +echo "### Example + +The \`CoinMP/examples\` directory has a C program that solves a few small problems +with CoinMP. After building and installing CoinMP, it can be built by running +\`make\` in the corresponding subdirectory of the build directory, e.g., +\`\`\` +cd build/CoinMP/1.8/examples +make +./example +\`\`\` +" + +make_links diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml new file mode 100644 index 0000000..3306026 --- /dev/null +++ b/.github/workflows/linux-ci.yml @@ -0,0 +1,102 @@ +--- +name: Linux build and test +on: + workflow_dispatch: + push: + branches: + - 'master' + - 'stable/*' + pull_request: + branches: + - '**' + release: + types: + - created + +jobs: + test: + name: Run tests + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-22.04, ubuntu-24.04] + build_static: [true, false] + download_requirements: [sudo apt install -y -qq gfortran liblapack-dev libmetis-dev libnauty-dev] + include: + - os: macos-26-intel + build_static: false + flags: CC=clang CXX=clang++ + download_requirements: brew install metis bash + - os: macos-26 + build_static: false + flags: CC=gcc-15 CXX=g++-15 ADD_CXXFLAGS=-Wl,-ld_classic + download_requirements: brew install metis bash + - os: macos-15 + build_static: false + flags: CC=clang CXX=clang++ + download_requirements: brew install metis bash + + steps: + - name: Checkout source + uses: actions/checkout@v6 + with: + path: ${{ github.event.repository.name }} + - name: Install required packages from package manager + run: ${{ matrix.download_requirements }} + - name: Checkout coinbrew + uses: actions/checkout@v6 + with: + repository: coin-or/coinbrew + path: coinbrew + - name: Build project + run: | + export ${{ matrix.flags }} + ADD_ARGS=() + ADD_ARGS+=( --skip='ThirdParty/Metis ThirdParty/Mumps ThirdParty/Blas ThirdParty/Lapack' ) + ADD_BUILD_ARGS=() + ADD_BUILD_ARGS+=( --tests main --enable-relocatable ) + ADD_BUILD_ARGS+=( --verbosity 2 ) + [[ ${{ matrix.build_static }} == "true" ]] && \ + ADD_BUILD_ARGS+=( --disable-shared ) + bash coinbrew/coinbrew fetch ${{ github.event.repository.name }} --skip-update \ + "${ADD_ARGS[@]}" + bash coinbrew/coinbrew build ${{ github.event.repository.name }} \ + "${ADD_ARGS[@]}" "${ADD_BUILD_ARGS[@]}" \ + ADD_CXXFLAGS="${ADD_CXXFLAGS}" CC=${CC} CXX=${CXX} + [[ ${CC} ]] && CC="${CC}" || CC="" + echo "CC=${CC}" >> $GITHUB_ENV + - name: Archive dist contents + run: | + cp ${{ github.event.repository.name }}/README.md dist/ + cp ${{ github.event.repository.name }}/LICENSE dist/ + tar -czvf release.tar.gz -C dist . + - name: Checkout package name generation script + uses: actions/checkout@v6 + with: + repository: coin-or-tools/platform-analysis-tools + path: tools + ref: 0.0.2 + - name: Retrieve platform info + run: | + python3 -m venv venv + source venv/bin/activate + pip install -r tools/requirements.txt + [[ ${{ matrix.build_static }} == "true" ]] && buildtype=static || buildtype= + platform_str=`python3 tools/hsf_get_platform.py -b $buildtype` + echo "platform_string=${platform_str}" >> $GITHUB_ENV + - name: Upload Artifact + uses: actions/upload-artifact@v6 + with: + name: ${{ github.event.repository.name }}-${{ env.platform_string }}.tar.gz + path: release.tar.gz + if-no-files-found: error + - name: Upload package to release + if: ${{ github.event_name == 'release'}} + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./release.tar.gz + asset_name: ${{ github.event.repository.name }}-${{ github.event.release.tag_name }}-${{ env.platform_string }}.tar.gz + asset_content_type: application/gzip diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9fb322d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +--- +name: Create Release + +on: + push: + tags: + - 'releases/*' + +jobs: + create_release: + runs-on: ubuntu-latest + steps: + - uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.TKRALPHS_RELEASE }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml new file mode 100644 index 0000000..97898dd --- /dev/null +++ b/.github/workflows/windows-ci.yml @@ -0,0 +1,123 @@ +--- +name: Windows build and test +on: + workflow_dispatch: + push: + branches: + - 'master' + - 'stable/*' + pull_request: + branches: + - '**' + release: + types: + - created + +jobs: + test: + name: Run tests + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: [ + { os: windows-2022, arch: x86_64, msystem: ucrt64, debug: true, suffix: "-dbg" }, + { os: windows-2025, arch: x86_64, msystem: ucrt64, debug: false, suffix: "" }, + { os: windows-2022, arch: msvc, msystem: ucrt64, debug: true, suffix: "-dbg" }, + { os: windows-2025, arch: msvc, msystem: ucrt64, debug: false, suffix: "-md" }, + ] + steps: + - name: Checkout source + uses: actions/checkout@v6 + with: + path: ${{ github.event.repository.name }} + - name: Checkout coinbrew + uses: actions/checkout@v6 + with: + repository: coin-or/coinbrew + path: coinbrew + - name: Set up msvc + if: ${{ matrix.arch == 'msvc' }} + uses: egor-tensin/vs-shell@v2 + - name: Set correct host flag + if: ${{ matrix.arch != 'msvc' }} + run: | + echo "host_flag=--host=${{ matrix.arch }}-w64-mingw32" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + - name: Set up msys with ${{ matrix.msystem }} + uses: msys2/setup-msys2@v2 + with: + update: true + install: >- + base-devel + git + zip + path-type: inherit + msystem: ${{ matrix.msystem }} + # setup-msys2 creates a fresh MSYS2 installation, so the requirements have + # to be installed into it (not into C:\msys64). The gcc toolchain and + # pkgconf are installed too, so that the compiler, pkg-config, and the + # libraries all come from the same MSYS2 environment, instead of from + # the runner's C:\mingw64 and Strawberry Perl. The MSYS pkgconf is used + # rather than ${MINGW_PACKAGE_PREFIX}-pkgconf, because the latter reports + # Windows-style paths (D:/...), with which libtool sets up a broken PATH + # for running the tests. gcc-fortran is installed because some configure + # scripts look for a Fortran compiler, and the runner's does not work + # with MSYS2's gcc. + - name: Install requirements + if: ${{ matrix.arch != 'msvc' }} + run: | + pacman -S --noconfirm --needed ${MINGW_PACKAGE_PREFIX}-gcc ${MINGW_PACKAGE_PREFIX}-gcc-fortran pkgconf ${MINGW_PACKAGE_PREFIX}-lapack ${MINGW_PACKAGE_PREFIX}-winpthreads ${MINGW_PACKAGE_PREFIX}-readline ${MINGW_PACKAGE_PREFIX}-suitesparse ${MINGW_PACKAGE_PREFIX}-metis + shell: msys2 {0} + - name: Build project + run: | + ADD_ARGS=() + ADD_ARGS+=( --skip='ThirdParty/Metis ThirdParty/Mumps ThirdParty/Blas ThirdParty/Lapack' ) + ADD_BUILD_ARGS=() + ADD_BUILD_ARGS+=( --build=x86_64-w64-mingw32 --tests main --enable-relocatable --disable-pkg-config ) + ADD_BUILD_ARGS+=( --verbosity 2 ) + [[ ${{ matrix.debug }} == "true" ]] && ADD_BUILD_ARGS+=( --enable-debug ) + [[ ${{ matrix.arch }} == "msvc" ]] && ADD_BUILD_ARGS+=( --enable-msvc=MD ) + ./coinbrew/coinbrew fetch ${{ github.event.repository.name }} --skip-update "${ADD_ARGS[@]}" + ./coinbrew/coinbrew build ${{ github.event.repository.name }} ${{ env.host_flag }} \ + "${ADD_ARGS[@]}" "${ADD_BUILD_ARGS[@]}" + cp ${{ github.event.repository.name }}/README.md dist/ + cp ${{ github.event.repository.name }}/LICENSE dist/ + shell: msys2 {0} + - name: Upload failed build directory + uses: actions/upload-artifact@v6 + if: failure() + with: + name: ${{ matrix.os}}-${{ matrix.arch }}-debug=${{ matrix.debug }}-failedbuild + # coinbrew builds in build-debug with --enable-debug + path: ${{ matrix.debug && 'build-debug' || 'build' }} + - name: Generate package name for msvc + run: | + msvc_version=${VisualStudioVersion%.*} + echo "package_suffix=w64-msvc${msvc_version}${{ matrix.suffix }}" >> $GITHUB_ENV + shell: msys2 {0} + if: ${{ matrix.arch == 'msvc' }} + - name: Generate package name + run: | + echo "package_suffix=${{ matrix.arch }}-w64-${{ matrix.msystem }}${{ matrix.suffix }}" >> $GITHUB_ENV + shell: msys2 {0} + if: ${{ matrix.arch != 'msvc' }} + - name: Upload artifact + uses: actions/upload-artifact@v6 + with: + name: ${{ github.event.repository.name }}-${{ env.package_suffix }} + path: dist + if-no-files-found: error + - name: Zip up dist contents for release + if: ${{ github.event_name == 'release'}} + run: cd dist && zip -r ../release.zip * + shell: msys2 {0} + - name: Upload package to release + if: ${{ github.event_name == 'release'}} + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./release.zip + asset_name: ${{ github.event.repository.name }}-${{ github.event.release.tag_name }}-${{ env.package_suffix }}.zip + asset_content_type: application/gzip diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 012dd57..0000000 --- a/.travis.yml +++ /dev/null @@ -1,36 +0,0 @@ -language: cpp - -matrix: - include: - - os: linux - addons: - apt: - packages: - - gfortran - - os: osx - osx_image: xcode10 - env: OSX=10.13 - compiler: clang - - os: osx - osx_image: xcode9.2 - env: OSX=10.12 - compiler: clang - - os: osx - osx_image: xcode8 - env: OSX=10.11 - compiler: clang - allow_failures: - - os: osx - -before_script: - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PLATFORM=osx$OSX-x86_64-clang`clang -dumpversion`; fi - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install bash gcc; brew link --overwrite gcc; gfortran --version; fi - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PLATFORM=linux-x86_64-gcc`gcc -dumpversion`; fi - - cd .. - - wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew - - export PROJECT_URL=https://github.com/$TRAVIS_REPO_SLUG - - export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2` - - bash ./coinbrew fetch $PROJECT_URL:$TRAVIS_BRANCH --no-prompt --skip-update > /dev/null - -script: - - bash ./coinbrew build $PROJECT --no-prompt --verbosity=2 --test diff --git a/CoinMP/LICENSE b/CoinMP/LICENSE index 5723258..0a8206b 100644 --- a/CoinMP/LICENSE +++ b/CoinMP/LICENSE @@ -1,213 +1,245 @@ -Common Public License Version 1.0 - -THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC -LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM -CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. - -1. DEFINITIONS - -"Contribution" means: - - a) in the case of the initial Contributor, the initial code and -documentation distributed under this Agreement, and - - b) in the case of each subsequent Contributor: - - i) changes to the Program, and - - ii) additions to the Program; - - where such changes and/or additions to the Program originate from and are -distributed by that particular Contributor. A Contribution 'originates' from a -Contributor if it was added to the Program by such Contributor itself or anyone -acting on such Contributor's behalf. Contributions do not include additions to -the Program which: (i) are separate modules of software distributed in -conjunction with the Program under their own license agreement, and (ii) are not -derivative works of the Program. - -"Contributor" means any person or entity that distributes the Program. - -"Licensed Patents " mean patent claims licensable by a Contributor which are -necessarily infringed by the use or sale of its Contribution alone or when -combined with the Program. - -"Program" means the Contributions distributed in accordance with this Agreement. - -"Recipient" means anyone who receives the Program under this Agreement, -including all Contributors. - -2. GRANT OF RIGHTS - - a) Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide, royalty-free copyright license to -reproduce, prepare derivative works of, publicly display, publicly perform, -distribute and sublicense the Contribution of such Contributor, if any, and such -derivative works, in source code and object code form. - - b) Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed -Patents to make, use, sell, offer to sell, import and otherwise transfer the -Contribution of such Contributor, if any, in source code and object code form. -This patent license shall apply to the combination of the Contribution and the -Program if, at the time the Contribution is added by the Contributor, such -addition of the Contribution causes such combination to be covered by the -Licensed Patents. The patent license shall not apply to any other combinations -which include the Contribution. No hardware per se is licensed hereunder. - - c) Recipient understands that although each Contributor grants the licenses -to its Contributions set forth herein, no assurances are provided by any -Contributor that the Program does not infringe the patent or other intellectual -property rights of any other entity. Each Contributor disclaims any liability to -Recipient for claims brought by any other entity based on infringement of -intellectual property rights or otherwise. As a condition to exercising the -rights and licenses granted hereunder, each Recipient hereby assumes sole -responsibility to secure any other intellectual property rights needed, if any. -For example, if a third party patent license is required to allow Recipient to -distribute the Program, it is Recipient's responsibility to acquire that license -before distributing the Program. - - d) Each Contributor represents that to its knowledge it has sufficient -copyright rights in its Contribution, if any, to grant the copyright license set -forth in this Agreement. - -3. REQUIREMENTS - -A Contributor may choose to distribute the Program in object code form under its -own license agreement, provided that: - - a) it complies with the terms and conditions of this Agreement; and - - b) its license agreement: - - i) effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title and -non-infringement, and implied warranties or conditions of merchantability and -fitness for a particular purpose; - - ii) effectively excludes on behalf of all Contributors all liability for -damages, including direct, indirect, special, incidental and consequential -damages, such as lost profits; - - iii) states that any provisions which differ from this Agreement are offered -by that Contributor alone and not by any other party; and - - iv) states that source code for the Program is available from such -Contributor, and informs licensees how to obtain it in a reasonable manner on or -through a medium customarily used for software exchange. - -When the Program is made available in source code form: - - a) it must be made available under this Agreement; and - - b) a copy of this Agreement must be included with each copy of the Program. - -Contributors may not remove or alter any copyright notices contained within the -Program. - -Each Contributor must identify itself as the originator of its Contribution, if -any, in a manner that reasonably allows subsequent Recipients to identify the -originator of the Contribution. - -4. COMMERCIAL DISTRIBUTION - -Commercial distributors of software may accept certain responsibilities with -respect to end users, business partners and the like. While this license is -intended to facilitate the commercial use of the Program, the Contributor who -includes the Program in a commercial product offering should do so in a manner -which does not create potential liability for other Contributors. Therefore, if -a Contributor includes the Program in a commercial product offering, such -Contributor ("Commercial Contributor") hereby agrees to defend and indemnify -every other Contributor ("Indemnified Contributor") against any losses, damages -and costs (collectively "Losses") arising from claims, lawsuits and other legal -actions brought by a third party against the Indemnified Contributor to the -extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor to -control, and cooperate with the Commercial Contributor in, the defense and any -related settlement negotiations. The Indemnified Contributor may participate in -any such claim at its own expense. - -For example, a Contributor might include the Program in a commercial product -offering, Product X. That Contributor is then a Commercial Contributor. If that -Commercial Contributor then makes performance claims, or offers warranties -related to Product X, those performance claims and warranties are such -Commercial Contributor's responsibility alone. Under this section, the -Commercial Contributor would have to defend claims against the other -Contributors related to those performance claims and warranties, and if a court -requires any other Contributor to pay any damages as a result, the Commercial -Contributor must pay those damages. - -5. NO WARRANTY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR -IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, -NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each -Recipient is solely responsible for determining the appropriateness of using and -distributing the Program and assumes all risks associated with its exercise of -rights under this Agreement, including but not limited to the risks and costs of -program errors, compliance with applicable laws, damage to or loss of data, -programs or equipment, and unavailability or interruption of operations. - -6. DISCLAIMER OF LIABILITY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY -CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST -PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS -GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -7. GENERAL - -If any provision of this Agreement is invalid or unenforceable under applicable -law, it shall not affect the validity or enforceability of the remainder of the -terms of this Agreement, and without further action by the parties hereto, such -provision shall be reformed to the minimum extent necessary to make such -provision valid and enforceable. - -If Recipient institutes patent litigation against a Contributor with respect to -a patent applicable to software (including a cross-claim or counterclaim in a -lawsuit), then any patent licenses granted by that Contributor to such Recipient -under this Agreement shall terminate as of the date such litigation is filed. In -addition, if Recipient institutes patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that the Program -itself (excluding combinations of the Program with other software or hardware) -infringes such Recipient's patent(s), then such Recipient's rights granted under -Section 2(b) shall terminate as of the date such litigation is filed. - -All Recipient's rights under this Agreement shall terminate if it fails to -comply with any of the material terms or conditions of this Agreement and does -not cure such failure in a reasonable period of time after becoming aware of -such noncompliance. If all Recipient's rights under this Agreement terminate, -Recipient agrees to cease use and distribution of the Program as soon as -reasonably practicable. However, Recipient's obligations under this Agreement -and any licenses granted by Recipient relating to the Program shall continue and -survive. - -Everyone is permitted to copy and distribute copies of this Agreement, but in -order to avoid inconsistency the Agreement is copyrighted and may only be -modified in the following manner. The Agreement Steward reserves the right to -publish new versions (including revisions) of this Agreement from time to time. -No one other than the Agreement Steward has the right to modify this Agreement. -IBM is the initial Agreement Steward. IBM may assign the responsibility to serve -as the Agreement Steward to a suitable separate entity. Each new version of the -Agreement will be given a distinguishing version number. The Program (including -Contributions) may always be distributed subject to the version of the Agreement -under which it was received. In addition, after a new version of the Agreement -is published, Contributor may elect to distribute the Program (including its -Contributions) under the new version. Except as expressly stated in Sections -2(a) and 2(b) above, Recipient receives no rights or licenses to the -intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved. - -This Agreement is governed by the laws of the State of New York and the -intellectual property laws of the United States of America. No party to this -Agreement will bring a legal action under this Agreement more than one year -after the cause of action arose. Each party waives its rights to a jury trial in -any resulting litigation. +Eclipse Public License - v 2.0 + +THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC +LICENSE (“AGREEMENT”). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM +CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. + +1. DEFINITIONS + “Contribution” means: + + a) in the case of the initial Contributor, the initial content Distributed + under this Agreement, and + b) in the case of each subsequent Contributor: + i) changes to the Program, and + ii) additions to the Program; + where such changes and/or additions to the Program originate from and + are Distributed by that particular Contributor. A Contribution + “originates” from a Contributor if it was added to the Program by such + Contributor itself or anyone acting on such Contributor's behalf. + Contributions do not include changes or additions to the Program that + are not Modified Works. “Contributor” means any person or entity that + Distributes the Program. + + “Licensed Patents” mean patent claims licensable by a Contributor which are + necessarily infringed by the use or sale of its Contribution alone or when + combined with the Program. + + “Program” means the Contributions Distributed in accordance with this + Agreement. + + “Recipient” means anyone who receives the Program under this Agreement or + any Secondary License (as applicable), including Contributors. + + “Derivative Works” shall mean any work, whether in Source Code or other + form, that is based on (or derived from) the Program and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. + + “Modified Works” shall mean any work in Source Code or other form that + results from an addition to, deletion from, or modification of the contents + of the Program, including, for purposes of clarity any new file in Source + Code form that contains any contents of the Program. Modified Works shall + not include works that contain only declarations, interfaces, types, + classes, structures, or files of the Program solely in each case in order + to link to, bind by name, or subclass the Program or Modified Works + thereof. + + “Distribute” means the acts of a) distributing or b) making available in + any manner that enables the transfer of a copy. + + “Source Code” means the form of a Program preferred for making + modifications, including but not limited to software source code, + documentation source, and configuration files. + + “Secondary License” means either the GNU General Public License, Version + 2.0, or any later versions of that license, including any exceptions or + additional permissions as identified by the initial Contributor. + +2. GRANT OF RIGHTS + + a) Subject to the terms of this Agreement, each Contributor hereby grants + Recipient a non-exclusive, worldwide, royalty-free copyright license to + reproduce, prepare Derivative Works of, publicly display, publicly perform, + Distribute and sublicense the Contribution of such Contributor, if any, and + such Derivative Works. + + b) Subject to the terms of this Agreement, each Contributor hereby grants + Recipient a non-exclusive, worldwide, royalty-free patent license under + Licensed Patents to make, use, sell, offer to sell, import and otherwise + transfer the Contribution of such Contributor, if any, in Source Code or + other form. This patent license shall apply to the combination of the + Contribution and the Program if, at the time the Contribution is added by + the Contributor, such addition of the Contribution causes such combination + to be covered by the Licensed Patents. The patent license shall not apply + to any other combinations which include the Contribution. No hardware per + se is licensed hereunder. + + c) Recipient understands that although each Contributor grants the licenses + to its Contributions set forth herein, no assurances are provided by any + Contributor that the Program does not infringe the patent or other + intellectual property rights of any other entity. Each Contributor + disclaims any liability to Recipient for claims brought by any other entity + based on infringement of intellectual property rights or otherwise. As a + condition to exercising the rights and licenses granted hereunder, each + Recipient hereby assumes sole responsibility to secure any other + intellectual property rights needed, if any. For example, if a third party + patent license is required to allow Recipient to Distribute the Program, it + is Recipient's responsibility to acquire that license before distributing + the Program. + + d) Each Contributor represents that to its knowledge it has sufficient + copyright rights in its Contribution, if any, to grant the copyright + license set forth in this Agreement. + + e) Notwithstanding the terms of any Secondary License, no Contributor makes + additional grants to any Recipient (other than those set forth in this + Agreement) as a result of such Recipient's receipt of the Program under the + terms of a Secondary License (if permitted under the terms of Section 3). + +3. REQUIREMENTS + +3.1 If a Contributor Distributes the Program in any form, then: + + a) the Program must also be made available as Source Code, in accordance + with section 3.2, and the Contributor must accompany the Program with a + statement that the Source Code for the Program is available under this + Agreement, and informs Recipients how to obtain it in a reasonable manner + on or through a medium customarily used for software exchange; and + + b) the Contributor may Distribute the Program under a license different + than this Agreement, provided that such license: + + i) effectively disclaims on behalf of all other Contributors all + warranties and conditions, express and implied, including warranties or + conditions of title and non-infringement, and implied warranties or + conditions of merchantability and fitness for a particular purpose; + + ii) effectively excludes on behalf of all other Contributors all + liability for damages, including direct, indirect, special, incidental + and consequential damages, such as lost profits; + + iii) does not attempt to limit or alter the recipients' rights in the + Source Code under section 3.2; and + + iv) requires any subsequent distribution of the Program by any party to + be under a license that satisfies the requirements of this section 3. + +3.2 When the Program is Distributed as Source Code: + + a) it must be made available under this Agreement, or if the Program (i) + is combined with other material in a separate file or files made available + under a Secondary License, and (ii) the initial Contributor attached to + the Source Code the notice described in Exhibit A of this Agreement, then + the Program may be made available under the terms of such Secondary + Licenses, and + + b) a copy of this Agreement must be included with each copy of the + Program. + +3.3 Contributors may not remove or alter any copyright, patent, trademark, +attribution notices, disclaimers of warranty, or limitations of liability +(‘notices’) contained within the Program from any copy of the Program which +they Distribute, provided that Contributors may add their own appropriate +notices. + +4. COMMERCIAL DISTRIBUTION + +Commercial distributors of software may accept certain responsibilities with +respect to end users, business partners and the like. While this license is +intended to facilitate the commercial use of the Program, the Contributor who +includes the Program in a commercial product offering should do so in a manner +which does not create potential liability for other Contributors. Therefore, +if a Contributor includes the Program in a commercial product offering, such +Contributor (“Commercial Contributor”) hereby agrees to defend and indemnify +every other Contributor (“Indemnified Contributor”) against any losses, +damages and costs (collectively “Losses”) arising from claims, lawsuits and +other legal actions brought by a third party against the Indemnified +Contributor to the extent caused by the acts or omissions of such Commercial +Contributor in connection with its distribution of the Program in a commercial +product offering. The obligations in this section do not apply to any claims +or Losses relating to any actual or alleged intellectual property +infringement. In order to qualify, an Indemnified Contributor must: a) +promptly notify the Commercial Contributor in writing of such claim, and b) +allow the Commercial Contributor to control, and cooperate with the Commercial +Contributor in, the defense and any related settlement negotiations. The +Indemnified Contributor may participate in any such claim at its own expense. + +For example, a Contributor might include the Program in a commercial product +offering, Product X. That Contributor is then a Commercial Contributor. If +that Commercial Contributor then makes performance claims, or offers +warranties related to Product X, those performance claims and warranties are +such Commercial Contributor's responsibility alone. Under this section, the +Commercial Contributor would have to defend claims against the other +Contributors related to those performance claims and warranties, and if a +court requires any other Contributor to pay any damages as a result, the +Commercial Contributor must pay those damages. + +5. NO WARRANTY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT PERMITTED +BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN “AS IS” BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, +WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, +MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely +responsible for determining the appropriateness of using and distributing the +Program and assumes all risks associated with its exercise of rights under +this Agreement, including but not limited to the risks and costs of program +errors, compliance with applicable laws, damage to or loss of data, programs +or equipment, and unavailability or interruption of operations. + +6. DISCLAIMER OF LIABILITY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT PERMITTED +BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY +LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED +HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. GENERAL + +If any provision of this Agreement is invalid or unenforceable under +applicable law, it shall not affect the validity or enforceability of the +remainder of the terms of this Agreement, and without further action by the +parties hereto, such provision shall be reformed to the minimum extent +necessary to make such provision valid and enforceable. + +If Recipient institutes patent litigation against any entity (including a +cross-claim or counterclaim in a lawsuit) alleging that the Program itself +(excluding combinations of the Program with other software or hardware) +infringes such Recipient's patent(s), then such Recipient's rights granted +under Section 2(b) shall terminate as of the date such litigation is filed. + +All Recipient's rights under this Agreement shall terminate if it fails to +comply with any of the material terms or conditions of this Agreement and does +not cure such failure in a reasonable period of time after becoming aware of +such noncompliance. If all Recipient's rights under this Agreement terminate, +Recipient agrees to cease use and distribution of the Program as soon as +reasonably practicable. However, Recipient's obligations under this Agreement +and any licenses granted by Recipient relating to the Program shall continue +and survive. + +Everyone is permitted to copy and distribute copies of this Agreement, but in +order to avoid inconsistency the Agreement is copyrighted and may only be +modified in the following manner. The Agreement Steward reserves the right to +publish new versions (including revisions) of this Agreement from time to +time. No one other than the Agreement Steward has the right to modify this +Agreement. The Eclipse Foundation is the initial Agreement Steward. The +Eclipse Foundation may assign the responsibility to serve as the Agreement +Steward to a suitable separate entity. Each new version of the Agreement will +be given a distinguishing version number. The Program (including +Contributions) may always be Distributed subject to the version of the +Agreement under which it was received. In addition, after a new version of the +Agreement is published, Contributor may elect to Distribute the Program +(including its Contributions) under the new version. + +Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives +no rights or licenses to the intellectual property of any Contributor under +this Agreement, whether expressly, by implication, estoppel or otherwise. All +rights in the Program not expressly granted under this Agreement are reserved. +Nothing in this Agreement is intended to be enforceable by any entity that is +not a Contributor or Recipient. No third-party beneficiary rights are created +under this Agreement. + diff --git a/CoinMP/Makefile.am b/CoinMP/Makefile.am index 24a5e70..eeeb109 100644 --- a/CoinMP/Makefile.am +++ b/CoinMP/Makefile.am @@ -1,6 +1,6 @@ # Copyright (C) 2006 International Business Machines and others. # All Rights Reserved. -# This file is distributed under the Common Public License. +# This file is distributed under the Eclipse Public License. ## $Id$ diff --git a/CoinMP/Makefile.in b/CoinMP/Makefile.in index b23f078..9f1f990 100644 --- a/CoinMP/Makefile.in +++ b/CoinMP/Makefile.in @@ -16,7 +16,7 @@ # Copyright (C) 2006 International Business Machines and others. # All Rights Reserved. -# This file is distributed under the Common Public License. +# This file is distributed under the Eclipse Public License. # Author: Andreas Waechter IBM 2006-04-13 diff --git a/CoinMP/configure b/CoinMP/configure index dd5223e..1d38c44 100755 --- a/CoinMP/configure +++ b/CoinMP/configure @@ -12,7 +12,7 @@ # Copyright 2006 International Business Machines and others. # All Rights Reserved. # This file is part of the open source package CoinMP which is distributed -# under the Common Public License. +# under the Eclipse Public License. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## @@ -1258,7 +1258,7 @@ gives unlimited permission to copy, distribute and modify it. Copyright 2006 International Business Machines and others. All Rights Reserved. This file is part of the open source package CoinMP which is distributed -under the Common Public License. +under the Eclipse Public License. _ACEOF exit 0 fi diff --git a/CoinMP/configure.ac b/CoinMP/configure.ac index 04a5774..3ceeeca 100644 --- a/CoinMP/configure.ac +++ b/CoinMP/configure.ac @@ -1,6 +1,6 @@ # Copyright (C) 2006 International Business Machines. # All Rights Reserved. -# This file is distributed under the Common Public License. +# This file is distributed under the Eclipse Public License. ## $Id$ @@ -18,7 +18,7 @@ AC_COPYRIGHT([ Copyright 2006 International Business Machines and others. All Rights Reserved. This file is part of the open source package CoinMP which is distributed -under the Common Public License.]) +under the Eclipse Public License.]) # List one file in the package so that the configure script can test # whether the package is actually there diff --git a/CoinMP/examples/Makefile.in b/CoinMP/examples/Makefile.in index c36c117..e86078d 100644 --- a/CoinMP/examples/Makefile.in +++ b/CoinMP/examples/Makefile.in @@ -1,6 +1,6 @@ # Copyright (C) 2006 International Business Machines and others. # All Rights Reserved. -# This file is distributed under the Common Public License. +# This file is distributed under the Eclipse Public License. # $Id: Makefile.in 726 2006-04-17 04:16:00Z andreasw $ diff --git a/CoinMP/src/CoinCbc.cpp b/CoinMP/src/CoinCbc.cpp index 959650d..d4d8235 100644 --- a/CoinMP/src/CoinCbc.cpp +++ b/CoinMP/src/CoinCbc.cpp @@ -915,7 +915,7 @@ int CbcLoadAllSolverObjects(HCBC hCbc, PPROBLEM pProblem) -extern int CbcOrClpRead_mode; +//extern int CbcOrClpRead_mode; int CbcSolveProblem(HCBC hCbc, PPROBLEM pProblem, POPTION pOption, int Method) { @@ -936,7 +936,7 @@ int CbcSolveProblem(HCBC hCbc, PPROBLEM pProblem, POPTION pOption, int Method) CbcSetClpOptions(hCbc, pOption); CbcSetCbcOptions(hCbc, pOption); //CbcSetCglOptions(hProb); BK: CbcMain1 will call the Cgl's automatically - CbcOrClpRead_mode = 1; // BK: Fix bug in CbcMain1, CbcOrClpRead_mode not initialized (CpcSolver.cpp, stable 2.2) + //CbcOrClpRead_mode = 1; // BK: Fix bug in CbcMain1, CbcOrClpRead_mode not initialized (CpcSolver.cpp, stable 2.2) int logLevel = coinGetIntOption(pOption, COIN_INT_LOGLEVEL); if (logLevel == 1) { const int argc = 3; diff --git a/CoinMP/src/Makefile.am b/CoinMP/src/Makefile.am index e77e9cc..f281db7 100644 --- a/CoinMP/src/Makefile.am +++ b/CoinMP/src/Makefile.am @@ -1,6 +1,6 @@ # Copyright (C) 2006 International Business Machines and others. # All Rights Reserved. -# This file is distributed under the Common Public License. +# This file is distributed under the Eclipse Public License. ## $Id$ diff --git a/CoinMP/src/Makefile.in b/CoinMP/src/Makefile.in index 912bce9..2a18a2f 100644 --- a/CoinMP/src/Makefile.in +++ b/CoinMP/src/Makefile.in @@ -16,7 +16,7 @@ # Copyright (C) 2006 International Business Machines and others. # All Rights Reserved. -# This file is distributed under the Common Public License. +# This file is distributed under the Eclipse Public License. # Author: Andreas Waechter IBM 2006-04-13 diff --git a/CoinMP/test/Makefile.am b/CoinMP/test/Makefile.am index 1f112f4..9d39f0b 100644 --- a/CoinMP/test/Makefile.am +++ b/CoinMP/test/Makefile.am @@ -1,6 +1,6 @@ # Copyright (C) 2006 International Business Machines and others. # All Rights Reserved. -# This file is distributed under the Common Public License. +# This file is distributed under the Eclipse Public License. ## $Id$ diff --git a/CoinMP/test/Makefile.in b/CoinMP/test/Makefile.in index c0cb495..defbc19 100644 --- a/CoinMP/test/Makefile.in +++ b/CoinMP/test/Makefile.in @@ -16,7 +16,7 @@ # Copyright (C) 2006 International Business Machines and others. # All Rights Reserved. -# This file is distributed under the Common Public License. +# This file is distributed under the Eclipse Public License. # Author: Andreas Waechter IBM 2006-04-13 diff --git a/Dependencies b/Dependencies index 6a5b130..7b75ef1 100644 --- a/Dependencies +++ b/Dependencies @@ -1,7 +1,5 @@ -BuildTools https://projects.coin-or.org/svn/BuildTools/stable/0.8 -CoinUtils https://projects.coin-or.org/svn/CoinUtils/stable/2.10/CoinUtils -Clp https://projects.coin-or.org/svn/Clp/stable/1.16/Clp -Osi https://projects.coin-or.org/svn/Osi/stable/0.107/Osi -Cgl https://projects.coin-or.org/svn/Cgl/stable/0.59/Cgl -Cbc https://projects.coin-or.org/svn/Cbc/stable/2.9/Cbc -Data/Sample https://projects.coin-or.org/svn/Data/Sample/stable/1.2 +CoinUtils https://github.com/coin-or/CoinUtils stable/2.11 +Osi https://github.com/coin-or/Osi stable/0.108 +Clp https://github.com/coin-or/Clp stable/1.17 +Cgl https://github.com/coin-or/Cgl stable/0.60 +Cbc https://github.com/coin-or/Cbc stable/2.10 diff --git a/Externals b/Externals deleted file mode 100644 index e54a903..0000000 --- a/Externals +++ /dev/null @@ -1,7 +0,0 @@ -BuildTools https://projects.coin-or.org/svn/BuildTools/stable/0.7 -CoinUtils https://projects.coin-or.org/svn/CoinUtils/stable/2.8/CoinUtils -Clp https://projects.coin-or.org/svn/Clp/stable/1.14/Clp -Osi https://projects.coin-or.org/svn/Osi/stable/0.105/Osi -Cgl https://projects.coin-or.org/svn/Cgl/stable/0.57/Cgl -Cbc https://projects.coin-or.org/svn/Cbc/stable/2.7/Cbc -Data/Sample https://projects.coin-or.org/svn/Data/stable/1.0/Sample diff --git a/Makefile.am b/Makefile.am index 2171751..19c8847 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ # Copyright (C) 2006 International Business Machines and others. # All Rights Reserved. -# This file is distributed under the Common Public License. +# This file is distributed under the Eclipse Public License. ## $Id$ diff --git a/Makefile.in b/Makefile.in index d4ba0e7..0b9bfca 100644 --- a/Makefile.in +++ b/Makefile.in @@ -16,7 +16,7 @@ # Copyright (C) 2006 International Business Machines and others. # All Rights Reserved. -# This file is distributed under the Common Public License. +# This file is distributed under the Eclipse Public License. # Author: Andreas Waechter IBM 2006-04-13 diff --git a/README b/README deleted file mode 100644 index fe74ddc..0000000 --- a/README +++ /dev/null @@ -1,10 +0,0 @@ -CoinMP README -============= - -For the CoinMP README file, please see the file CoinMP/README. For the -README files of other COIN-OR projects included in this distribution, -please see the README files in their associated subdirectories. - -Bjarni Kristjansson - - diff --git a/README.md b/README.md new file mode 100644 index 0000000..1aebc62 --- /dev/null +++ b/README.md @@ -0,0 +1,151 @@ +# CoinMP 1.8 + +[![A COIN-OR Project](https://coin-or.github.io/coin-or-badge.png)](https://www.coin-or.org) + +Projects such as this one are maintained by a small group of volunteers under +the auspices of the non-profit [COIN-OR Foundation](https://www.coin-or.org) +and we need your help! Please consider [sponsoring our +activities](https://github.com/sponsors/coin-or) or [volunteering](mailto:volunteer@coin-or.org) to help! + +[![Latest Release](https://img.shields.io/github/v/release/coin-or/CoinMP?sort=semver)](https://github.com/coin-or/CoinMP/releases) + +_This file is auto-generated from [config.yml](.coin-or/config.yml) using the +[generate_readme](.coin-or/generate_readme) script. +To make changes, please edit [config.yml](.coin-or/config.yml) or the generation scripts +[here](.coin-or/generate_readme) and [here](https://github.com/coin-or/coinbrew/blob/master/scripts/generate_readme)._ + +CoinMP is a C-API interface library that supports most of the +functionality of the CLP (Coin LP), CBC (Coin Branch-and-Cut), and CGL (Cut +Generation Library) projects. It is built as a shared library (`libCoinMP`, +or `CoinMP.dll` on Windows) that can be used from other C/C++ projects and +applications. The header file `CoinMP/src/CoinMP.h` contains the prototypes of all +functions of the library. + +CoinMP is written in C++ and is released as open source under the [Eclipse Public License 2.0](http://www.opensource.org/licenses/EPL-2.0). + +It is distributed under the auspices of the [COIN-OR Foundation](https://www.coin-or.org). + +The CoinMP development site is https://github.com/coin-or/CoinMP. + +## CURRENT BUILD STATUS + +[![Windows Builds](https://github.com/coin-or/CoinMP/actions/workflows/windows-ci.yml/badge.svg?branch=stable/1.8)](https://github.com/coin-or/CoinMP/actions/workflows/windows-ci.yml?query=branch%3Astable/1.8) + +[![Linux and MacOS Builds](https://github.com/coin-or/CoinMP/actions/workflows/linux-ci.yml/badge.svg?branch=stable/1.8)](https://github.com/coin-or/CoinMP/actions/workflows/linux-ci.yml?query=branch%3Astable/1.8) + +## DOWNLOAD + +What follows is a quick start guide for obtaining or building +CoinMP on common platforms. More detailed information is +available [here](https://coin-or.github.io/user_introduction.html). + +### Docker image + +There is a Docker image that provides CoinMP, as well as other projects +in the [COIN-OR Optimization +Suite](https://github.com/coin-or/COIN-OR-OptimizationSuite) [here](https://hub.docker.com/repository/docker/coinor/coin-or-optimization-suite) + +### Binaries + +For newer releases, binaries will be made available as assets attached to +releases in Github +[here](https://github.com/coin-or/CoinMP/releases). Older binaries +are archived as part of CoinMP +[here](https://www.coin-or.org/download/binary/CoinMP). + + * *Linux* (see https://repology.org/project/coinmp/versions for a complete listing): + * arch: + ``` + $ sudo pacman -S coin-or-mp + ``` + * Debian/Ubuntu: + ``` + $ sudo apt-get install coinor-libcoinmp-dev + ``` + * freebsd: + ``` + $ sudo pkg install math/coinmp + ``` + * *Windows*: The easiest way to get CoinMP on Windows is to download an archive as described above. + +* *conda* (cross-platform): + ``` + $ conda install -c conda-forge coinmp + ``` + +Due to license incompatibilities, pre-compiled binaries lack some +functionality. If binaries are not available for your platform for the latest +version and you would like to request them to be built and posted, feel free +to open a discussion on Github. + +### Source + +Source code can be obtained either by + + * Downloading a snapshot of the source code for the latest release version of CoinMP from the + [releases](https://github.com/coin-or/CoinMP/releases) page, + * Cloning this repository from [Github](https://github.com/coin-or/CoinMP), or + * Using the [coinbrew](https://github.com/coin-or/coinbrew) script to get the project and all dependencies (recommended, see below). + +### Dependencies + +CoinMP has a number of dependencies, which are detailed in +[config.yml](.coin-or/config.yml). Dependencies on other COIN-OR projects are +automatically downloaded when obtaining the source with `coinbrew`. For some +of the remaining third-party dependencies, automatic download scripts and +build wrappers are provided (and will also be automatically run for required +and recommended dependencies), while other libraries that are aeasy to obtain +must be installed using an appropriate package manager (or may come with your +OS by default). + +## BUILDING from source + +These quick start instructions assume you are in a bash shell. + +### Using `coinbrew` + +To download and build CoinMP from source, execute the +following on the command line. +``` +wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew +chmod u+x coinbrew +./coinbrew fetch CoinMP@1.8 +./coinbrew build CoinMP +``` +For more detailed instructions on coinbrew, see https://coin-or.github.io/coinbrew. +The `coinbrew` script will fetch the additional projects specified in the Dependencies section of [config.yml](.coin-or/config.yml). + +### Without `coinbrew` (Expert users) + + * Download the source code, e.g., by cloning the git repo https://github.com/coin-or/CoinMP + * Download and install the source code for the dependencies listed in [config.yml](.coin-or/config.yml) + * Build the code as follows (make sure to set PKG_CONFIG_PTH to install directory for dependencies). + +``` +./configure -C +make +make test +make install +``` + +### Example + +The `CoinMP/examples` directory has a C program that solves a few small problems +with CoinMP. After building and installing CoinMP, it can be built by running +`make` in the corresponding subdirectory of the build directory, e.g., +``` +cd build/CoinMP/1.8/examples +make +./example +``` + + +## Project Links + + * [Code of Conduct](https://www.coin-or.org/code-of-conduct/) + * [COIN-OR Web Site](http://www.coin-or.org/) + * [COIN-OR general discussion forum](https://github.com/orgs/coin-or/discussions) + * [CoinMP Discussion forum](https://github.com/coin-or/CoinMP/discussions) + * [Report a bug](https://github.com/coin-or/CoinMP/issues/new) + * [Doxygen generated documentation](http://coin-or.github.io/CoinMP/Doxygen) + diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index d974e9c..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,32 +0,0 @@ -platform: - - x64 - -environment: - matrix: - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 - ARCH: win32-msvc14 - HOST_ARCH_ARG: --enable-msvc - ADD_PATH: /mingw64/bin - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - ARCH: win32-msvc15 - HOST_ARCH_ARG: --enable-msvc - ADD_PATH: /mingw64/bin - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - ARCH: x86_64-w64-mingw32 - HOST_ARCH_ARG: --host=x86_64-w64-mingw32 - ADD_PATH: /mingw64/bin - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - ARCH: i686-w64-mingw32 - HOST_ARCH_ARG: --host=i686-w64-mingw32 - ADD_PATH: /mingw32/bin - -install: - - for /f "delims=" %%i in ('C:\msys64\usr\bin\bash -lc "if [ $APPVEYOR_REPO_BRANCH = 'master' ]; then echo 'master'; else echo $APPVEYOR_REPO_BRANCH | cut -d "/" -f 2; fi"') do set VERSION=%%i - - IF %ARCH%==win32-msvc14 (CALL C:\"Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat") - - IF %ARCH%==win32-msvc15 (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 8.1) - - C:\msys64\usr\bin\bash -lc "" - -build_script: - - C:\msys64\usr\bin\bash -lc "cd C:\projects; wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew" - - C:\msys64\usr\bin\bash -lc "cd C:\projects; ./coinbrew fetch https://github.com/%APPVEYOR_REPO_NAME%:%APPVEYOR_REPO_BRANCH% --no-prompt --no-third-party --skip-update" - - C:\msys64\usr\bin\bash -lc "cd C:\projects; export PATH=$ADD_PATH:$PATH; ./coinbrew build %APPVEYOR_PROJECT_NAME% --no-prompt --no-third-party --build=x86_64-w64-mingw32 $HOST_ARCH_ARG --verbosity=4 --test" diff --git a/configure b/configure index 400c98a..f29ea27 100755 --- a/configure +++ b/configure @@ -13,7 +13,7 @@ # Copyright 2006 International Business Machines and others. # All Rights Reserved. # This file is part of the open source package CoinMP which is distributed -# under the Common Public License. +# under the Eclipse Public License. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## @@ -958,7 +958,7 @@ gives unlimited permission to copy, distribute and modify it. Copyright 2006 International Business Machines and others. All Rights Reserved. This file is part of the open source package CoinMP which is distributed -under the Common Public License. +under the Eclipse Public License. _ACEOF exit 0 fi diff --git a/configure.ac b/configure.ac index d3a38f1..eed35fc 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ # Copyright (C) 2006 International Business Machines. # All Rights Reserved. -# This file is distributed under the Common Public License. +# This file is distributed under the Eclipse Public License. ## $Id: configure.ac 71 2006-07-14 17:44:04Z jpfasano $ @@ -18,7 +18,7 @@ AC_COPYRIGHT([ Copyright 2006 International Business Machines and others. All Rights Reserved. This file is part of the open source package CoinMP which is distributed -under the Common Public License.]) +under the Eclipse Public License.]) AC_REVISION(0.9)