FULLY WORKING VERSION ACHIEVED - fixed all remaining bugs, adjusted parameters for heavy ball method. Both now return density modulated states similar to Santo Roccuzzo's result.
This commit is contained in:
parent
7e5aa3df23
commit
055ca7ddc9
@ -20,7 +20,7 @@ OptionsStruct.UseApproximationForLHY = true;
|
|||||||
OptionsStruct.IncludeDDICutOff = true;
|
OptionsStruct.IncludeDDICutOff = true;
|
||||||
OptionsStruct.CutoffType = 'Cylindrical';
|
OptionsStruct.CutoffType = 'Cylindrical';
|
||||||
OptionsStruct.SimulationMode = 'EnergyMinimization'; % 'ImaginaryTimeEvolution' | 'RealTimeEvolution' | 'EnergyMinimization'
|
OptionsStruct.SimulationMode = 'EnergyMinimization'; % 'ImaginaryTimeEvolution' | 'RealTimeEvolution' | 'EnergyMinimization'
|
||||||
OptionsStruct.GradientDescentMethod = 'NonLinearCGD'; % 'HeavyBall' | 'NonLinearCGD'
|
OptionsStruct.GradientDescentMethod = 'HeavyBall'; % 'HeavyBall' | 'NonLinearCGD'
|
||||||
OptionsStruct.MaxIterationsForGD = 2E5;
|
OptionsStruct.MaxIterationsForGD = 2E5;
|
||||||
OptionsStruct.TimeStepSize = 1E-4; % in s
|
OptionsStruct.TimeStepSize = 1E-4; % in s
|
||||||
OptionsStruct.MinimumTimeStepSize = 2E-10; % in s
|
OptionsStruct.MinimumTimeStepSize = 2E-10; % in s
|
||||||
|
@ -8,9 +8,9 @@ function [psi] = runGradientDescent(this,psi,Params,Transf,VDk,V,Observ)
|
|||||||
switch this.GradientDescentMethod
|
switch this.GradientDescentMethod
|
||||||
case 'HeavyBall'
|
case 'HeavyBall'
|
||||||
% Convergence Criteria:
|
% Convergence Criteria:
|
||||||
alpha = 1E-6;
|
alpha = 1E-3;
|
||||||
beta = 0.9;
|
beta = 0.9;
|
||||||
epsilon = 1E-8;
|
epsilon = 1E-6;
|
||||||
|
|
||||||
Observ.residual = 1;
|
Observ.residual = 1;
|
||||||
Observ.res = 1;
|
Observ.res = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user