Package com.opttek.optquest
Class OptQuestModelChannel
java.lang.Object
com.opttek.optquest.OptQuestModelChannel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanContinue()Queries the channel to see if the interrupt signal is set.intvoidSends an Interrupt signal to a model to gracefully shut down an optimization.
-
Constructor Details
-
OptQuestModelChannel
-
-
Method Details
-
Continue
public boolean Continue()Queries the channel to see if the interrupt signal is set. This is a query, not a command: to resume an interrupted optimization callOptQuestModel.Continue()on the model. The C API exposes this same query asOQIsAsyncContinue.- Returns:
- - true if the optimization should continue, false if no more solutions should be generated.
-
Interrupt
public void Interrupt()Sends an Interrupt signal to a model to gracefully shut down an optimization. -
GetNumberOfParallel
public int GetNumberOfParallel()
-