Skip to content

Commit 3fcd86a

Browse files
committed
Removed remaining np.int references
1 parent 84d8dce commit 3fcd86a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pybobyqa/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(self, npt, x0, f0, xl, xu, f0_nsamples, n=None, abs_tol=-1e20, prec
6565
self.f_values = np.inf * np.ones((npt, )) # overall objective value for each xpt
6666
self.f_values[0] = f0
6767
self.kopt = 0 # index of current iterate (should be best value so far)
68-
self.nsamples = np.zeros((npt,), dtype=np.int) # number of samples used to evaluate objective at each point
68+
self.nsamples = np.zeros((npt,), dtype=int) # number of samples used to evaluate objective at each point
6969
self.nsamples[0] = f0_nsamples
7070
self.fbeg = self.f_values[0] # f(x0), saved to check for sufficient reduction
7171

pybobyqa/trust_region.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def trsbox(xopt, g, H, sl, su, delta, use_fortran=USE_FORTRAN):
8888
iterc = 0
8989
nact = 0 # number of fixed variables
9090

91-
xbdi = np.zeros((n,), dtype=np.int) # fix x_i at bounds? [values -1, 0, 1]
91+
xbdi = np.zeros((n,), dtype=int) # fix x_i at bounds? [values -1, 0, 1]
9292
xbdi[(xopt <= sl) & (g >= 0.0)] = -1
9393
xbdi[(xopt >= su) & (g <= 0.0)] = 1
9494

0 commit comments

Comments
 (0)