A fast parameter sampler and optimiser based on differential evolution.
Diver is written in Fortran2003. We originally wrote it with applications in particle physics and astronomy in mind, but there is nothing to prevent its use in other fields.
The code and its options are described in detail in the ScannerBit paper included in the distribution. Any papers that use results or insights obtained with Diver should cite this paper:
- Martinez, McKay, Farmer, Scott, Roebber, Putze & Conrad 2017, submitted to European Physical Journal C, arXiv:1705.07959
The Diver build system is not really complex enough to require autotools or cmake. Just change the makefile by hand to suit your system, or call it from another makefile or the command line with overrides.
To build Diver as a static library, and build all examples, do
make
To instead build Diver as a shared library, do
make libdiver.so
To build only the static library, do
make libdiver.a
To build only the Fortran, C and C++ examples, do
make example_f
make example_c
make example_cpp
The executables will appear in the Diver root directory. (You should run them.)
The actual license is below. In simple terms: Diver is free for academic use (no need to ask us), potentially free for other non-profit use (but you need to ask us explicitly), and not free for commercial use (you'll likely need to make some sort of contribution to our research budget or similar in that case).
Contact: p.scott@imperial.ac.uk
Copyright 2017 Elinore Roebber and Pat Scott
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Use of the software must occur exclusively in an academic context.
-
Publications that include results or insights obtained using the software must cite the literature listed above.
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
Use of the software outside academic contexts requires contacting the copyright holders to make alternative licensing arrangements.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.