java.lang.Object
org.bigraphs.framework.simulation.modelchecking.ModelCheckingStrategySupport<B>
org.bigraphs.framework.simulation.modelchecking.SimulatedAnnealingFrontierStrategy<B>
- All Implemented Interfaces:
ModelCheckingStrategy<B>
public abstract class SimulatedAnnealingFrontierStrategy<B extends Bigraph<? extends Signature<?>>>
extends ModelCheckingStrategySupport<B>
- Author:
- Dominik Grzelak
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bigraphs.framework.simulation.modelchecking.ModelCheckingStrategySupport
ModelCheckingStrategySupport.MatchResult<B extends Bigraph<? extends Signature<?>>> -
Field Summary
FieldsFields inherited from class org.bigraphs.framework.simulation.modelchecking.ModelCheckingStrategySupport
decoder, encoder, logger, modelChecker, occurrenceCounter, predicateChecker -
Constructor Summary
ConstructorsConstructorDescriptionSimulatedAnnealingFrontierStrategy(List<B> goalExemplars, double initialTemperature, int epochSize, int fairnessK) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddToWorklist(Collection<B> worklist, B bigraph) protected doublecool_geometric(double currentT, int epoch) Geometric cooling schedule: T invalid input: '<'- alpha * Tprotected doublecool_linear(double t, int epoch) protected doublecool_log(double t0, int epoch) protected Collection<B> protected doublegraphKernel(B graphA, B graphB) A bigraph kernel (e.g., Weisfeiler–Lehman) over the encoded graphs.protected doubleNormalized bigraph kernel for two bigraphs.protected BremoveNext(Collection<B> worklist) Called when the framework wants the next state to expand.withModelChecker(BigraphModelChecker<B> modelChecker) Methods inherited from class org.bigraphs.framework.simulation.modelchecking.ModelCheckingStrategySupport
evaluatePredicates, getBigraphMatches, resetOccurrenceCounter, synthesizeTransitionSystem
-
Field Details
-
energyEps
protected double energyEps -
maxEpoch
public int maxEpoch
-
-
Constructor Details
-
SimulatedAnnealingFrontierStrategy
-
-
Method Details
-
withModelChecker
-
createWorklist
- Specified by:
createWorklistin classModelCheckingStrategySupport<B extends Bigraph<? extends Signature<?>>>
-
removeNext
Called when the framework wants the next state to expand. State is picked from worklist using either fairness FIFO or SA Boltzmann sampling.- Specified by:
removeNextin classModelCheckingStrategySupport<B extends Bigraph<? extends Signature<?>>>
-
addToWorklist
- Specified by:
addToWorklistin classModelCheckingStrategySupport<B extends Bigraph<? extends Signature<?>>>
-
graphKernel
A bigraph kernel (e.g., Weisfeiler–Lehman) over the encoded graphs. Return a non-negative similarity value. -
kTilde
Normalized bigraph kernel for two bigraphs.The specific kernel specified in
graphKernel(Bigraph, Bigraph)must be implemented via subclassing.- Parameters:
s- left bigraphg- right bigraph
-
cool_geometric
protected double cool_geometric(double currentT, int epoch) Geometric cooling schedule: T invalid input: '<'- alpha * T -
cool_linear
protected double cool_linear(double t, int epoch) -
cool_log
protected double cool_log(double t0, int epoch)
-