Issue 1:
When I changed the minimize method to "trust-constr" I got the TypeError. TypeError does not appear if verbose is set to 0 or 1.

Reproducing code example:

cons = ({'type':'ineq','fun': lambda params: params[31]},\
{'type':'ineq','fun': lambda params: params[-1]})

opts = {'maxiter': 1000, 'verbose': 3, 'factorization_method': 'SVDFactorization'}

result = scipy.optimize.minimize(func_value,params,args=(func_args), method='trust-constr', \
options=opts,constraints=cons)

Error message:

File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\_minimize.py", line 628, in minimize return _minimize_trustregion_constr(fun, x0, args, jac, hess, hessp,

File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\_trustregion_constr\minimize_trustregion_constr.py", line 509, in _minimize_trustregion_constr
_, result = tr_interior_point(

File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\_trustregion_constr\tr_interior_point.py", line 321, in tr_interior_point
z, state = equality_constrained_sqp(

File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\_trustregion_constr\equality_constrained_sqp.py", line 93, in equality_constrained_sqp
while not stop_criteria(state, x, last_iteration_failed,

File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\_trustregion_constr\tr_interior_point.py", line 251, in stop_criteria
if self.global_stop_criteria(state, x,

File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\_trustregion_constr\minimize_trustregion_constr.py", line 449, in stop_criteria
BasicReport.print_iteration(state.nit,

File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\_trustregion_constr\report.py", line 28, in print_iteration
print(fmt.format(*args))

TypeError: unsupported format string passed to numpy.ndarray.__format__

Scipy/Numpy/Python version information:

1.5.0 1.19.1 sys.version_info(major=3, minor=8, micro=3, releaselevel='final', serial=0)

Issue 2:
Making the move from using an SLSQP to trust-constr and wanted to make use of the verbose option. The error does not occur with 'verbose': 0 or 1.

Reproducing code example:

bnds = Bounds(-5,5)

opts = {'maxiter' : 1000, 'verbose' : 2, 'factorization_method' : 'QRFactorization'}

res = minimize(lambda z: cost(z,to), x0=z0, method='trust-constr', bounds=bnds, constraints=constraints, options=opts)

Error message:

Exception has occurred: TypeError
unsupported format string passed to numpy.ndarray.__format__
File "C:\Users\Jack\AppData\Roaming\Python\Python37\site-packages\scipy\optimize\_trustregion_constr\report.py", line 22, in print_iteration
print(fmt.format(*args))
File "C:\Users\Jack\AppData\Roaming\Python\Python37\site-packages\scipy\optimize\_trustregion_constr\minimize_trustregion_constr.py", line 454, in stop_criteria
state.constr_violation)
File "C:\Users\Jack\AppData\Roaming\Python\Python37\site-packages\scipy\optimize\_trustregion_constr\tr_interior_point.py", line 257, in stop_criteria
self.tolerance):
File "C:\Users\Jack\AppData\Roaming\Python\Python37\site-packages\scipy\optimize\_trustregion_constr\equality_constrained_sqp.py", line 96, in equality_constrained_sqp
trust_radius, penalty, cg_info):
File "C:\Users\Jack\AppData\Roaming\Python\Python37\site-packages\scipy\optimize\_trustregion_constr\tr_interior_point.py", line 329, in tr_interior_point
factorization_method, trust_lb, trust_ub, subprob.scaling)
File "C:\Users\Jack\AppData\Roaming\Python\Python37\site-packages\scipy\optimize\_trustregion_constr\minimize_trustregion_constr.py", line 519, in _minimize_trustregion_constr
factorization_method)
File "C:\Users\Jack\AppData\Roaming\Python\Python37\site-packages\scipy\optimize\_minimize.py", line 612, in minimize
callback=callback, **options)
File "F:\JackProfile\OneDrive\Python\main.py", line 294, in <module>
res = minimize(lambda z: cost(z,to), x0=z0, method='trust-constr', bounds=bnds, constraints=constraints, options=opts)
File "C:\Users\Jack\AppData\Local\Programs\Python\Python37-32\Lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Jack\AppData\Local\Programs\Python\Python37-32\Lib\runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "C:\Users\Jack\AppData\Local\Programs\Python\Python37-32\Lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)

Scipy/Numpy/Python version information:

1.3.1 1.17.2 sys.version_info(major=3, minor=7, micro=4, releaselevel='final', serial=0)