Skip to content

Commit

Permalink
v0.9.5: Minor code and example improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocabert committed Aug 30, 2020
1 parent 67e84aa commit 3a16c6e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 31 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ set(PACKAGE "\"MoRIS\"")
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
set(VERSION_MAJOR 0)
set(VERSION_MINOR 9)
set(VERSION_PATCH 4)
set(VERSION_PATCH 5)


#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
Expand Down
45 changes: 21 additions & 24 deletions example/parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,23 @@ EXEC_PATH ../build/bin/MoRIS_run
// Set input files
///////////////////////////////////////////////////////////////

NETWORK_FILE input/network.txt
MAP_FILE input/map.txt
SAMPLE_FILE input/sample.txt
NETWORK_FILE ./input/network.txt
MAP_FILE ./input/map.txt
SAMPLE_FILE ./input/sample.txt


///////////////////////////////////////////////////////////////
// Set main parameters
///////////////////////////////////////////////////////////////

SEED 987654
SEED 1234
TYPE_OF_DATA PRESENCE_ABSENCE
REPETITIONS_BY_SIMULATION 500
REPETITIONS_BY_SIMULATION 1000
NUMBER_OF_ITERATIONS 25
JUMP_LAW LOG_NORMAL
OPTIMIZATION_FUNCTION LOG_LIKELIHOOD
HUMAN_ACTIVITY_INDEX YES
WMIN 0.0

///////////////////////////////////////////////////////////////
// Set default parameter values
Expand All @@ -63,27 +65,25 @@ W3_DEFAULT 1.0
W4_DEFAULT 1.0
W5_DEFAULT 0.0
W6_DEFAULT 0.0
WMIN_DEFAULT 0.0


///////////////////////////////////////////////////////////////
// Set parameters to optimize
///////////////////////////////////////////////////////////////

OPTIMIZE_XINTRO TRUE
OPTIMIZE_YINTRO TRUE
OPTIMIZE_PINTRO FALSE
OPTIMIZE_LAMBDA TRUE
OPTIMIZE_MU TRUE
OPTIMIZE_SIGMA TRUE
OPTIMIZE_GAMMA FALSE
OPTIMIZE_W1 FALSE
OPTIMIZE_W2 FALSE
OPTIMIZE_W3 FALSE
OPTIMIZE_W4 FALSE
OPTIMIZE_W5 FALSE
OPTIMIZE_W6 FALSE
OPTIMIZE_WMIN FALSE
OPTIMIZE_XINTRO YES
OPTIMIZE_YINTRO YES
OPTIMIZE_PINTRO NO
OPTIMIZE_LAMBDA YES
OPTIMIZE_MU YES
OPTIMIZE_SIGMA YES
OPTIMIZE_GAMMA NO
OPTIMIZE_W1 YES
OPTIMIZE_W2 YES
OPTIMIZE_W3 YES
OPTIMIZE_W4 YES
OPTIMIZE_W5 NO
OPTIMIZE_W6 NO


///////////////////////////////////////////////////////////////
Expand All @@ -105,7 +105,7 @@ LAMBDA_MAX 30.0
MU_MIN 0.0
MU_MAX 30.0

SIGMA_MIN 0.0
SIGMA_MIN 0.1
SIGMA_MAX 3.0

GAMMA_MIN 0.0
Expand All @@ -128,6 +128,3 @@ W5_MAX 1.0

W6_MIN 0.0
W6_MAX 1.0

WMIN_MIN 0.0
WMIN_MAX 1.0
12 changes: 6 additions & 6 deletions example/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
../../build/bin/MoRIS_run \
../build/bin/MoRIS_run \
-map ./input/map.txt \
-network ./input/network.txt \
-sample ./input/sample.txt \
Expand All @@ -9,18 +9,18 @@
-law LOG_NORMAL \
-optimfunc LOG_LIKELIHOOD \
-humanactivity YES \
-wmin 0.0 \
-xintro 59891.22 \
-yintro 31742.16 \
-pintro 1.0 \
-lambda 23.13390 \
-mu 6.4951562 \
-sigma 0.174736073 \
-gamma 0.0 \
-w1 1.0 \
-w2 1.0 \
-w3 1.0 \
-w4 1.0 \
-w1 0.8232030 \
-w2 0.10088199 \
-w3 0.073098341 \
-w4 0.013589526 \
-w5 0.0 \
-w6 0.0 \
-wmin 0.0 \
-save-outputs

0 comments on commit 3a16c6e

Please sign in to comment.