dpest.utils.nphinored#

dpest.utils.nphinored.nphinored(pst_path, new_value)[source]#

Updates the NPHINORED parameter in a PEST control (.pst) file.

NPHINORED specifies the number of iterations without objective function reduction to trigger optimization termination. This function allows you to set NPHINORED to any integer value greater than zero.

Required Arguments:#

  • pst_path (str):

    Path to the .pst file to modify

  • new_value (int):

    New value for NPHINORED (must be an integer > 0)

Returns:#

  • None

Example:#

Set NPHINORED to 5:

from dpest.utils import nphinored

nphinored("PEST_CONTROL.pst", 5)