|
|
@ -780,8 +780,8 @@ public class MDPSimple extends MDPExplicit implements ModelSimple |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void mvMultRight(int[] states, int[] adv, double[] source, |
|
|
|
|
|
double[] dest) { |
|
|
|
|
|
|
|
|
public void mvMultRight(int[] states, int[] adv, double[] source, double[] dest) |
|
|
|
|
|
{ |
|
|
for (int s : states) { |
|
|
for (int s : states) { |
|
|
Iterator<Entry<Integer, Double>> it = this.getTransitionsIterator(s, adv[s]); |
|
|
Iterator<Entry<Integer, Double>> it = this.getTransitionsIterator(s, adv[s]); |
|
|
while (it.hasNext()) { |
|
|
while (it.hasNext()) { |
|
|
@ -833,9 +833,11 @@ public class MDPSimple extends MDPExplicit implements ModelSimple |
|
|
if (set.get(i) == null) { |
|
|
if (set.get(i) == null) { |
|
|
Object a = getAction(s, i); |
|
|
Object a = getAction(s, i); |
|
|
if (action == null) { |
|
|
if (action == null) { |
|
|
if (a == null) return i; |
|
|
|
|
|
|
|
|
if (a == null) |
|
|
|
|
|
return i; |
|
|
} else { |
|
|
} else { |
|
|
if (action.equals(a)) return i; |
|
|
|
|
|
|
|
|
if (action.equals(a)) |
|
|
|
|
|
return i; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -844,9 +846,11 @@ public class MDPSimple extends MDPExplicit implements ModelSimple |
|
|
if (distr.equals(set.get(i))) { |
|
|
if (distr.equals(set.get(i))) { |
|
|
Object a = getAction(s, i); |
|
|
Object a = getAction(s, i); |
|
|
if (action == null) { |
|
|
if (action == null) { |
|
|
if (a == null) return i; |
|
|
|
|
|
|
|
|
if (a == null) |
|
|
|
|
|
return i; |
|
|
} else { |
|
|
} else { |
|
|
if (action.equals(a)) return i; |
|
|
|
|
|
|
|
|
if (action.equals(a)) |
|
|
|
|
|
return i; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|