Browse Source

disabling ignored weights due to a numerical problem (multi(Pmax=?[F s1=7&s2=7&d1+d2=7],Pmax=?[F s1=7&s2=7&d1+d2=8]) with two-dice.nm)

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@6256 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Vojtech Forejt 13 years ago
parent
commit
f2b3b9bd7b
  1. BIN
      prism/ext/lp_solve_5.5_java/lib/mac/liblpsolve55j.jnilib
  2. 5
      prism/src/sparse/PS_NondetMultiObj.cc
  3. 3
      prism/src/sparse/PS_NondetMultiObjGS.cc

BIN
prism/ext/lp_solve_5.5_java/lib/mac/liblpsolve55j.jnilib

Binary file not shown.

5
prism/src/sparse/PS_NondetMultiObj.cc

@ -130,13 +130,14 @@ JNIEXPORT jdoubleArray __jlongpointer JNICALL Java_sparse_PrismSparse_PS_1Nondet
//from the combined value. We must make sure that this reward has nonzero weight,
//otherwise we can't compute it.
int ignoredWeight = -1;
/* HOTFIX: not used for numerical problems
for (i = lenProb + lenRew - 1; i>=0; i--) {
if (weights[i] > 0) {
ignoredWeight = i;
break;
}
}
}*/
//determine the minimal nonzero weight
double min_weight = 1;

3
prism/src/sparse/PS_NondetMultiObjGS.cc

@ -133,12 +133,13 @@ JNIEXPORT jdoubleArray __jlongpointer JNICALL Java_sparse_PrismSparse_PS_1Nondet
//otherwise we can't compute it.
int ignoredWeight = -1;
/* HOTFIX not used for numerical problems
for (i = lenProb + lenRew - 1; i>=0; i--) {
if (weights[i] > 0) {
ignoredWeight = i;
break;
}
}
}*/
//determine the minimal nonzero weight
double min_weight = 1;

Loading…
Cancel
Save