SPSA¶
-
public class
SPSA
¶ Implements SPSA optimisation algorithm (Simultaneous Perturbation Stochastic Approximation). This version optimises the cells of the OD matrix. http://www.jhuapl.edu/SPSA/
Author: Milan Lovric
Fields¶
Methods¶
getLossFunctionEvaluations¶
getThetaEstimate¶
-
public RealODMatrix
getThetaEstimate
()¶ Getter function for the optimisation result (OD matrix).
Returns: Estimated OD matrix.
initialise¶
-
public void
initialise
(RoadNetworkAssignment rna, Properties props, RealODMatrix initialTheta, double a, double A, double c, double alpha, double gamma)¶ Initialise the SPSA algorithm with starting values.
Parameters: - rna – Road network assignment.
- props – Parameters from the config file.
- initialTheta – Initial OD matrix.
- a – SPSA parameter.
- A – SPSA parameter.
- c – SPSA parameter.
- alpha – SPSA parameter.
- gamma – SPSA parameter.