Class MatlabUtils
java.lang.Object
org.tweetyproject.logics.pcl.util.MatlabUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Simple application example yielding the matlab script for spam example from [Potyka, Thimm, 2014].static void
printAntecedenceVerificationMatrix
(PrintStream out, PclBeliefSet beliefSet, Set<PossibleWorld> worlds) Print antecedence verification matrix (1 if antecedence is satisfied, 0 otherwise)static void
printConditionalVerificationMatrix
(PrintStream out, PclBeliefSet beliefSet, Set<PossibleWorld> worlds) Print conditional verification matrix (1 if antecedence and consequence are satisfied, 0 otherwise)static void
printConstraintMatrix
(PrintStream out, PclBeliefSet beliefSet, Set<PossibleWorld> worlds) Print constraint matrix for belief set and possible worlds to output stream.static void
printMEConsolidationProblem
(PrintStream out, int n, String p) Print optimization problem corresponding to ME consolidation.static void
printMinimumViolationProblem
(PrintStream out, int n, String p) Print optimization problem corresponding to minimal violation measure.
-
Constructor Details
-
MatlabUtils
public MatlabUtils()Default Constructor
-
-
Method Details
-
printConstraintMatrix
public static void printConstraintMatrix(PrintStream out, PclBeliefSet beliefSet, Set<PossibleWorld> worlds) Print constraint matrix for belief set and possible worlds to output stream.- Parameters:
out
- some print streambeliefSet
- some belief setworlds
- a set of possible worlds
-
printConditionalVerificationMatrix
public static void printConditionalVerificationMatrix(PrintStream out, PclBeliefSet beliefSet, Set<PossibleWorld> worlds) Print conditional verification matrix (1 if antecedence and consequence are satisfied, 0 otherwise)- Parameters:
out
- some print streambeliefSet
- some belief setworlds
- a set of possible worlds
-
printAntecedenceVerificationMatrix
public static void printAntecedenceVerificationMatrix(PrintStream out, PclBeliefSet beliefSet, Set<PossibleWorld> worlds) Print antecedence verification matrix (1 if antecedence is satisfied, 0 otherwise)- Parameters:
out
- some print streambeliefSet
- some belief setworlds
- a set of possible worlds
-
printMinimumViolationProblem
Print optimization problem corresponding to minimal violation measure. Call printConstraintMatrix first to define constraint matrix A.- Parameters:
out
- some print streamn
- number of worldsp
- norm
-
printMEConsolidationProblem
Print optimization problem corresponding to ME consolidation. Call printConstraintMatrix and printMinimumViolationProblem first to define constraint matrix A and to compute minimal violation measure.- Parameters:
out
- some print streamn
- number of worldsp
- norm
-
main
Simple application example yielding the matlab script for spam example from [Potyka, Thimm, 2014].- Parameters:
args
- app parameters- Throws:
ParserException
- if parsing failsIOException
- if an IO issue occurs.
-