Giter VIP home page Giter VIP logo

roi.plugin.cbc's Introduction

Travis-CI Build Status Coverage Status CRAN_Status_Badge

ROI plugin for COIN-OR branch and cut (CBC) solver

The package makes rcbc available as a ROI plugin. This is work in progress, but already usable.

Install

First install rcbc, then:

devtools::install_github("dirkschumacher/ROI.plugin.cbc")

Contribution

Feel free to open issues and send PRs.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

roi.plugin.cbc's People

Contributors

byapparov avatar dirkschumacher avatar hugolarzabal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

roi.plugin.cbc's Issues

Unknown solver status for timeout

If solution was terminated due to a timelimt, ROI terminates with an error

Error in make_OP_solution(solution = solution, objval = optimum, status = status,  : 
  unknown solver status code. Please contact the ROI.plugin.cbc maintainer.

Extract duals

Hi there,

I am using OMPR and CBC via the rcbc binding to solve a MILP problem.
No issues in extracting the primal for a variable cog_power[sm,t], but when I try to extract the dual variables from the OMPR solution object sol I get

get_solution(sol, cog_power[sm,t], type="dual")
Error: The solution from the solver is invalid. It is NULL or contains NAs. Maybe the solver does not export duals?

Is it because duals are not supported by RCBC, or the ROI plugin, or something else?

Thanks a lot

bounds not taken into account

Hi Dirk,

I have noticed that any special bounds added with set_bounds in ompr are not taken into account when using cbc solver.

After looking into the code, I have noticed that default bounds are set at 0 and inf or 1 depending on the variable types.
However there is nothing to translate the special bounds from ROI to Cbc. So any bounds stocked in bounds$lower$val or bounds$upper$val in ROI are replaced by the default bounds.

Gap specification

I’ve been trying to understand how to pass a relative or absolute gap to CBC through the ROI plugin but doesn’t seem to be possible. In rcbc I can use cbc_args = list(“ratioGap”=some value) but when I use control = list(“ratioGap”...) in ROI plugin I got the message “ratioGap is not available in solver cbc”. Am I missing something?

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.