* [bug#48640] Cbc (COIN-OR)
@ 2021-05-25 6:01 Eric Brown
2021-05-28 20:16 ` bug#48640: " Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Eric Brown @ 2021-05-25 6:01 UTC (permalink / raw)
To: 48640
[-- Attachment #1: Type: text/plain, Size: 106 bytes --]
Hello All,
Please see the attached patch for Cbc, which is a branch-and-cut solver.
Best regards,
Eric
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-cbc.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-cbc.patch", Size: 1813 bytes --]
From b48d0a90603b7b2b8263c2e86e45b33cf787974c Mon Sep 17 00:00:00 2001
From: Eric Brown <ecbrown@ericcbrown.com>
Date: Tue, 25 May 2021 00:58:50 -0500
Subject: [PATCH] gnu: Add cbc.
* gnu/packages/maths.scm (cbc): New variable.
---
gnu/packages/maths.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index ee0a69bbd7..63ca2979ae 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -1795,6 +1795,37 @@ large-scale nonlinear optimization. It provides C++, C, and Fortran
interfaces.")
(license license:epl1.0)))
+(define-public cbc
+ (package
+ (name "cbc")
+ (version "2.10.5")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://www.coin-or.org/download/source/"
+ "Cbc/Cbc-" version ".tgz"))
+ (sha256
+ (base32
+ "0wk9vr6zc62gw71v7gnra5wxqlcljcgbhm5lasx236v791b986ns"))
+ (modules '((guix build utils)))
+ (snippet
+ ;; Make sure we don't use the bundled software.
+ '(begin
+ (delete-file-recursively "ThirdParty")
+ #t))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("gfortran" ,gfortran)
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("openblas" ,openblas)))
+ (home-page "https://www.coin-or.org")
+ (synopsis "Branch-and-Cut solver")
+ (description
+ "Cbc (Coin-or branch and cut) is an open-source mixed integer linear
+programming solver written in C++. It can be used as a callable library or
+using a stand-alone executable.")
+ (license license:epl1.0)))
+
(define-public clp
(package
(name "clp")
--
2.31.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#48640: Cbc (COIN-OR)
2021-05-25 6:01 [bug#48640] Cbc (COIN-OR) Eric Brown
@ 2021-05-28 20:16 ` Ludovic Courtès
2021-05-30 19:36 ` [bug#48640] " Eric Brown
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2021-05-28 20:16 UTC (permalink / raw)
To: Eric Brown; +Cc: 48640-done
[-- Attachment #1: Type: text/plain, Size: 541 bytes --]
Hi Eric,
"Eric Brown" <ecbrown@ericcbrown.com> skribis:
> From b48d0a90603b7b2b8263c2e86e45b33cf787974c Mon Sep 17 00:00:00 2001
> From: Eric Brown <ecbrown@ericcbrown.com>
> Date: Tue, 25 May 2021 00:58:50 -0500
> Subject: [PATCH] gnu: Add cbc.
>
> * gnu/packages/maths.scm (cbc): New variable.
Applied with the changes below: returning #t at the end of
phases/snippets is no longer necessary, and mentioning “open source” is
unnecessary as well since everything in here is free software. :-)
Thanks!
Ludo’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1207 bytes --]
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 614eacfccf..59598a242d 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -1812,9 +1812,7 @@ interfaces.")
(modules '((guix build utils)))
(snippet
;; Make sure we don't use the bundled software.
- '(begin
- (delete-file-recursively "ThirdParty")
- #t))))
+ '(delete-file-recursively "ThirdParty"))))
(build-system gnu-build-system)
(native-inputs
`(("gfortran" ,gfortran)
@@ -1822,11 +1820,11 @@ interfaces.")
(inputs
`(("openblas" ,openblas)))
(home-page "https://www.coin-or.org")
- (synopsis "Branch-and-Cut solver")
+ (synopsis "Branch-and-cut solver")
(description
- "Cbc (Coin-or branch and cut) is an open-source mixed integer linear
-programming solver written in C++. It can be used as a callable library or
-using a stand-alone executable.")
+ "Cbc (Coin-or branch and cut) is a mixed integer linear programming
+solver written in C++. It can be used as a library or as a standalone
+executable.")
(license license:epl1.0)))
(define-public clp
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#48640] Cbc (COIN-OR)
2021-05-28 20:16 ` bug#48640: " Ludovic Courtès
@ 2021-05-30 19:36 ` Eric Brown
0 siblings, 0 replies; 3+ messages in thread
From: Eric Brown @ 2021-05-30 19:36 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 48640-done
Ludovic Courtès <ludo@gnu.org> writes:
>
> Applied with the changes below: returning #t at the end of
> phases/snippets is no longer necessary, and mentioning “open source” is
> unnecessary as well since everything in here is free software. :-)
>
> Thanks!
>
> Ludo’.
Roger that, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-30 19:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25 6:01 [bug#48640] Cbc (COIN-OR) Eric Brown
2021-05-28 20:16 ` bug#48640: " Ludovic Courtès
2021-05-30 19:36 ` [bug#48640] " Eric Brown
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).