From bf186bc93c15428a0b0675a4a4bb4bf32b36be94 Mon Sep 17 00:00:00 2001 From: Spencer Lee Date: Sat, 30 Mar 2024 01:12:05 -0400 Subject: [PATCH] Added juqbox ipopt parametersd maxIter and lbfgsMax --- examples/Publication/cnot3_optimization.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/Publication/cnot3_optimization.jl b/examples/Publication/cnot3_optimization.jl index c66a1aa..ec8fe57 100644 --- a/examples/Publication/cnot3_optimization.jl +++ b/examples/Publication/cnot3_optimization.jl @@ -1,4 +1,3 @@ - #========================================================== This routine initializes an optimization problem to recover a CNOT gate on a coupled 3-qubit system. In particular, @@ -225,6 +224,10 @@ end # min and max B-spline coefficient values minCoeff, maxCoeff = Juqbox.assign_thresholds(params,D1,maxpar) +# for ipopt +maxIter = 150 # 0 # use the parameters on file # 100 # needs more than 100 iter to converge properly +lbfgsMax = 250 # optional argument + # output run information println("*** Settings ***") println("Frequencies: Alice = ", fa, " Bob = ", fb, " Storage = ", fs)