![]() |
Prev | Next |
dismod_at
program can be compiled by any C++98 compliant compiler;
e.g., g++
.
(Note that a C++11 compiler would be better.)
ipopt
which in turn
is required by dismod_at
.
dismod_at
.
dismod_at
.
numpy
, matplotlib
, scipy
, build
.
sqlite-devel
.
gsl-devel
.
suitesparse-devel
.
git clone https://github.com/bradbell/dismod_at.git dismod_at.git
cd dismod_at.git
You can determine the
git_hash
and version number
corresponding to this checkout of the master branch using the commands:
git show-ref | grep 'refs/heads/master'
grep '^SET(dismod_at_version' CMakeLists.txt
You can checkout an old version corresponding to a specific
git_hash
,
and check its version number, using the commands:
git checkout -q git_hash
grep '^SET(dismod_at_version' CMakeLists.txt
path_name
.
Use the command
echo $path_name
to see if your initial path is empty. If it is empty,
use the command
export path_name=directory
to add
directory
to the path.
If it is non-empty, use
export path_name="$path_name:directory"
to add
directory
to the path.
sqlite3
and gsl
are installed
the following commands should work:
pkg-config sqlite3 --modversion
pkg-config gsl --modversion
If one of them fails, a corresponding directory is missing
from the PKG_CONFIG_PATH
environment variable.
If
prefix
is the prefix where gsl
was installed,
the command
find -L prefix -name gsl.pc 2> /dev/null
should find the directory where gsl.pc
is located.
After cppad_mixed
is installed (see below),
the following command should work:
pkg-config pkg --modversion
where
pkg
is any of the
special requirements
below.
(There is one exception, the eigen package uses eigen3
for
pkg
above.)
If one of these commands fails,
find -L dismod_at_prefix -name pkg.pc 2> /dev/null
should find the directory where
pkg.pc
is located;
see dismod_at_prefix
.
LD_LIBRARY_PATH
in order for
dismod_at
to work.
dismod_at
from any directory.
If you get the error dismod_at: command not found
,
you will need to add the binary install directory to you path.
Use the following command to find it:
find -L dismod_at_prefix -name dismod_at 2> /dev/null
see dismod_at_prefix
.
python3
import dismod_at
quit()
where
python3
is your
python3 executable
.
If you get the error No module named 'dismod_at'
,
you will need to add the directory where the module is installed
to your python path.
Use the following command to find it:
find -L dismod_at_prefix -name site-packages 2> /dev/null
bin/get_cppad_mixed.sh
(see below)
includes an install of eigen.
bin/get_cppad_mixed.sh
(see below)
includes an install of ipopt.
bin/get_cppad_mixed.sh
(see below)
includes an install of cppad.
dismod_at.git
directory, the command
bin/get_cppad_mixed.sh
can be used to install eigen, ipopt, and cppad_mixed.
This script also serves as an example of how to install cppad_mixed.
dismod_at
(unless the release_notes
say otherwise).
The steps below will need to be executed each time you install
a new version of dismod_at
:
bin/run_cmake.sh
to work for your system,
in the dismod_at.git
directory
execute the following command:
bin/run_cmake.sh
The script also serves as an example of how to install dismod_at.
build/devel/dismod_at
:
cd build
make
cd ..
cd build
make check
make speed
cd ..
Some of the tests use different random number simulations each time
they are run.
If you get a correctness check failure during a make check
or make speed
, try running the make command again.
If you get the same correctness check fails twice in a row,
there probably is a problem and
you should get help from the dismod_at
development team.
cd build
make install install_python
cd ..
dismod_at
.
The section get_started
contains a list of examples and tests
of using dismod_at
.
These tests are run as part of the make check
command above.