Class ProbabilityAlwaysDownhill
- Namespace
- NanoQL.Experimental
- Assembly
- NanoQL.dll
A probability that accepts only the points that improve on the current one: depending on the problem, the
optimizer is then very unlikely to escape a local optimum: QuantLib's ProbabilityAlwaysDownhill.
[Experimental("NQL0001")]
public sealed class ProbabilityAlwaysDownhill : IAnnealingProbability<ProbabilityAlwaysDownhill>
- Inheritance
-
ProbabilityAlwaysDownhill
- Implements
- Inherited Members
Constructors
ProbabilityAlwaysDownhill()
public ProbabilityAlwaysDownhill()
Methods
Accept(double, double, Vector)
Whether the new point is accepted (QuantLib's operator()).
public bool Accept(double currentValue, double newValue, Vector temp)
Parameters
currentValuedoubleThe current point's value.
newValuedoubleThe new point's value.
tempVectorEach dimension's temperature.
Returns
Clone()
A copy, its state included: the copy's next call equals this probability's.
public ProbabilityAlwaysDownhill Clone()
Returns
- ProbabilityAlwaysDownhill
The copy.