Skip to content

Commit 602e31e

Browse files
committed
no log files and output only for disp=True
1 parent 892a449 commit 602e31e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

scipydirect/__init__.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ def minimize(func, bounds=None, nvar=None, args=(), disp=False,
112112
fglper=0.01,
113113
volper=-1.0,
114114
sigmaper=-1.0,
115-
logfilename='DIRresults.txt',
116115
):
117116
"""
118117
Solve an optimization problem using the DIRECT (Dividing Rectangles) algorithm.
@@ -188,9 +187,6 @@ def minimize(func, bounds=None, nvar=None, args=(), disp=False,
188187
sigmaper : float
189188
Terminate the optimization once the measure of the hyperrectangle is less
190189
than sigmaper.
191-
192-
logfilename : string
193-
Name of logfile.
194190
195191
Returns
196192
-------
@@ -237,14 +233,15 @@ def _objective_wrap(x, iidata, ddata, cdata, n, iisize, idsize, icsize):
237233
l,
238234
u,
239235
algmethod,
240-
logfilename,
236+
'dummylogfile',
241237
fglobal,
242238
fglper,
243239
volper,
244240
sigmaper,
245241
iidata,
246242
ddata,
247-
cdata
243+
cdata,
244+
disp
248245
)
249246

250247
return OptimizeResult(x=x,fun=fun, status=ierror, success=ierror>0,

0 commit comments

Comments
 (0)