ActiveSetSequentialQuadraticProgrammingOptimizerMultithreaded Property |
Gets or sets a value indicating whether this optimizer should evaluate an iteration with as many threads as the current threading
policy facet will allow, or with as many
Variables
as there are in the function plus 1; whichever is less. By default this is
.
Namespace:
AGI.Foundation.NumericalMethods
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public override bool Multithreaded { get; set; }
Public Overrides Property Multithreaded As Boolean
Get
Set
public:
virtual property bool Multithreaded {
bool get () override;
void set (bool value) override;
}
abstract Multithreaded : bool with get, set
override Multithreaded : bool with get, set
Property Value
Type:
BooleanRemarks
There are some situations where the multithreaded algorithm will be slower than the single threaded.
Multi-threaded may be slower if the time it takes to compute the function is fast when compared to the
overhead of setting up the threads, or if the overall optimizer will converge to a solution in very
few iterations and there are many variables relative to the number of threads.
The specific algorithm you implement may fundamentally be single threaded. In that case it
is acceptable to ignore this property.
See Also