Coder Social home page Coder Social logo

Comments (7)

Thell avatar Thell commented on June 10, 2024 1

Hi again! I just wanted to report back that, yes, it can work on windows. A few additions had to be added to the coin_cbc_sys to get the path for the cbc libs and setting the link kind to static but after that it works. Hopefully the pull request for that change will get merged and then good_lp should work on windows with minimal fuss. 👍

from good_lp.

lovasoa avatar lovasoa commented on June 10, 2024

That should probably be reported to https://github.com/KardinalAI/coin_cbc instead of here

from good_lp.

Thell avatar Thell commented on June 10, 2024

Thanks, will do.
Although, if you do happen to have heard of it working or if you haven't heard of it working, that'd be nice to know too.

from good_lp.

matsujp avatar matsujp commented on June 10, 2024

I'm also facing the same issue of not being able to use good_lp on Windows. Could you please share the steps you took to make it work? I would greatly appreciate it!

from good_lp.

Thell avatar Thell commented on June 10, 2024

Unfortunately I can't. When I removed my clone from my account the PR also got removed which had the setup I was able to get working. That was as far as I went on the road to using COIN and good_lp. I ended up using HiGHS for my end solution.

from good_lp.

matsujp avatar matsujp commented on June 10, 2024

Thank you for your response! I was able to use good_lp (CBC) on Windows.
By renaming the "libCbcSolver.lib" file in the lib folder of coinor-cbc for Windows to "CbcSolver.lib" and adding the following code to build.rs in coin_cbc_sys, I was able to make it work.

fn main() {
    let _ = pkg_config::probe_library("cbc");
    println!(r"cargo:rustc-link-search= *path_to_CbcSolver.lib* ");
    println!(r"cargo:rustc-link-lib=static=CbcSolver");
    println!(r"cargo:rustc-link-lib=static=libCbc");
    println!(r"cargo:rustc-link-lib=static=libCgl");
    println!(r"cargo:rustc-link-lib=static=libCoinUtils");
    println!(r"cargo:rustc-link-lib=static=libClp");
    println!(r"cargo:rustc-link-lib=static=libOsi");
    println!(r"cargo:rustc-link-lib=static=libOsiClp");
}

from good_lp.

lovasoa avatar lovasoa commented on June 10, 2024

Good. You should make a PR in coin_cbc_sys!

from good_lp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.