pwSetConfig(config) Sets the current configuration settings to the given config struct. Please use pwGetConfig to get the current configuration and adapt all fields as you wish. Always use this function to update the configuration, because in new PottersWheel versions the position of some fields may have changed and pwSetConfig will be aware of the changes. Fields are named identically as in the configuration dialog.
config = pwGetConfig; config.optimization.trustregion.maxIter = 100; config.optimization.trustregion.TolX = 1e-6; config.optimization.trustregion.TolFun = 1e-6; pwSetConfig(config);