h['objval'] = np.zeros(MAX_ITER) code example
Example: declare numpy zeros matrix python
import numpy as np
dimensions = (3, 3)
np.zeros(dimensions) # 3x3 zeros matrix
import numpy as np
dimensions = (3, 3)
np.zeros(dimensions) # 3x3 zeros matrix