Skip to content

The int nviter is not increased in the OUT.DAT #3025

@ajpearcey

Description

@ajpearcey

The number of iterations of the vmcon optimisation is given by the int nviter. It gives useful info in diagnosing how the solver is failing to find a solution. I do not think it is updating correctly currently. For instance the large-tokamak scenario produces the OUT.DAT:

 VMCON error flag                                                         (ifail)                           1     
 Number of iteration variables                                            (nvar)                           45     
 Number of constraints (total)                                            (neqns+nineqns)                  26     
 Optimisation switch                                                      (ioptimz)                         1     
 Figure of merit switch                                                   (minmax)                          1     
 Square root of the sum of squares of the constraint residuals            (sqsumsq)                 5.381E-05  OP 
 VMCON convergence parameter                                              (convergence_parameter)   0.000E+00  OP 
 Normalised objective function                                            (norm_objf)               1.600E+00  OP 
 Number of VMCON iterations                                               (nviter)                          0  OP 

ifail = 1 and nviter = 0 should be inconsistent. This is making it hard to work out whether the solver really does give up on the first QSP or not.

ref: @timothy-nunn @jonmaddock

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions