Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target s390x --nodeps /builddir/build/SPECS/python-openopt.spec'], chrootPath='/var/lib/mock/fedora-rawhide-s390x-1691121852.759798/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.0k6ai062:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.0k6ai062:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '3d2d0096a59a4561b8556277bd757fd1', '-D', '/var/lib/mock/fedora-rawhide-s390x-1691121852.759798/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.0k6ai062:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target s390x --nodeps /builddir/build/SPECS/python-openopt.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: s390x Building for target s390x setting SOURCE_DATE_EPOCH=1689897600 Wrote: /builddir/build/SRPMS/python-openopt-0.5629-13.fc39.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target s390x --nodeps /builddir/build/SPECS/python-openopt.spec'], chrootPath='/var/lib/mock/fedora-rawhide-s390x-1691121852.759798/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.0k6ai062:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.0k6ai062:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '5a34107c79234e29a072e18c2e1ca4b9', '-D', '/var/lib/mock/fedora-rawhide-s390x-1691121852.759798/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.0k6ai062:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target s390x --nodeps /builddir/build/SPECS/python-openopt.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: s390x Building for target s390x setting SOURCE_DATE_EPOCH=1689897600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.T7VWUC + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf openopt-0.5629 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/openopt-0.5629.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd openopt-0.5629 + rm -rf /builddir/build/BUILD/openopt-0.5629-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/openopt-0.5629-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + for lib in openopt/solvers/Standalone/tsp.py openopt/__init__.py openopt/kernel/mfa.py + sed '1{\@^#!.*@d}' openopt/solvers/Standalone/tsp.py + touch -r openopt/solvers/Standalone/tsp.py openopt/solvers/Standalone/tsp.py.new + mv openopt/solvers/Standalone/tsp.py.new openopt/solvers/Standalone/tsp.py + for lib in openopt/solvers/Standalone/tsp.py openopt/__init__.py openopt/kernel/mfa.py + sed '1{\@^#!.*@d}' openopt/__init__.py + touch -r openopt/__init__.py openopt/__init__.py.new + mv openopt/__init__.py.new openopt/__init__.py + for lib in openopt/solvers/Standalone/tsp.py openopt/__init__.py openopt/kernel/mfa.py + sed '1{\@^#!.*@d}' openopt/kernel/mfa.py + touch -r openopt/kernel/mfa.py openopt/kernel/mfa.py.new + mv openopt/kernel/mfa.py.new openopt/kernel/mfa.py + chmod 0644 openopt/examples/snle_1.py openopt/examples/tsp_1.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ziSPfa + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd openopt-0.5629 + 2to3 --write --nobackups . /usr/bin/2to3:3: DeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+ from lib2to3.main import main RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./setup.py RefactoringTool: Refactored ./openopt/__init__.py RefactoringTool: No changes to ./openopt/oo.py RefactoringTool: No changes to ./openopt/ooVersionNumber.py RefactoringTool: Refactored ./openopt/examples/GUI_1.py RefactoringTool: Refactored ./openopt/examples/bpp_1.py RefactoringTool: Refactored ./openopt/examples/bpp_2.py RefactoringTool: Refactored ./openopt/examples/dfp_1.py RefactoringTool: Refactored ./openopt/examples/dfp_2.py RefactoringTool: Refactored ./openopt/examples/dsp_1.py RefactoringTool: Refactored ./openopt/examples/eig_1.py RefactoringTool: Refactored ./openopt/examples/eig_2.py RefactoringTool: No changes to ./openopt/examples/glp_1.py RefactoringTool: No changes to ./openopt/examples/glp_2.py RefactoringTool: No changes to ./openopt/examples/glp_3.py RefactoringTool: No changes to ./openopt/examples/glp_Ab_c.py RefactoringTool: Refactored ./openopt/examples/ksp_1.py RefactoringTool: Refactored ./openopt/examples/ksp_2.py RefactoringTool: No changes to ./openopt/examples/ksp_mop.py RefactoringTool: Refactored ./openopt/examples/lcp_1.py RefactoringTool: Refactored ./openopt/examples/llavp_1.py RefactoringTool: Refactored ./openopt/examples/llsp_1.py RefactoringTool: Refactored ./openopt/examples/llsp_2.py RefactoringTool: Refactored ./openopt/examples/lp_1.py --- ./setup.py (original) +++ ./setup.py (refactored) @@ -25,7 +25,7 @@ except: print('you should have setuptools installed (http://pypi.python.org/pypi/setuptools), for some Linux distribs you can get it via [sudo] apt-get install python-setuptools') print('press Enter for exit...') - input() + eval(input()) exit() #from numpy.distutils.system_info import system_info, NotFoundError, dict_append, so_ext --- ./openopt/__init__.py (original) +++ ./openopt/__init__.py (refactored) @@ -5,8 +5,8 @@ curr_dir = ''.join([elem + os.sep for elem in __file__.split(os.sep)[:-1]]) sys.path += [curr_dir, curr_dir + 'kernel'] -from ooVersionNumber import __version__ -from oo import * +from .ooVersionNumber import __version__ +from .oo import * #from kernel.GUI import manage #from kernel.oologfcn import OpenOptException --- ./openopt/examples/GUI_1.py (original) +++ ./openopt/examples/GUI_1.py (refactored) @@ -44,5 +44,5 @@ """ if r is not None: # r is None if user has pressed "Exit" button - print 'objfunc val:', r.ff + print('objfunc val:', r.ff) --- ./openopt/examples/bpp_1.py (original) +++ ./openopt/examples/bpp_1.py (refactored) @@ -25,6 +25,6 @@ Solver: Time Elapsed = 0.3 CPU Time Elapsed = 0.11 objFunValue: 4 (feasible, MaxResidual = 0) ''' -print(r.xf) # numbers of items in 1st, 2nd, 3rd, 4th bins +print((r.xf)) # numbers of items in 1st, 2nd, 3rd, 4th bins # [(2, 4, 9, 10), (0, 8, 14), (1, 3, 12), (5, 6, 7, 11, 13)] # pay attention that Python indexation starts from zero: item 0, item 1 ... --- ./openopt/examples/bpp_2.py (original) +++ ./openopt/examples/bpp_2.py (refactored) @@ -43,7 +43,7 @@ Solver: Time Elapsed = 0.11 CPU Time Elapsed = 0.09 objFunValue: 4 (feasible, MaxResidual = 0)''' -print(r.xf) +print((r.xf)) '''[{'item 13': 2, 'item 1': 1, 'item 6': 2}, {'item 3': 1, 'item 2': 1, 'item 13': 1, 'item 5': 2, 'item 12': 3}, {'item 10': 2, 'item 7': 2, 'item 14': 3}, @@ -51,6 +51,6 @@ # pay attention that Python indexation starts from zero: item 0, item 1 ... # if fields 'name' are absent, you'll have list of numbers instead of Python dict -print(r.values) # per each bin +print((r.values)) # per each bin '''{'volume': (17.245948124126656, 19.886034336769214, 27.3955060854869, 27.004318475761739), 'weight': (26.000659120389134, 26.211461050259725, 15.120985036297931, 12.972914561409214)}''' --- ./openopt/examples/dfp_1.py (original) +++ ./openopt/examples/dfp_1.py (refactored) @@ -27,7 +27,7 @@ p = DFP(f, initEstimation, X, Y, df = df, lb=lb, ub=ub) r = p.solve('nlp:ralg', plot=0, iprint = 10) -print('solution: '+str(r.xf)+'\n||residuals||^2 = '+str(r.ff)+'\nresiduals: '+str([f(p.xf, X[i])-Y[i] for i in xrange(len(Y))])) +print(('solution: '+str(r.xf)+'\n||residuals||^2 = '+str(r.ff)+'\nresiduals: '+str([f(p.xf, X[i])-Y[i] for i in range(len(Y))]))) #solution: [ 3.99999936 5.99708861 -12.25696614 1.04221073] #||residuals||^2 = 5992.63887806 #residuals: [37.785213926923028, 63.039268675751572, -18.091065285780857, -15.968303801844399, 2.9485118103557397] --- ./openopt/examples/dfp_2.py (original) +++ ./openopt/examples/dfp_2.py (refactored) @@ -32,8 +32,8 @@ p = DFP(f, initEstimation, X, Y, df=df, lb=lb, ub=ub) r = p.solve('nlp:ralg', plot=0, iprint = 10) -print('solution: '+str(r.xf)+'\n||residuals||^2 = '+str(r.ff)+'\nresiduals: ') -rr = [array(f(p.xf, X[i]))-array(Y[i]) for i in xrange(len(Y))] +print(('solution: '+str(r.xf)+'\n||residuals||^2 = '+str(r.ff)+'\nresiduals: ')) +rr = [array(f(p.xf, X[i]))-array(Y[i]) for i in range(len(Y))] print(rr) #solution: [ 3.99999936 -1.9497013 18.25467922 0.24926213] #||residuals||^2 = 653639.695247 --- ./openopt/examples/dsp_1.py (original) +++ ./openopt/examples/dsp_1.py (refactored) @@ -34,7 +34,7 @@ # for linux use [sudo] easy_install tk or [sodo] apt-get install python-tk #r = p.manage('cplex') -print(r.ff, r.solution) +print((r.ff, r.solution)) ''' Solver: Time Elapsed = 0.08 CPU Time Elapsed = 0.04 objFunValue: 3 (feasible, MaxResidual = 0) --- ./openopt/examples/eig_1.py (original) +++ ./openopt/examples/eig_1.py (refactored) @@ -14,10 +14,10 @@ #solve r = p.solve('arpack') # arpack is name of the involved solver -print(r.eigenvalues) # [ 0.14607289-0.19602952j -0.65372843+0.j 2.89776724+0.j ] +print((r.eigenvalues)) # [ 0.14607289-0.19602952j -0.65372843+0.j 2.89776724+0.j ] # for i-th eigenvalue r.eigenvectors[:,i] is corresponding vector, # as well as it is done for numpy/scipy functions -print(r.eigenvectors) +print((r.eigenvectors)) ''' [[-0.10391145-0.56334829j 0.19592536+0.j 0.43733688+0.j ] [-0.20999235+0.1812288j -0.03219327+0.j 0.49662623+0.j ] --- ./openopt/examples/eig_2.py (original) +++ ./openopt/examples/eig_2.py (refactored) @@ -12,10 +12,10 @@ #solve r = p.solve('numpy_eig') # solver numpy.linalg.eig will be used -print(r.eigenvalues) # [ 2.89776724+0.j -0.65372843+0.j 0.14607289+0.19602952j 0.14607289-0.19602952j -0.08530815+0.j] +print((r.eigenvalues)) # [ 2.89776724+0.j -0.65372843+0.j 0.14607289+0.19602952j 0.14607289-0.19602952j -0.08530815+0.j] # for i-th eigenvalue r.eigenvectors[:,i] is corresponding vector, # as well as it is done for numpy/scipy functions -print(r.eigenvectors) +print((r.eigenvectors)) ''' [[ 0.43733688+0.j -0.19592536+0.j 0.57285154+0.j 0.57285154+0.j 0.63764724+0.j ] --- ./openopt/examples/ksp_1.py (original) +++ ./openopt/examples/ksp_1.py (refactored) @@ -18,6 +18,6 @@ r = p.solve('glpk', iprint = 0) # requires cvxopt and glpk installed, see http://openopt.org/KSP for other solvers #Solver: Time Elapsed = 0.73 CPU Time Elapsed = 0.55 #objFunValue: 27.389749 (feasible, MaxResidual = 0) -print(r.xf) # {'item 131': 2, 'item 18': 1, 'item 62': 2, 'item 87': 1, 'item 43': 1} +print((r.xf)) # {'item 131': 2, 'item 18': 1, 'item 62': 2, 'item 87': 1, 'item 43': 1} # pay attention that Python indexation starts from zero: item 0, item 1 ... # if fields 'name' are absent, you'll have list of numbers instead of Python dict --- ./openopt/examples/ksp_2.py (original) +++ ./openopt/examples/ksp_2.py (refactored) @@ -44,6 +44,6 @@ Solver: Time Elapsed = 0.82 CPU Time Elapsed = 0.82 objFunValue: 27.389749 (feasible, MaxResidual = 0) ''' -print(r.xf) # {'item 131': 2, 'item 18': 1, 'item 62': 2, 'item 87': 1, 'item 43': 1} +print((r.xf)) # {'item 131': 2, 'item 18': 1, 'item 62': 2, 'item 87': 1, 'item 43': 1} # pay attention that Python indexation starts from zero: item 0, item 1 ... # if fields 'name' are absent in items, you'll have list of numbers instead of Python dict --- ./openopt/examples/lcp_1.py (original) +++ ./openopt/examples/lcp_1.py (refactored) @@ -29,5 +29,5 @@ r = p.solve('lcpsolve') f_opt, x_opt = r.ff, r.xf w, z = x_opt[x_opt.size/2:], x_opt[:x_opt.size/2] -print('w: %s z: %s' % (w, z)) +print(('w: %s z: %s' % (w, z))) # w: [ 0. 0. 0.02167615 1.84666668 0. 0. ] z: [ 0.3 0.2 0. 0. 0.1 0.3] --- ./openopt/examples/llavp_1.py (original) +++ ./openopt/examples/llavp_1.py (refactored) @@ -20,6 +20,6 @@ #r = p.solve('nsp:ipopt', iprint = 100, maxIter = 1000) -print('f_opt: %f' % r.ff) +print(('f_opt: %f' % r.ff)) #print 'x_opt:', r.xf --- ./openopt/examples/llsp_1.py (original) +++ ./openopt/examples/llsp_1.py (refactored) @@ -25,6 +25,6 @@ p = LLSP(C, d) r = p.solve('lsmr') -print('f_opt: %f' % r.ff) # 2398301.68347 +print(('f_opt: %f' % r.ff)) # 2398301.68347 #print 'x_opt:', r.xf --- ./openopt/examples/llsp_2.py (original) +++ ./openopt/examples/llsp_2.py (refactored) @@ -21,6 +21,6 @@ p2 = LLSP(C, d, lb=lb, ub=ub) r2=p2.solve('nlp:'+NLPsolver) ################################################################## -print '###########Results:###########' -print 'LLSP solver '+ LLSPsolver + ':', r.ff -print 'NLP solver '+ NLPsolver + ':', r2.ff +print('###########Results:###########') +print('LLSP solver '+ LLSPsolver + ':', r.ff) +print('NLP solver '+ NLPsolver + ':', r2.ff) --- ./openopt/examples/lp_1.py (original)RefactoringTool: Refactored ./openopt/examples/lunp_1.py RefactoringTool: Refactored ./openopt/examples/mcp_1.py RefactoringTool: Refactored ./openopt/examples/milp_1.py RefactoringTool: Refactored ./openopt/examples/minlp_1.py RefactoringTool: No changes to ./openopt/examples/miqcqp_1.py RefactoringTool: No changes to ./openopt/examples/miqp_1.py RefactoringTool: Refactored ./openopt/examples/mmp_1.py RefactoringTool: Refactored ./openopt/examples/mmp_2.py RefactoringTool: Refactored ./openopt/examples/nllsp_1.py RefactoringTool: No changes to ./openopt/examples/nlp_1.py RefactoringTool: No changes to ./openopt/examples/nlp_11.py RefactoringTool: No changes to ./openopt/examples/nlp_2.py RefactoringTool: Refactored ./openopt/examples/nlp_3.py RefactoringTool: No changes to ./openopt/examples/nlp_4.py RefactoringTool: Refactored ./openopt/examples/nlp_5.py RefactoringTool: No changes to ./openopt/examples/nlp_ALGENCAN.py RefactoringTool: Refactored ./openopt/examples/nlp_bench_1.py RefactoringTool: Refactored ./openopt/examples/nlp_bench_2.py RefactoringTool: Refactored ./openopt/examples/nlp_d2f.py RefactoringTool: Refactored ./openopt/examples/nlsp_1.py RefactoringTool: Refactored ./openopt/examples/nlsp_constrained.py RefactoringTool: Refactored ./openopt/examples/nsp_1.py +++ ./openopt/examples/lp_1.py (refactored) @@ -32,5 +32,5 @@ #search for max: r = p.maximize('glpk') # CVXOPT & glpk must be installed #r = p.minimize('nlp:ralg', ftol=1e-7, xtol=1e-7, goal='min', plot=1) -print('objFunValue: %f' % r.ff) # should print 204.48841578 -print('x_opt: %s' % r.xf) # should print [ 9.89355041 -8. 1.5010645 ] +print(('objFunValue: %f' % r.ff)) # should print 204.48841578 +print(('x_opt: %s' % r.xf)) # should print [ 9.89355041 -8. 1.5010645 ] --- ./openopt/examples/lunp_1.py (original) +++ ./openopt/examples/lunp_1.py (refactored) @@ -7,7 +7,7 @@ C = empty((M,N)) d = empty(M) -for j in xrange(M): +for j in range(M): d[j] = 1.5*N+80*sin(j) C[j] = 8*sin(4.0+arange(N)) + 15*cos(j) @@ -17,6 +17,6 @@ r = p.solve('lp:glpk', iprint = -1) -print 'f_opt:', r.ff +print('f_opt:', r.ff) #print 'x_opt:', r.xf --- ./openopt/examples/mcp_1.py (original) +++ ./openopt/examples/mcp_1.py (refactored) @@ -34,7 +34,7 @@ # for linux use [sudo] easy_install tk or [sodo] apt-get install python-tk #r = p.manage('cplex') -print(r.ff, r.solution) +print((r.ff, r.solution)) ''' Solver: Time Elapsed = 0.2 CPU Time Elapsed = 0.05 objFunValue: 3 (feasible, MaxResidual = 0) --- ./openopt/examples/milp_1.py (original) +++ ./openopt/examples/milp_1.py (refactored) @@ -15,8 +15,8 @@ ub = 15 * ones(8) A = zeros((5, 8)) b = zeros(5) -for i in xrange(5): - for j in xrange(8): +for i in range(5): + for j in range(8): A[i,j] = -8+sin(8*i) + cos(15*j) b[i] = -150 + 80*sin(80*i) @@ -25,5 +25,5 @@ #r = p.solve('glpk', iprint =-1) #r = p.solve('cplex') -print('f_opt: %f' % r.ff) # 25.801450769161505 -print('x_opt: %s' % r.xf) # [ 15. 10.15072538 -1.5 -1.5 -1. -1.5 -1.5 15.] +print(('f_opt: %f' % r.ff)) # 25.801450769161505 +print(('x_opt: %s' % r.xf)) # [ 15. 10.15072538 -1.5 -1.5 -1. -1.5 -1.5 15.] --- ./openopt/examples/minlp_1.py (original) +++ ./openopt/examples/minlp_1.py (refactored) @@ -41,7 +41,7 @@ nlpSolver = 'ipopt' # coords of discrete variables and sets of allowed values -p.discreteVars = {7:range(3, 10), 8:range(3, 10), 9:[2, 3.1, 9]} +p.discreteVars = {7:list(range(3, 10)), 8:list(range(3, 10)), 9:[2, 3.1, 9]} # required tolerance for discrete variables, default 10^-5 p.discrtol = 1.1e-5 --- ./openopt/examples/mmp_1.py (original) +++ ./openopt/examples/mmp_1.py (refactored) @@ -52,13 +52,13 @@ # optional, matplotlib is required: p.plot=1 r = p.solve('nlp:ipopt', iprint=50, maxIter=1e3) -print 'MMP result:', r.ff +print('MMP result:', r.ff) ### let's check result via comparison with NSP solution F= lambda x: max([f1(x), f2(x), f3(x)]) p = NSP(F, x0, iprint=50, lb = lb, ub = ub, c=c, h=h, A=A, b=b, Aeq = Aeq, beq = beq, xtol = 1e-6, ftol=1e-6) r_nsp = p.solve('ipopt', maxIter = 1e3) -print 'NSP result:', r_nsp.ff, 'difference:', r_nsp.ff - r.ff +print('NSP result:', r_nsp.ff, 'difference:', r_nsp.ff - r.ff) """ ----------------------------------------------------- solver: ipopt problem: unnamed goal: minimax --- ./openopt/examples/mmp_2.py (original) +++ ./openopt/examples/mmp_2.py (refactored) @@ -46,7 +46,7 @@ # optional, matplotlib is required: #p.plot=1 r = p.solve('nsmm', iprint=1, NLPsolver = 'ralg', maxIter=1e3, minIter=1e2) -print 'MMP result:', r.ff +print('MMP result:', r.ff) # ### let's check result via comparison with NSP solution --- ./openopt/examples/nllsp_1.py (original) +++ ./openopt/examples/nllsp_1.py (refactored) @@ -47,6 +47,6 @@ #r = p.solve('nlp:ipopt',plot=1), r = p.solve('nlp:algencan'), r = p.solve('nlp:ralg'), etc #(some NLP solvers require additional installation) -print 'x_opt:', r.xf # 2.74930862, +/-2.5597651 -print 'funcs Values:', p.f(r.xf) # [-0.888904734668, 0.0678251418575, -0.750691380965] -print 'f_opt:', r.ff, '; sum of squares (should be same value):', (p.f(r.xf) ** 2).sum() # 1.35828942657 +print('x_opt:', r.xf) # 2.74930862, +/-2.5597651 +print('funcs Values:', p.f(r.xf)) # [-0.888904734668, 0.0678251418575, -0.750691380965] +print('f_opt:', r.ff, '; sum of squares (should be same value):', (p.f(r.xf) ** 2).sum()) # 1.35828942657 --- ./openopt/examples/nlp_3.py (original) +++ ./openopt/examples/nlp_3.py (refactored) @@ -68,7 +68,7 @@ p.debug = 1 r = p.solve(solver, debug=1) - print 'c1 evals:', cc1, 'c2 evals:', cc2, 'c3 evals:', cc3 + print('c1 evals:', cc1, 'c2 evals:', cc2, 'c3 evals:', cc3) results[solver] = (r.ff, p.getMaxResidual(r.xf), r.elapsed['solver_time'], r.elapsed['solver_cputime'], r.evals['f'], r.evals['c'], r.evals['h']) subplot(2,1,1) F0 = asscalar(p.f(p.x0)) --- ./openopt/examples/nlp_5.py (original) +++ ./openopt/examples/nlp_5.py (refactored) @@ -54,7 +54,7 @@ r = p.solve(solver) for fn in ('h','c'): - if not r.evals.has_key(fn): r.evals[fn]=0 # if no c or h are used in problem + if fn not in r.evals: r.evals[fn]=0 # if no c or h are used in problem results[solver] = (r.ff, p.getMaxResidual(r.xf), r.elapsed['solver_time'], r.elapsed['solver_cputime'], r.evals['f'], r.evals['c'], r.evals['h']) if PLOT: subplot(2,1,1) --- ./openopt/examples/nlp_bench_1.py (original) +++ ./openopt/examples/nlp_bench_1.py (refactored) @@ -74,7 +74,7 @@ 5.00000278, 5.00001633, 5.00000858, 1.5299053 , 1.01681614]) for fn in ('h','c'): - if not r.evals.has_key(fn): r.evals[fn]=0 # if no c or h are used in problem + if fn not in r.evals: r.evals[fn]=0 # if no c or h are used in problem results[solver] = (r.ff, p.getMaxResidual(r.xf), r.elapsed['solver_time'], r.elapsed['solver_cputime'], r.evals['f'], r.evals['c'], r.evals['h']) if PLOT: subplot(2,1,1) --- ./openopt/examples/nlp_bench_2.py (original) +++ ./openopt/examples/nlp_bench_2.py (refactored) @@ -76,7 +76,7 @@ ## p.check.dh = 1 r = p.solve(solver) for fn in ('h','c'): - if not r.evals.has_key(fn): r.evals[fn]=0 # if no c or h are used in problem + if fn not in r.evals: r.evals[fn]=0 # if no c or h are used in problem results[solver] = (r.ff, p.getMaxResidual(r.xf), r.elapsed['solver_time'], r.elapsed['solver_cputime'], r.evals['f'], r.evals['c'], r.evals['h']) subplot(2,1,1) F0 = asscalar(p.f(p.x0)) --- ./openopt/examples/nlp_d2f.py (original) +++ ./openopt/examples/nlp_d2f.py (refactored) @@ -19,5 +19,5 @@ # or # p = NLP(x0 = cos(arange(N)), f = lambda x: ((x-M)**4).sum(), df = lambda x: 4*(x-M)**3, d2f = lambda x: diag(12*(x-M)**2)) r = p.solve('scipy_ncg') -print('objfunc val: %e' % r.ff) # it should be a small positive like 5.23656378549e-08 +print(('objfunc val: %e' % r.ff)) # it should be a small positive like 5.23656378549e-08 --- ./openopt/examples/nlsp_1.py (original) +++ ./openopt/examples/nlsp_1.py (refactored) @@ -36,8 +36,8 @@ #or using converter to nlp, try to minimize sum(f_i(x)^2): #r = p.solve('nlp:ralg') -print('solution: %s' % r.xf) -print('max residual: %e' % r.ff) +print(('solution: %s' % r.xf)) +print(('max residual: %e' % r.ff)) ############################### #should print: #solution: [ 1. 2. 55.50147021] (3rd coord may differ due to cos is periodic) --- ./openopt/examples/nlsp_constrained.py (original) +++ ./openopt/examples/nlsp_constrained.py (refactored) @@ -67,7 +67,7 @@ # using converter to nlp, try to minimize sum(f_i(x)^2): r = p.solve('nlp:ralg', xlabel='iter', iprint=10, plot=1) -print('solution: %s' % r.xf) -print('max residual: %e' % r.ff) +print(('solution: %s' % r.xf)) +print(('max residual: %e' % r.ff)) --- ./openopt/examples/nsp_1.py (original) +++ ./openopt/examples/nsp_1.py (refactored) @@ -14,7 +14,7 @@ N = 75 objFun = lambda x: sum(1.2 ** arange(len(x)) * abs(x)) -x0 = cos(1+asfarray(range(N))) +x0 = cos(1+asfarray(list(range(N)))) p = NSP(objFun, x0, maxFunEvals = 1e7, xtol = 1e-8) #These assignments are also correct: @@ -33,5 +33,5 @@ p.df = lambda x: 1.2 ** arange(len(x)) * sign(x) r = p.solve('ralg') # ralg is name of a solver -print('x_opt: %s' % r.xf) RefactoringTool: Refactored ./openopt/examples/nssolveVSfsolve_1.py RefactoringTool: No changes to ./openopt/examples/qcqp_1.py RefactoringTool: No changes to ./openopt/examples/qp_1.py RefactoringTool: Refactored ./openopt/examples/sdp_1.py RefactoringTool: Refactored ./openopt/examples/sle_1.py RefactoringTool: Refactored ./openopt/examples/snle_1.py RefactoringTool: Refactored ./openopt/examples/socp_1.py RefactoringTool: Refactored ./openopt/examples/stab_1.py RefactoringTool: Refactored ./openopt/examples/tsp_1.py RefactoringTool: Refactored ./openopt/examples/tsp_2.py RefactoringTool: Refactored ./openopt/examples/tsp_3.py RefactoringTool: Refactored ./openopt/examples/tsp_4.py RefactoringTool: Refactored ./openopt/kernel/BPP.py -print('f_opt: %f' % r.ff) # should print small positive number like 0.00056 +print(('x_opt: %s' % r.xf)) +print(('f_opt: %f' % r.ff)) # should print small positive number like 0.00056 --- ./openopt/examples/nssolveVSfsolve_1.py (original) +++ ./openopt/examples/nssolveVSfsolve_1.py (refactored) @@ -72,32 +72,32 @@ assert desired_ftol - noise*len(x0) > 1e-7 #w/o gradient: scipy_fsolve_failed, fs = 0, [] -print '----------------------------------' -print 'desired ftol:', desired_ftol, 'objFunc noise:', noise +print('----------------------------------') +print('desired ftol:', desired_ftol, 'objFunc noise:', noise) ############################################################################ -print '---------- fsolve fails ----------' +print('---------- fsolve fails ----------') t = time() -print 'N log10(MaxResidual) MaxResidual' -for i in xrange(N): +print('N log10(MaxResidual) MaxResidual') +for i in range(N): p = SNLE(f, x0, ftol = desired_ftol - noise*len(x0), iprint = -1, maxFunEvals = int(1e7)) r = p.solve('scipy_fsolve') v = fvn(r.xf) fs.append(log10(v)) if v > desired_ftol: scipy_fsolve_failed += 1 - print i+1, ' %0.2f ' % log10(v), v + print(i+1, ' %0.2f ' % log10(v), v) else: - print i+1, 'OK' -print 'fsolve time elapsed', time()-t + print(i+1, 'OK') +print('fsolve time elapsed', time()-t) #print 'fsolve_failed number:', scipy_fsolve_failed , '(from', N, '),', 100.0*scipy_fsolve_failed / N, '%' -print 'counters:', count1, count2, count3 +print('counters:', count1, count2, count3) ############################################################################ count1 = count2 = count3 = 0 t = time() -print '---------- nssolve fails ---------' +print('---------- nssolve fails ---------') nssolve_failed, ns = 0, [] -print 'N log10(MaxResidual) MaxResidual' -for i in xrange(N): +print('N log10(MaxResidual) MaxResidual') +for i in range(N): p = SNLE(f, x0, ftol = desired_ftol - noise*len(x0), iprint = -1, maxFunEvals = int(1e7)) r = p.solve('nssolve') #r = p.solve('nlp:amsg2p') @@ -106,16 +106,16 @@ ns.append(log10(v)) if v > desired_ftol: nssolve_failed += 1 - print i+1, ' %0.2f ' % log10(v), v + print(i+1, ' %0.2f ' % log10(v), v) else: - print i+1, 'OK' -print 'nssolve time elapsed', time()-t -print 'nssolve_failed number:', nssolve_failed , '(from', N, '),', 100.0 * nssolve_failed / N, '%' -print 'counters:', count1, count2, count3 + print(i+1, 'OK') +print('nssolve time elapsed', time()-t) +print('nssolve_failed number:', nssolve_failed , '(from', N, '),', 100.0 * nssolve_failed / N, '%') +print('counters:', count1, count2, count3) ############################################################################ -print '------------ SUMMARY -------------' -print 'fsolve_failed number:', scipy_fsolve_failed , '(from', N, '),', 100.0*scipy_fsolve_failed / N, '%' -print 'nssolve_failed number:', nssolve_failed , '(from', N, '),', 100.0 * nssolve_failed / N, '%' +print('------------ SUMMARY -------------') +print('fsolve_failed number:', scipy_fsolve_failed , '(from', N, '),', 100.0*scipy_fsolve_failed / N, '%') +print('nssolve_failed number:', nssolve_failed , '(from', N, '),', 100.0 * nssolve_failed / N, '%') #try: from pylab import * --- ./openopt/examples/sdp_1.py (original) +++ ./openopt/examples/sdp_1.py (refactored) @@ -28,7 +28,7 @@ r = p.solve('dsdp', iprint = -1) f_opt, x_opt = r.ff, r.xf -print('x_opt: %s' % x_opt) -print('f_opt: %s' % f_opt) +print(('x_opt: %s' % x_opt)) +print(('f_opt: %s' % f_opt)) #x_opt: [-0.36766609 1.89832827 -0.88755043] #f_opt: -3.15354478797 --- ./openopt/examples/sle_1.py (original) +++ ./openopt/examples/sle_1.py (refactored) @@ -7,13 +7,13 @@ C = empty((N,N)) d = 1.5+80*sin(arange(N)) -for j in xrange(N): +for j in range(N): C[j] = 8*sin(4.0+arange(j, N+j)**2) + 15*cos(j) p = SLE(C, d) #r = p.solve('defaultSLEsolver'), or just r = p.solve() -print('max residual: %e' % r.ff) +print(('max residual: %e' % r.ff)) #print('solution: %s' % r.xf) --- ./openopt/examples/snle_1.py (original) +++ ./openopt/examples/snle_1.py (refactored) @@ -39,8 +39,8 @@ #or using converter nlsp2nlp, try to minimize sum(f_i(x)^2): r = p.solve('nlp:ralg', plot=1) -print('solution: %s' % r.xf) -print('max residual: %e' % r.ff) +print(('solution: %s' % r.xf)) +print(('max residual: %e' % r.ff)) ############################### #should print: #solution: [ 1. 2. 55.50147021] (3rd coord may differ due to cos is periodic) --- ./openopt/examples/socp_1.py (original) +++ ./openopt/examples/socp_1.py (refactored) @@ -23,5 +23,5 @@ # via p = SOCP(f, ..., A=A, b=b, Aeq=Aeq, beq=beq,lb=lb, ub=ub) r = p.solve('cvxopt_socp') x_opt, f_opt = r.xf, r.ff -print(' f_opt: %f x_opt: %s' % (f_opt, x_opt)) +print((' f_opt: %f x_opt: %s' % (f_opt, x_opt))) # f_opt: -38.346368 x_opt: [-5.01428121 -5.76680444 -8.52162517] --- ./openopt/examples/stab_1.py (original) +++ ./openopt/examples/stab_1.py (refactored) @@ -34,7 +34,7 @@ # for linux use [sudo] easy_install tk or [sodo] apt-get install python-tk #r = p.manage('cplex') -print(r.ff, r.solution) +print((r.ff, r.solution)) ''' Solver: Time Elapsed = 0.34 CPU Time Elapsed = 0.28 (6, [1, 3, 5, 8, 12, 14]) --- ./openopt/examples/tsp_1.py (original) +++ ./openopt/examples/tsp_1.py (refactored) @@ -33,9 +33,9 @@ # for linux use [sudo] easy_install tk or [sodo] apt-get install python-tk #r = p.manage('cplex') -print(r.nodes) -print(r.edges) -print(r.Edges) +print((r.nodes)) +print((r.edges)) +print((r.Edges)) ''' Solver: Time Elapsed = 0.05 CPU Time Elapsed = 0.04 # (glpk takes 5 sec for N = 15, Intel Atom 1.6 GHz) --- ./openopt/examples/tsp_2.py (original) +++ ./openopt/examples/tsp_2.py (refactored) @@ -38,9 +38,9 @@ # for linux use [sudo] easy_install tk or [sodo] apt-get install python-tk #r = p.manage('cplex') -print(r.nodes) -print(r.edges) # (node_from, node_to) -print(r.Edges) # full info on edges; unavailable for solver sa yet +print((r.nodes)) +print((r.edges)) # (node_from, node_to) +print((r.Edges)) # full info on edges; unavailable for solver sa yet ''' Solver: Time Elapsed = 0.04 CPU Time Elapsed = 0.04 # for N = 13 (full-13 graph) lpSolve Time Elapsed = 1.76 CPU Time Elapsed = 1.74 --- ./openopt/examples/tsp_3.py (original) +++ ./openopt/examples/tsp_3.py (refactored) @@ -41,7 +41,7 @@ # for linux use [sudo] easy_install tk or [sodo] apt-get install python-tk # r = p.manage('cplex') -print(r.Edges) +print((r.Edges)) ''' Solver: Time Elapsed = 0.04 CPU Time Elapsed = 0.04 objFunValue: 6.0653623 (feasible, MaxResidual = 4.44089e-16) --- ./openopt/examples/tsp_4.py (original) +++ ./openopt/examples/tsp_4.py (refactored) @@ -52,8 +52,8 @@ # for linux use [sudo] easy_install tk or [sodo] apt-get install python-tk #r = p.manage('interalg') -print(r.solutions.values) -print(r.solutions) +print((r.solutions.values)) +print((r.solutions)) ''' istop: 1001 (all solutions have been obtained) Solver: Time Elapsed = 319.53 CPU Time Elapsed = 297.35 --- ./openopt/kernel/BPP.py (original) +++ ./openopt/kernel/BPP.py (refactored) @@ -1,4 +1,4 @@ -from baseProblem import MatrixProblem +from .baseProblem import MatrixProblem import numpy as np #from MOP import MOPsolutions @@ -90,7 +90,7 @@ nBins = bins.get('n', -1) if nBins == -1: if len(UsedValues) == 1 and type(bins) == dict: - Tmp_items = sum(list(cr_values.values()[0])) + Tmp_items = sum(list(list(cr_values.values())[0])) Tmp_bins = bins[list(UsedValues)[0]] approx_n_bins = int(np.ceil((2.0 * Tmp_items) / Tmp_bins)) else: @@ -140,7 +140,7 @@ constraints += tmp # 2. Constraints from bins parameters - for k, v in bins.items(): + for k, v in list(bins.items()): if k != 'n': RefactoringTool: No changes to ./openopt/kernel/DAE.py RefactoringTool: Refactored ./openopt/kernel/DFP.py RefactoringTool: Refactored ./openopt/kernel/DSP.py RefactoringTool: Refactored ./openopt/kernel/EIG.py RefactoringTool: Refactored ./openopt/kernel/GLP.py RefactoringTool: Refactored ./openopt/kernel/GUI.py RefactoringTool: Refactored ./openopt/kernel/IP.py RefactoringTool: Refactored ./openopt/kernel/KSP.py RefactoringTool: Refactored ./openopt/kernel/LCP.py RefactoringTool: Refactored ./openopt/kernel/LLAVP.py RefactoringTool: Refactored ./openopt/kernel/LLSP.py RefactoringTool: Refactored ./openopt/kernel/LP.py RefactoringTool: Refactored ./openopt/kernel/LUNP.py constraints += [fd.sum(X[:, j].view(fd.ooarray) * cr_values[k]) <= v*y[j] for j in range(nBins)] --- ./openopt/kernel/DFP.py (original) +++ ./openopt/kernel/DFP.py (refactored) @@ -1,8 +1,8 @@ -from baseProblem import NonLinProblem -from ooMisc import assignScript +from .baseProblem import NonLinProblem +from .ooMisc import assignScript from numpy import dot, asfarray, atleast_2d, array, zeros, all -import NLP +from . import NLP class DFP(NonLinProblem): _optionalData = ['lb', 'ub', 'A', 'Aeq', 'b', 'beq', 'c', 'h'] --- ./openopt/kernel/DSP.py (original) +++ ./openopt/kernel/DSP.py (refactored) @@ -1,5 +1,5 @@ -from baseProblem import MatrixProblem -from STAB import set_routine +from .baseProblem import MatrixProblem +from .STAB import set_routine class DSP(MatrixProblem): _optionalData = [] --- ./openopt/kernel/EIG.py (original) +++ ./openopt/kernel/EIG.py (refactored) @@ -1,4 +1,4 @@ -from baseProblem import MatrixProblem +from .baseProblem import MatrixProblem #from numpy.linalg import norm from numpy import vstack, isscalar @@ -63,8 +63,8 @@ N = 0 varSizes = {} for d in C: - K.update(d.keys()) - for key in d.keys(): + K.update(list(d.keys())) + for key in list(d.keys()): if key in varSizes: if varSizes[key] != d[key].shape[1]: s = 'incorrect shape 2nd coordinate %d for variable %s, defined in other array as %d' %(d[key].shape[1], key.name, varSizes[key]) @@ -73,7 +73,7 @@ varSizes[key] = d[key].shape[1] if not isscalar(d[key]) else 1 tmp = list(d.values()) N += tmp[0].shape[0] if not isscalar(tmp[0]) else 1 - P = dict([(key, [0]*val) for key, val in varSizes.items()]) + P = dict([(key, [0]*val) for key, val in list(varSizes.items())]) T = ootranslator(P) C2 = vstack([T.pointDerivative2array(d) for d in C]) self.C = C2 --- ./openopt/kernel/GLP.py (original) +++ ./openopt/kernel/GLP.py (refactored) @@ -1,6 +1,6 @@ -from baseProblem import NonLinProblem +from .baseProblem import NonLinProblem from numpy import asarray, ones, inf -from setDefaultIterFuncs import MAX_NON_SUCCESS +from .setDefaultIterFuncs import MAX_NON_SUCCESS class GLP(NonLinProblem): probType = 'GLP' @@ -36,9 +36,9 @@ return False self.kernelIterFuncs[MAX_NON_SUCCESS] = maxNonSuccess - if 'lb' in kwargs.keys(): + if 'lb' in list(kwargs.keys()): self.n = len(kwargs['lb']) - elif 'ub' in kwargs.keys(): + elif 'ub' in list(kwargs.keys()): self.n = len(kwargs['ub']) if hasattr(self, 'n'): if not hasattr(self, 'lb'): --- ./openopt/kernel/GUI.py (original) +++ ./openopt/kernel/GUI.py (refactored) @@ -2,14 +2,14 @@ from threading import Thread from openopt import __version__ as ooversion -from setDefaultIterFuncs import BUTTON_ENOUGH_HAS_BEEN_PRESSED, USER_DEMAND_EXIT -from ooMisc import killThread +from .setDefaultIterFuncs import BUTTON_ENOUGH_HAS_BEEN_PRESSED, USER_DEMAND_EXIT +from .ooMisc import killThread import platform TkinterIsInstalled = True# sometimes Tkinter is not installed if platform.python_version()[0] == '2': # Python2 try: - from Tkinter import Tk, Text, Button, Label, Frame, \ + from tkinter import Tk, Text, Button, Label, Frame, \ StringVar, DISABLED, Scrollbar except: TkinterIsInstalled = False @@ -315,7 +315,7 @@ W = ['ButtonsColumn', 'CPUTimeFrame', 'TimeFrame'] L = [p.GUI_items[_w] for _w in W] for _w in W: - L += p.GUI_items[_w].children.values() + L += list(p.GUI_items[_w].children.values()) for w in L: if w.winfo_class() != 'Button': w.config(bg = color) --- ./openopt/kernel/IP.py (original) +++ ./openopt/kernel/IP.py (refactored) @@ -1,4 +1,4 @@ -from baseProblem import NonLinProblem +from .baseProblem import NonLinProblem #from numpy.linalg import norm from numpy import inf @@ -13,8 +13,8 @@ def __init__(self, *args, **kwargs): NonLinProblem.__init__(self, *args, **kwargs) domain = args[1] - self.x0 = dict([(v, 0.5*(val[0]+val[1])) for v, val in domain.items()]) - self.constraints = [v>bounds[0] for v, bounds in domain.items()] + [vbounds[0] for v, bounds in list(domain.items())] + [v0: --- ./openopt/kernel/LP.py (original) +++ ./openopt/kernel/LP.py (refactored) @@ -1,6 +1,6 @@ -from baseProblem import MatrixProblem +from .baseProblem import MatrixProblem from numpy import asarray, ones, inf, dot, zeros, asfarray, atleast_1d -import NLP +from . import NLP class LP(MatrixProblem): _optionalData = ['A', 'Aeq', 'b', 'beq', 'lb', 'ub'] @@ -118,7 +118,7 @@ try: from lp_maker import lp_maker, lpsolve except ImportError: self.err('To export LP/MILP in files you should have lpsolve and its Python binding properly installed') self._Prepare() - from ooMisc import LinConst2WholeRepr + from .ooMisc import LinConst2WholeRepr LinConst2WholeRepr(self) # set goal to min/max RefactoringTool: Refactored ./openopt/kernel/MCP.py RefactoringTool: Refactored ./openopt/kernel/MILP.py RefactoringTool: Refactored ./openopt/kernel/MINLP.py RefactoringTool: Refactored ./openopt/kernel/MMP.py RefactoringTool: Refactored ./openopt/kernel/MOP.py RefactoringTool: Refactored ./openopt/kernel/NLLSP.py RefactoringTool: Refactored ./openopt/kernel/NLP.py RefactoringTool: Refactored ./openopt/kernel/NLSP.py RefactoringTool: Refactored ./openopt/kernel/NSP.py RefactoringTool: Refactored ./openopt/kernel/ODE.py RefactoringTool: Refactored ./openopt/kernel/Point.py RefactoringTool: Refactored ./openopt/kernel/QP.py RefactoringTool: Refactored ./openopt/kernel/SDP.py --- ./openopt/kernel/LUNP.py (original) +++ ./openopt/kernel/LUNP.py (refactored) @@ -1,7 +1,7 @@ -from baseProblem import MatrixProblem +from .baseProblem import MatrixProblem from numpy import ones, inf, dot, zeros, hstack, vstack, atleast_2d -from ooMisc import norm -import LP +from .ooMisc import norm +from . import LP class LUNP(MatrixProblem): probType = 'LUNP' --- ./openopt/kernel/MCP.py (original) +++ ./openopt/kernel/MCP.py (refactored) @@ -1,4 +1,4 @@ -from baseProblem import MatrixProblem +from .baseProblem import MatrixProblem class MCP(MatrixProblem): _optionalData = [] --- ./openopt/kernel/MILP.py (original) +++ ./openopt/kernel/MILP.py (refactored) @@ -1,6 +1,6 @@ from numpy import ceil, floor, argmax, ndarray, copy, arange -from setDefaultIterFuncs import SMALL_DELTA_X, SMALL_DELTA_F -from LP import LP +from .setDefaultIterFuncs import SMALL_DELTA_X, SMALL_DELTA_F +from .LP import LP class MILP(LP): _optionalData = ['A', 'Aeq', 'b', 'beq', 'lb', 'ub', 'intVars', 'boolVars'] --- ./openopt/kernel/MINLP.py (original) +++ ./openopt/kernel/MINLP.py (refactored) @@ -1,4 +1,4 @@ -from baseProblem import NonLinProblem +from .baseProblem import NonLinProblem from numpy import sort, ndarray class MINLP(NonLinProblem): @@ -29,7 +29,7 @@ self.discreteVars = r # TODO: use something else instead of dict.keys() new_discr = {} - for key, fv in self.discreteVars.items(): + for key, fv in list(self.discreteVars.items()): if type(fv) not in [list, tuple, ndarray] and fv not in ('bool', bool): self.err('each element from discreteVars dictionary should be list or tuple of allowed values') if fv is not bool and fv is not 'bool': --- ./openopt/kernel/MMP.py (original) +++ ./openopt/kernel/MMP.py (refactored) @@ -1,5 +1,5 @@ -from baseProblem import NonLinProblem -from NLP import NLP +from .baseProblem import NonLinProblem +from .NLP import NLP from numpy import max, array, hstack, vstack, zeros, ones, inf, asfarray, atleast_2d class MMP(NonLinProblem): --- ./openopt/kernel/MOP.py (original) +++ ./openopt/kernel/MOP.py (refactored) @@ -1,4 +1,4 @@ -from baseProblem import NonLinProblem +from .baseProblem import NonLinProblem from numpy import inf from openopt.kernel.setDefaultIterFuncs import SMALL_DELTA_X, SMALL_DELTA_F @@ -147,8 +147,8 @@ if platform.python_version()[0] == '2': # Python2 try: - from Tkinter import Tk - from tkFileDialog import asksaveasfilename + from tkinter import Tk + from tkinter.filedialog import asksaveasfilename except: TkinterIsInstalled = False else: --- ./openopt/kernel/NLLSP.py (original) +++ ./openopt/kernel/NLLSP.py (refactored) @@ -1,6 +1,6 @@ -from baseProblem import NonLinProblem +from .baseProblem import NonLinProblem from numpy import sum, dot, asfarray -import NLP +from . import NLP class NLLSP(NonLinProblem): _optionalData = ['lb', 'ub', 'A', 'Aeq', 'b', 'beq', 'c', 'h'] --- ./openopt/kernel/NLP.py (original) +++ ./openopt/kernel/NLP.py (refactored) @@ -1,5 +1,5 @@ -from ooMisc import assignScript -from baseProblem import NonLinProblem +from .ooMisc import assignScript +from .baseProblem import NonLinProblem from numpy import asarray, ones, inf, array --- ./openopt/kernel/NLSP.py (original) +++ ./openopt/kernel/NLSP.py (refactored) @@ -1,9 +1,9 @@ -from baseProblem import NonLinProblem +from .baseProblem import NonLinProblem from numpy import asfarray, dot, abs, ndarray import numpy as np -from setDefaultIterFuncs import FVAL_IS_ENOUGH, SMALL_DELTA_F -import NLP +from .setDefaultIterFuncs import FVAL_IS_ENOUGH, SMALL_DELTA_F +from . import NLP try: import scipy solver = 'scipy_fsolve' @@ -45,7 +45,7 @@ # TODO: add nNaNs elif len(args) > 1: p.primalIterFcn(args[0], max(abs(self.f(args[0]))), *args[2:], **kwargs) - elif 'fk' in kwargs.keys(): + elif 'fk' in list(kwargs.keys()): kwargs['fk'] = max(abs(self.f(args[0]))) p.primalIterFcn(*args, **kwargs) else: --- ./openopt/kernel/NSP.py (original) +++ ./openopt/kernel/NSP.py (refactored) @@ -1,5 +1,5 @@ -from ooMisc import assignScript -from baseProblem import NonLinProblem +from .ooMisc import assignScript +from .baseProblem import NonLinProblem from numpy import asarray, ones, inf class NSP(NonLinProblem): --- ./openopt/kernel/ODE.py (original) +++ ./openopt/kernel/ODE.py (refactored) @@ -1,4 +1,4 @@ -from baseProblem import NonLinProblem +from .baseProblem import NonLinProblem class ODE(NonLinProblem): --- ./openopt/kernel/Point.py (original) +++ ./openopt/kernel/Point.py (refactored) @@ -1,8 +1,8 @@ # created by Dmitrey from numpy import copy, isnan, array, argmax, abs, zeros, any, isfinite, all, asscalar, \ dot, sqrt, nanmax, logical_or, prod, arange, ndarray, asarray, sum#where -from ooMisc import norm -from nonOptMisc import Copy, isPyPy, where +from .ooMisc import norm +from .nonOptMisc import Copy, isPyPy, where #from pointProjection import pointProjection empty_arr = array(()) try: @@ -27,7 +27,7 @@ # self.x = for i, arg in enumerate(args): setattr(self, '_' + self.__expectedArgs__[i], args[i]) - for name, val in kwargs.items(): + for name, val in list(kwargs.items()): setattr(self, '_' + name, val) #assert self.x is not None --- ./openopt/kernel/QP.py (original) +++ ./openopt/kernel/QP.py (refactored) @@ -1,8 +1,8 @@ #PythonSum = sum -import NLP - -from ooMisc import isspmatrix -from baseProblem import MatrixProblem +from . import NLP + +from .ooMisc import isspmatrix +from .baseProblem import MatrixProblem from numpy import asfarray, dot, nan, zeros, isfinite, all, ravel, diag, isscalar, arange, ndarray from copy import copy as PythonCopy @@ -62,7 +62,7 @@ self.x0 = args[1] self.f = args[0] else: - if len(args) > 1 or 'f' in kwargs.keys(): + if len(args) > 1 or 'f' in list(kwargs.keys()): self.f = ravel(self.f) def objFunc(self, x): @@ -118,7 +118,7 @@ p.QC.append((H, f, -c.ub + C)) -from nonOptMisc import scipyInstalled +from .nonOptMisc import scipyInstalled import numpy as np def quad_render(arg, p): @@ -157,10 +157,10 @@ if p.fixedVars is None or (p.freeVars is not None and len(p.freeVars)0: p.xk = args[0] - elif 'xk' in kwargs.keys(): p.xk = kwargs['xk'] + elif 'xk' in list(kwargs.keys()): p.xk = kwargs['xk'] elif not hasattr(p, 'xk'): p.err('iterfcn must get x value, if you see it inform oo developers') if p._baseClassName == 'NonLin': C = p.c(p.xk) @@ -59,13 +59,13 @@ currPoint = p.point(p.xk) if p.iter == 0 or currPoint.betterThan(p._bestPoint): p._bestPoint = currPoint if len(args)>1: p.fk = args[1] - elif 'fk' in kwargs.keys(): p.fk = kwargs['fk'] + elif 'fk' in list(kwargs.keys()): p.fk = kwargs['fk'] else: fArg = False if len(args)>2: #p.pWarn('executing deprecated code, inform developers') p.rk = args[2] - elif 'rk' in kwargs.keys(): + elif 'rk' in list(kwargs.keys()): #p.pWarn('executing deprecated code, inform developers') p.rk = kwargs['rk'] else: --- ./openopt/kernel/fdConstraint.py (original) +++ ./openopt/kernel/fdConstraint.py (refactored) @@ -112,7 +112,7 @@ D = f.D(Z, **D_kwargs2) if inplaceLinearRender: # interalg only - if PythonAny(asarray(val).size > 1 for val in D.values()): + if PythonAny(asarray(val).size > 1 for val in list(D.values())): p.err('currently interalg can handle only FuncDesigner.oovars(n), not FuncDesigner.oovar() with size > 1') f = linear_render(f, D, Z) # else: --- ./openopt/kernel/fdPrepare.py (original) +++ ./openopt/kernel/fdPrepare.py (refactored) @@ -3,9 +3,9 @@ ones, array_equal, array, ravel from openopt.kernel.fdmisc import formDictOfFixedFuncs, linear_render, formDictOfRedirectedFuncs -from nonOptMisc import EmptyClass, isPyPy, oosolver, Hstack, Vstack +from .nonOptMisc import EmptyClass, isPyPy, oosolver, Hstack, Vstack #from oologfcn import OpenOptException -from fdConstraint import fdConstraint +from .fdConstraint import fdConstraint def fdPrepare(p): p.isFDmodel = True @@ -95,7 +95,7 @@ p._init_ooarrays = set() p._init_fixed_ooarrays = set() - for key, val in x0.items(): + for key, val in list(x0.items()): if type(key) == ooarray: p._init_ooarrays.add(key) if isinstance(val, Stochastic): @@ -115,7 +115,7 @@ Tmp = dict(tmp) if isinstance(p.fixedVars, dict): - for key, val in p.fixedVars.items(): + for key, val in list(p.fixedVars.items()): if type(key) == ooarray: p._init_fixed_ooarrays.add(key) if isinstance(key, (list, tuple, ndarray)): # can be only ooarray @@ -140,7 +140,7 @@ x0 = p.x0 = Tmp p._aux_fixedVars = dict((v, x0[v]) for v in unInvolvedVariables) p._stringVars = set() - for key, val in x0.items(): + for key, val in list(x0.items()): #if key.domain is not None and key.domain is not bool and key.domain is not 'bool': if type(val) in (str, string_): p._stringVars.add(key) @@ -153,7 +153,7 @@ x0 = p.x0 = oopoint(x0) x0.maxDistributionSize = p.maxDistributionSize - from fdTranslators import setStartVectorAndTranslators + from .fdTranslators import setStartVectorAndTranslators setStartVectorAndTranslators(p) F_ = p.C if p.probType in ('SLE', 'LLSP') else p.f @@ -186,12 +186,12 @@ if len(p._fixedVars) < len(p._freeVars) and 'isdisjoint' in dir(set()): areFixed = lambda dep: dep.issubset(p.fixedVarsSet) #isFixed = lambda v: v in p._fixedVars - Z = dict((v, zeros_like(val) if v not in p.fixedVarsSet else val) for v, val in p._x0.items()) + Z = dict((v, zeros_like(val) if v not in p.fixedVarsSet else val) for v, val in list(p._x0.items())) _isFixedNonStoch = lambda t: t in p.fixedVarsSet and not isinstance(p._x0[t], Stochastic)#could be improved else: areFixed = lambda dep: dep.isdisjoint(p.freeVarsSet) #isFixed = lambda v: v not in p._freeVars - Z = dict((v, zeros_like(val) if v in p.freeVarsSet else val) for v, val in p._x0.items()) + Z = dict((v, zeros_like(val) if v in p.freeVarsSet else val) for v, val in list(p._x0.items())) _isFixedNonStoch = lambda t: t not in p.freeVarsSet and not isinstance(p._x0[t], Stochastic)#could be improved p._isFixedNonStoch = _isFixedNonStoch p._areFixed = areFixed @@ -214,7 +214,7 @@ C = list(p.constraints) p._initial_constraints = C p.constraints = set(p.constraints) - for v in p._x0.keys(): + for v in list(p._x0.keys()): # if v.fields != (): # v.aux_domain = Copy(v.domain) ## # TODO: mb rework it @@ -300,7 +300,7 @@ """ handling constraints """ StartPointVars = set(p._x0.keys()) - p._dictOfStochVars = dict((k, v) for k, v in p._x0.items() if isinstance(v, Stochastic)) + p._dictOfStochVars = dict((k, v) for k, v in list(p._x0.items()) if isinstance(v, Stochastic)) p.dictOfFixedFuncs = {} p._dictOfRedirectedFuncs = {}#p._dictOfStochVars # p._init_ooarrays = set() @@ -365,10 +365,10 @@ if len(beq) != 0: p.Aeq, p.beq = Vstack(Aeq), Hstack([ravel(elem) for elem in beq]) if hasattr(p.beq, 'toarray'): p.beq = p.beq.toarray() - for vName, vVal in LB.items(): + for vName, vVal in list(LB.items()): inds = oovD[vName] lb[inds[0]:inds[1]] = vVal - for vName, vVal in UB.items(): + for vName, vVal in list(UB.items()): inds = oovD[vName] ub[inds[0]:inds[1]] = vVal p.lb, p.ub = lb, ub --- ./openopt/kernel/fdTranslators.py (original) +++ ./openopt/kernel/fdTranslators.py (refactored) @@ -1,6 +1,6 @@ from numpy import hstack, vstack, atleast_1d, cumsum, asarray, zeros, ndarray,\ prod, ones, copy, nan, flatnonzero, array_equal, asanyarray#, int64 -from nonOptMisc import scipyInstalled, Hstack, Vstack, Find, \ +from .nonOptMisc import scipyInstalled, Hstack, Vstack, Find, \ isspmatrix, SparseMatrixConstructor, DenseMatrixConstructor import numpy as np #from oologfcn import OpenOptException @@ -70,7 +70,7 @@ else: fixedVars.append(v) if freeVars is None: - freeVars = p.freeVars = startPoint.keys() + freeVars = p.freeVars = list(startPoint.keys()) del freeVars[nn-1-i] # TODO: use ordered set instead @@ -175,7 +175,7 @@ else: p.err('unclear error, maybe you have constraint independend on any optimization variables') - Items = pointDerivative.items() + Items = list(pointDerivative.items()) key, val = Items[0] if type(Items) == list else next(iter(Items)) if isinstance(val, float) or (isinstance(val, ndarray) and val.shape == ()): @@ -191,13 +191,13 @@ involveSparse = useSparse if useSparse == 'auto': nTotal = n * funcLen#sum([prod(elem.shape) for elem in pointDerivative.values()]) - nNonZero = sum((elem.size if isspmatrix(elem) else count_nonzero(elem)) for elem in pointDerivative.values()) + nNonZero = sum((elem.size if isspmatrix(elem) else count_nonzero(elem)) for elem in list(pointDerivative.values())) involveSparse = 4*nNonZero < nTotal and nTotal > 1000 if involveSparse: r2 = [] if funcLen == 1: inds = [] - for oov, val in pointDerivative.items(): + for oov, val in list(pointDerivative.items()): ind_start, ind_end = oovarsIndDict[oov] # works faster than isscalar() @@ -251,7 +251,7 @@ else: RefactoringTool: Refactored ./openopt/kernel/fdmisc.py RefactoringTool: No changes to ./openopt/kernel/iterPrint.py RefactoringTool: Refactored ./openopt/kernel/mfa.py RefactoringTool: Refactored ./openopt/kernel/nonLinFuncs.py RefactoringTool: Refactored ./openopt/kernel/nonOptMisc.py RefactoringTool: Refactored ./openopt/kernel/ooIter.py RefactoringTool: Refactored ./openopt/kernel/ooMisc.py r = SparseMatrixConstructor((funcLen, n)) if involveSparse else DenseMatrixConstructor((funcLen, n)) - for key, val in pointDerivative.items(): + for key, val in list(pointDerivative.items()): indexes = oovarsIndDict[key] if not involveSparse and isspmatrix(val): val = val.A # if isscalar(val) or prod(val.shape)==1: @@ -325,7 +325,7 @@ else: lin_oofun = elem if lin_oofun.getOrder(p.freeVars, p.fixedVars) > 1: - from oologfcn import OpenOptException + from .oologfcn import OpenOptException raise OpenOptException("this function hasn't been intended to work with nonlinear FuncDesigner oofuns") C.append(p._pointDerivative2array(lin_oofun.D(Z, **p._D_kwargs), useSparse = p.useSparse)) d.append(-lin_oofun(Z)) --- ./openopt/kernel/fdmisc.py (original) +++ ./openopt/kernel/fdmisc.py (refactored) @@ -1,7 +1,7 @@ PythonAny = any PythonAll = all from numpy import isscalar, ndarray, asscalar -from oologfcn import OpenOptException +from .oologfcn import OpenOptException def formDictOfFixedFuncs(oof, p): @@ -32,7 +32,7 @@ ff = f(Z) name, tol, _id = f.name, f.tol, f._id tmp = [(v if isscalar(val) and val == 1.0 else v * (val if type(val) != ndarray or val.ndim < 2 else val.flatten())) \ - for v, val in D.items()] + for v, val in list(D.items())] c = ff if isscalar(ff) or ff.ndim <= 1 else asscalar(ff) if c != 0: tmp.append(c) --- ./openopt/kernel/mfa.py (original) +++ ./openopt/kernel/mfa.py (refactored) @@ -3,10 +3,10 @@ TkinterIsInstalled = True try: - from Tkinter import Tk, Button, Entry, Label, Frame, StringVar, DISABLED, END, IntVar, \ + from tkinter import Tk, Button, Entry, Label, Frame, StringVar, DISABLED, END, IntVar, \ Radiobutton, Canvas - from tkFileDialog import asksaveasfilename, askopenfile - from tkMessageBox import showerror + from tkinter.filedialog import asksaveasfilename, askopenfile + from tkinter.messagebox import showerror except ImportError: TkinterIsInstalled = False @@ -30,7 +30,7 @@ see http://openopt.org/nlopt''' print(s) showerror('OpenOpt', s) - raw_input() + input() return import os hd = os.getenv("HOME") @@ -269,7 +269,7 @@ Next.destroy() #reverse = True if goal == 'min' else False - calculated_items = self.calculated_points.items() if isinstance(self.calculated_points, dict) else self.calculated_points + calculated_items = list(self.calculated_points.items()) if isinstance(self.calculated_points, dict) else self.calculated_points vals = [calculated_items[i][1] for i in range(len(calculated_items))] ind = argsort(vals) j = ind[0] if goal == 'min' else ind[-1] @@ -302,7 +302,7 @@ import pickle S = pickle.load(file) if type(S['calculated_points']) == dict: # for backward compatibility - S['calculated_points'] = S['calculated_points'].items() + S['calculated_points'] = list(S['calculated_points'].items()) #S['goal']='max' self.x0 = S.get('x0', None) # this line should be BEFORE self.create(S) @@ -396,7 +396,7 @@ # TODO: minor code cleanup CP = self.calculated_points if isinstance(CP, dict): - CP = CP.items() + CP = list(CP.items()) for i in range(len(CP)): key, val = CP[i] ws.write(10+i, 0, i+1) --- ./openopt/kernel/nonLinFuncs.py (original) +++ ./openopt/kernel/nonLinFuncs.py (refactored) @@ -1,8 +1,8 @@ from numpy import array, nan, atleast_1d, copy, vstack, hstack, isscalar, ndarray, prod, int32 import numpy as np -from setDefaultIterFuncs import USER_DEMAND_EXIT -from ooMisc import killThread, setNonLinFuncsNumber -from nonOptMisc import scipyInstalled, Vstack, isspmatrix, isPyPy +from .setDefaultIterFuncs import USER_DEMAND_EXIT +from .ooMisc import killThread, setNonLinFuncsNumber +from .nonOptMisc import scipyInstalled, Vstack, isspmatrix, isPyPy try: from DerApproximator import get_d1 DerApproximatorIsInstalled = True @@ -505,7 +505,7 @@ else: inner_ind = ind[i] - if left_arr_indexes[i] in IndDict.keys(): + if left_arr_indexes[i] in list(IndDict.keys()): IndDict[left_arr_indexes[i]].append(inner_ind) else: IndDict[left_arr_indexes[i]] = [inner_ind] --- ./openopt/kernel/nonOptMisc.py (original) +++ ./openopt/kernel/nonOptMisc.py (refactored) @@ -1,5 +1,5 @@ import os, sys, numpy as np -from oologfcn import OpenOptException +from .oologfcn import OpenOptException from numpy import zeros, hstack, vstack, ndarray, copy, where, prod, isscalar, atleast_2d, eye, \ diag, asfarray @@ -93,7 +93,7 @@ def pWarn(msg): if msg in pwSet: return pwSet.add(msg) - print('Warning: ' + msg) + print(('Warning: ' + msg)) def Eye(n): if not scipyInstalled and n>150: @@ -173,7 +173,7 @@ solverClass = solver_import(solverPaths[solverName], solverName) solverClassInstance = solverClass() solverClassInstance.fieldsForProbInstance = {} - for key, value in kwargs.items(): + for key, value in list(kwargs.items()): if hasattr(solverClassInstance, key): setattr(solverClassInstance, key, value) else: --- ./openopt/kernel/ooIter.py (original) +++ ./openopt/kernel/ooIter.py (refactored) @@ -8,7 +8,7 @@ from openopt.kernel.ooMisc import isSolved ###################### -from setDefaultIterFuncs import USER_DEMAND_STOP, IS_NAN_IN_X, SMALL_DELTA_X, IS_MAX_ITER_REACHED, \ +from .setDefaultIterFuncs import USER_DEMAND_STOP, IS_NAN_IN_X, SMALL_DELTA_X, IS_MAX_ITER_REACHED, \ IS_MAX_CPU_TIME_REACHED, IS_MAX_TIME_REACHED, IS_MAX_FUN_EVALS_REACHED #has_Tkinter = True @@ -72,7 +72,7 @@ #TODO: turn off xtol and ftol for artifically iterfcn funcs if not p.userStop and (not condEqualLastPoints or p.probType == 'GLP' or p.solver.__name__ in ('de', 'pswarm', 'interalg')): - for key, fun in p.kernelIterFuncs.items(): + for key, fun in list(p.kernelIterFuncs.items()): r = fun(p) if r is not False: p.stopdict[key] = True @@ -86,7 +86,7 @@ elif SMALL_DELTA_X in p.stopdict and array_equal(p.iterValues.x[-1], p.iterValues.x[-2]): pass else: p.nonStopMsg = '' - for fun in p.denyingStopFuncs.keys(): + for fun in list(p.denyingStopFuncs.keys()): if not fun(p): p.istop = 0 p.stopdict = {} --- ./openopt/kernel/ooMisc.py (original) +++ ./openopt/kernel/ooMisc.py (refactored) @@ -1,7 +1,7 @@ __docformat__ = "restructuredtext en" from numpy import zeros, ones, copy, isfinite, where, asarray, inf, int64, \ array, dot, ndarray, prod, flatnonzero, max, abs, sqrt, sum, atleast_1d, asscalar -from nonOptMisc import scipyAbsentMsg, scipyInstalled, isspmatrix, Hstack, Vstack, coo_matrix, isPyPy +from .nonOptMisc import scipyAbsentMsg, scipyInstalled, isspmatrix, Hstack, Vstack, coo_matrix, isPyPy Copy = lambda arg: asscalar(arg) if type(arg)==ndarray and arg.size == 1 else arg.copy() if hasattr(arg, 'copy') else copy(arg) @@ -63,21 +63,21 @@ if nLB>0 or nUB>0: if p.useSparse is True or (isspmatrix(p.A) or (scipyInstalled and nLB+nUB>=p.A.shape[0]) and p.useSparse is not False): - R1 = coo_matrix((-ones(nLB), (range(nLB), indLB)), shape=(nLB, p.n)) if nLB != 0 else zeros((0, p.n)) - R2 = coo_matrix((ones(nUB), (range(nUB), indUB)), shape=(nUB, p.n)) if nUB != 0 else zeros((0, p.n)) + R1 = coo_matrix((-ones(nLB), (list(range(nLB)), indLB)), shape=(nLB, p.n)) if nLB != 0 else zeros((0, p.n)) RefactoringTool: Refactored ./openopt/kernel/ooRun.py RefactoringTool: Refactored ./openopt/kernel/oographics.py RefactoringTool: Refactored ./openopt/kernel/oologfcn.py RefactoringTool: No changes to ./openopt/kernel/pointProjection.py RefactoringTool: Refactored ./openopt/kernel/residuals.py RefactoringTool: Refactored ./openopt/kernel/result.py RefactoringTool: Refactored ./openopt/kernel/runProbSolver.py RefactoringTool: Refactored ./openopt/kernel/setDefaultIterFuncs.py + R2 = coo_matrix((ones(nUB), (list(range(nUB)), indUB)), shape=(nUB, p.n)) if nUB != 0 else zeros((0, p.n)) else: R1 = zeros((nLB, p.n)) if isPyPy: for i in range(nLB): R1[i, indLB[i]] = -1 else: - R1[range(nLB), indLB] = -1 + R1[list(range(nLB)), indLB] = -1 R2 = zeros((nUB, p.n)) if isPyPy: for i in range(nUB): R2[i, indUB[i]] = -1 else: - R2[range(nUB), indUB] = 1 + R2[list(range(nUB)), indUB] = 1 p.A = Vstack((p.A, R1, R2)) if hasattr(p, '_A'): delattr(p, '_A') @@ -93,7 +93,7 @@ if nEQ>0: if p.useSparse is True or (isspmatrix(p.Aeq) or (scipyInstalled and nEQ>=p.Aeq.shape[0]) and p.useSparse is not False): - R = coo_matrix(([1]*nEQ, (range(nEQ), indEQ)), shape=(nEQ, p.n)) + R = coo_matrix(([1]*nEQ, (list(range(nEQ)), indEQ)), shape=(nEQ, p.n)) else: R = zeros((nEQ, p.n)) #raise 0 @@ -200,7 +200,7 @@ p.dwhole = None def assignScript(p, dictOfParams): - for key, val in dictOfParams.items(): + for key, val in list(dictOfParams.items()): if key == 'manage': #p._useGUIManager = val continue --- ./openopt/kernel/ooRun.py (original) +++ ./openopt/kernel/ooRun.py (refactored) @@ -1,4 +1,4 @@ -from runProbSolver import runProbSolver +from .runProbSolver import runProbSolver def ooRun(prob, solvers, *args, **kwargs): r = [] for solver in solvers: --- ./openopt/kernel/oographics.py (original) +++ ./openopt/kernel/oographics.py (refactored) @@ -1,7 +1,7 @@ from numpy import hstack, ravel, isnan, asfarray, log10, array, isfinite from openopt import __version__ as ooversion ooversion = str(ooversion) -from setDefaultIterFuncs import stopcase +from .setDefaultIterFuncs import stopcase class Graphics: def __init__(self): @@ -185,7 +185,7 @@ else: yySave = [p.f(p.x0)] - if tx == 'iter': xx = range(IND_start, IND_end) + if tx == 'iter': xx = list(range(IND_start, IND_end)) elif tx == 'cputime': if len(p.iterTime) != len(p.cpuTimeElapsedForPlotting): p.iterTime.append(p.iterTime[-1]) xx = asfarray(p.iterCPUTime[IND_start:IND_end]) - asfarray(p.cpuTimeElapsedForPlotting[IND_start:IND_end]) --- ./openopt/kernel/oologfcn.py (original) +++ ./openopt/kernel/oologfcn.py (refactored) @@ -53,6 +53,6 @@ def oodebugmsg(p, msg): if p.debug: - print('OpenOpt debug msg: %s' % msg) + print(('OpenOpt debug msg: %s' % msg)) return msg return '' --- ./openopt/kernel/residuals.py (original) +++ ./openopt/kernel/residuals.py (refactored) @@ -174,7 +174,7 @@ def discreteConstraintsAreSatisfied(self, x): k = -1 A = array([0, 1]) - for i in self.discreteVars.keys():#range(m): # check x-vector + for i in list(self.discreteVars.keys()):#range(m): # check x-vector # TODO: replace it by "for i, val in dict.itervalues()" s = self.discreteVars[i] if self.discreteVars[i] is not bool and self.discreteVars[i] is not 'bool' else A if not any(abs(x[i] - s) < self.discrtol): --- ./openopt/kernel/result.py (original) +++ ./openopt/kernel/result.py (refactored) @@ -1,4 +1,4 @@ -from oologfcn import OpenOptException +from .oologfcn import OpenOptException from numpy import ndarray, matrix, asscalar, asarray, asfarray from time import time, clock, strftime @@ -53,10 +53,10 @@ else dict((field, v.domain[int(val)][j]) for j, field in enumerate(v.fields)) if v.fields != ()\ else v.reverse_aux_domain[int(val)] if 'reverse_aux_domain' in v.__dict__\ else v.aux_domain[val] if 'aux_domain' in v.__dict__ else val) \ - for v, val in p.xf.items()) + for v, val in list(p.xf.items())) if not hasattr(self, '_xf'): #self._xf = dict([(v.name, asscalar(val) if isinstance(val, ndarray) and val.size ==1 else val) for v, val in p.xf.items()]) - self._xf = dict((v.name, val) for v, val in self.xf.items()) + self._xf = dict((v.name, val) for v, val in list(self.xf.items())) self.xf = oopoint(self.xf, maxDistributionSize = p.maxDistributionSize, skipArrayCast = True) else: self.xf = p.xf @@ -104,7 +104,7 @@ self.elapsed['solver_time'] -= self.elapsed['plot_time'] self.elapsed['solver_cputime'] -= self.elapsed['plot_cputime'] - self.evals = dict((key, val if type(val) == int else round(val *10) /10.0) for key, val in p.nEvals.items()) + self.evals = dict((key, val if type(val) == int else round(val *10) /10.0) for key, val in list(p.nEvals.items())) self.evals['iter'] = p.iter _encode = lambda self: None # overloaded in some subclasses @@ -113,7 +113,7 @@ r = self # p = r.p try: - from GUI import Text, Scrollbar, Tk, Button + from .GUI import Text, Scrollbar, Tk, Button except: self._misc['err'](''' Tkinter is not installed. @@ -145,7 +145,7 @@ def __getattr__(self, attr): if attr == 'view': - print(''.join([elem + '\n' for elem in _txtrepr(self)])) + print((''.join([elem + '\n' for elem in _txtrepr(self)]))) elif attr == 'tk': self._tkview() else: --- ./openopt/kernel/runProbSolver.py (original) +++ ./openopt/kernel/runProbSolver.py (refactored) @@ -3,11 +3,11 @@ from numpy import asfarray, nan, ones, all, atleast_1d, any, isnan, \ array_equal, asscalar, asarray, ndarray, isscalar, seterr, isinf,inf#, where import numpy as np -from setDefaultIterFuncs import stopcase, SMALL_DELTA_X, SMALL_DELTA_F, IS_MAX_ITER_REACHED -from check import check -from oologfcn import OpenOptException, errSet +from .setDefaultIterFuncs import stopcase, SMALL_DELTA_X, SMALL_DELTA_F, IS_MAX_ITER_REACHED +from .check import check +from .oologfcn import OpenOptException, errSet from openopt import __version__ as version -from result import OpenOptResult +from .result import OpenOptResult ###################### @@ -16,7 +16,7 @@ ###################### #from baseProblem import ProbDefaults -from nonOptMisc import getSolverFromStringName, EmptyClass +from .nonOptMisc import getSolverFromStringName, EmptyClass # for PyPy from openopt.kernel.nonOptMisc import where @@ -84,7 +84,7 @@ solver %s seems to be uninstalled yet, check http://openopt.org/%s for install instructions''' % (solver_str_or_instance.__name__, p.probType)) p.solver = solver_str_or_instance - for key, value in solver_str_or_instance.fieldsForProbInstance.items(): + for key, value in list(solver_str_or_instance.fieldsForProbInstance.items()): setattr(p, key, value) p.isConverterInvolved = isConverter if isConverter and p.probType not in ['DFP']: #, 'NLLSP']: @@ -92,7 +92,7 @@ old_err = seterr(all= 'ignore') - if 'debug' in kwargs.keys(): + if 'debug' in list(kwargs.keys()): p.debug = kwargs['debug'] probAttributes = set(p.__dict__) @@ -109,7 +109,7 @@ solver = p.solver.__solver__ - for key, value in kwargs.items(): + for key, value in list(kwargs.items()): if hasattr(p.solver, key): if isConverter: solver_params[key] = value --- ./openopt/kernel/setDefaultIterFuncs.py (original) +++ ./openopt/kernel/setDefaultIterFuncs.py (refactored) @@ -124,7 +124,7 @@ #mb in future it will be class-dependend, like Matrix, Nonlinear etc RefactoringTool: No changes to ./openopt/solvers/BrasilOpt/algencan_oo.py RefactoringTool: Refactored ./openopt/solvers/CVXOPT/CVXOPT_LLSP_Solver.py RefactoringTool: Refactored ./openopt/solvers/CVXOPT/CVXOPT_LP_Solver.py RefactoringTool: Refactored ./openopt/solvers/CVXOPT/CVXOPT_QP_Solver.py RefactoringTool: Refactored ./openopt/solvers/CVXOPT/CVXOPT_SDP_Solver.py RefactoringTool: Refactored ./openopt/solvers/CVXOPT/CVXOPT_SOCP_Solver.py RefactoringTool: Refactored ./openopt/solvers/CVXOPT/cvxopt_lp_oo.py RefactoringTool: No changes to ./openopt/solvers/CVXOPT/cvxopt_misc.py RefactoringTool: Refactored ./openopt/solvers/CVXOPT/cvxopt_qp_oo.py RefactoringTool: Refactored ./openopt/solvers/CVXOPT/cvxopt_sdp_oo.py RefactoringTool: Refactored ./openopt/solvers/CVXOPT/cvxopt_socp_oo.py RefactoringTool: Refactored ./openopt/solvers/CVXOPT/dsdp_oo.py RefactoringTool: Refactored ./openopt/solvers/CVXOPT/glpk_oo.py RefactoringTool: Refactored ./openopt/solvers/CoinOr/cplex_oo.py RefactoringTool: No changes to ./openopt/solvers/CoinOr/ipopt_oo.py RefactoringTool: No changes to ./openopt/solvers/HongKongOpt/LCPSolve.py RefactoringTool: Refactored ./openopt/solvers/HongKongOpt/QPSolve.py RefactoringTool: Refactored ./openopt/solvers/HongKongOpt/QPSparse.py return {isMinIterReached : 'min iter is not reached yet', isMinTimeReached : 'min time is not reached yet', isMinCPUTimeReached:'min cputime is not reached yet', isMinFunEvalsReached:'min objective function evaluations nuber is not reached yet'} -isMinFunEvalsReached = lambda p: p.minFunEvals==0 or ('f' in p.nEvals.keys() and p.nEvals['f'] >= p.minFunEvals) +isMinFunEvalsReached = lambda p: p.minFunEvals==0 or ('f' in list(p.nEvals.keys()) and p.nEvals['f'] >= p.minFunEvals) isMinTimeReached = lambda p: p.currtime - p.timeStart > p.minTime + p.timeElapsedForPlotting[-1] --- ./openopt/solvers/CVXOPT/CVXOPT_LLSP_Solver.py (original) +++ ./openopt/solvers/CVXOPT/CVXOPT_LLSP_Solver.py (refactored) @@ -1,6 +1,6 @@ from numpy import asfarray, ones, all, isfinite, copy, nan, concatenate, dot from openopt.kernel.ooMisc import WholeRepr2LinConst, xBounds2Matrix, xBounds2cvxoptMatrix -from cvxopt_misc import * +from .cvxopt_misc import * import cvxopt.solvers as cvxopt_solvers def CVXOPT_LLSP_Solver(p, solverName): --- ./openopt/solvers/CVXOPT/CVXOPT_LP_Solver.py (original) +++ ./openopt/solvers/CVXOPT/CVXOPT_LP_Solver.py (refactored) @@ -1,6 +1,6 @@ from numpy import asarray, ones, nan, concatenate, array from openopt.kernel.ooMisc import xBounds2Matrix -from cvxopt_misc import * +from .cvxopt_misc import * import cvxopt.solvers as cvxopt_solvers from cvxopt.base import matrix from openopt.kernel.setDefaultIterFuncs import SOLVED_WITH_UNIMPLEMENTED_OR_UNKNOWN_REASON, IS_MAX_ITER_REACHED, IS_MAX_TIME_REACHED, FAILED_WITH_UNIMPLEMENTED_OR_UNKNOWN_REASON, UNDEFINED --- ./openopt/solvers/CVXOPT/CVXOPT_QP_Solver.py (original) +++ ./openopt/solvers/CVXOPT/CVXOPT_QP_Solver.py (refactored) @@ -1,6 +1,6 @@ from numpy import asfarray, ones, all, isfinite, copy, nan, concatenate, dot from openopt.kernel.ooMisc import WholeRepr2LinConst, xBounds2Matrix -from cvxopt_misc import * +from .cvxopt_misc import * import cvxopt.solvers as cvxopt_solvers def CVXOPT_QP_Solver(p, solverName): --- ./openopt/solvers/CVXOPT/CVXOPT_SDP_Solver.py (original) +++ ./openopt/solvers/CVXOPT/CVXOPT_SDP_Solver.py (refactored) @@ -1,6 +1,6 @@ from numpy import asarray, ones, all, isfinite, copy, nan, concatenate, array, asfarray, zeros from openopt.kernel.ooMisc import WholeRepr2LinConst, xBounds2Matrix -from cvxopt_misc import * +from .cvxopt_misc import * import cvxopt.solvers as cvxopt_solvers from cvxopt.base import matrix from openopt.kernel.setDefaultIterFuncs import SOLVED_WITH_UNIMPLEMENTED_OR_UNKNOWN_REASON, IS_MAX_ITER_REACHED, IS_MAX_TIME_REACHED, FAILED_WITH_UNIMPLEMENTED_OR_UNKNOWN_REASON, UNDEFINED @@ -10,19 +10,19 @@ a = OO_SDP_Class_2D_Dict_S #r = [] R = {} - for i, j in a.keys(): - if i not in R.keys(): + for i, j in list(a.keys()): + if i not in list(R.keys()): R[i] = zeros((nVars, asarray(a[i, 0]).size)) R[i][j] = asfarray(a[i, j]).flatten() r = [] - for i in R.keys(): + for i in list(R.keys()): r.append(Matrix(R[i].T)) return r def DictToList(d): i = 0 r = [] - while i in d.keys(): + while i in list(d.keys()): r.append(matrix(d[i], tc = 'd')) i += 1 return r --- ./openopt/solvers/CVXOPT/CVXOPT_SOCP_Solver.py (original) +++ ./openopt/solvers/CVXOPT/CVXOPT_SOCP_Solver.py (refactored) @@ -1,7 +1,7 @@ from numpy import asarray, ones, all, isfinite, copy, nan, concatenate, array, hstack, vstack, atleast_1d from openopt.kernel.ooMisc import WholeRepr2LinConst, xBounds2Matrix #from openopt.kernel.nonOptMisc import Vstack -from cvxopt_misc import * +from .cvxopt_misc import * import cvxopt.solvers as cvxopt_solvers from cvxopt.base import matrix from openopt.kernel.setDefaultIterFuncs import SOLVED_WITH_UNIMPLEMENTED_OR_UNKNOWN_REASON, IS_MAX_ITER_REACHED, IS_MAX_TIME_REACHED, FAILED_WITH_UNIMPLEMENTED_OR_UNKNOWN_REASON, UNDEFINED --- ./openopt/solvers/CVXOPT/cvxopt_lp_oo.py (original) +++ ./openopt/solvers/CVXOPT/cvxopt_lp_oo.py (refactored) @@ -1,5 +1,5 @@ from openopt.kernel.baseSolver import baseSolver -from CVXOPT_LP_Solver import CVXOPT_LP_Solver +from .CVXOPT_LP_Solver import CVXOPT_LP_Solver class cvxopt_lp(baseSolver): __name__ = 'cvxopt_lp' --- ./openopt/solvers/CVXOPT/cvxopt_qp_oo.py (original) +++ ./openopt/solvers/CVXOPT/cvxopt_qp_oo.py (refactored) @@ -1,5 +1,5 @@ from openopt.kernel.baseSolver import baseSolver -from CVXOPT_QP_Solver import CVXOPT_QP_Solver +from .CVXOPT_QP_Solver import CVXOPT_QP_Solver class cvxopt_qp(baseSolver): __name__ = 'cvxopt_qp' --- ./openopt/solvers/CVXOPT/cvxopt_sdp_oo.py (original) +++ ./openopt/solvers/CVXOPT/cvxopt_sdp_oo.py (refactored) @@ -1,5 +1,5 @@ from openopt.kernel.baseSolver import baseSolver -from CVXOPT_SDP_Solver import CVXOPT_SDP_Solver +from .CVXOPT_SDP_Solver import CVXOPT_SDP_Solver class cvxopt_sdp(baseSolver): __name__ = 'cvxopt_sdp' --- ./openopt/solvers/CVXOPT/cvxopt_socp_oo.py (original) +++ ./openopt/solvers/CVXOPT/cvxopt_socp_oo.py (refactored) @@ -1,5 +1,5 @@ from openopt.kernel.baseSolver import baseSolver -from CVXOPT_SOCP_Solver import CVXOPT_SOCP_Solver +from .CVXOPT_SOCP_Solver import CVXOPT_SOCP_Solver class cvxopt_socp(baseSolver): __name__ = 'cvxopt_socp' --- ./openopt/solvers/CVXOPT/dsdp_oo.py (original) +++ ./openopt/solvers/CVXOPT/dsdp_oo.py (refactored) @@ -1,5 +1,5 @@ from openopt.kernel.baseSolver import baseSolver -from CVXOPT_SDP_Solver import CVXOPT_SDP_Solver +from .CVXOPT_SDP_Solver import CVXOPT_SDP_Solver class dsdp(baseSolver): __name__ = 'dsdp' --- ./openopt/solvers/CVXOPT/glpk_oo.py (original) +++ ./openopt/solvers/CVXOPT/glpk_oo.py (refactored) @@ -17,5 +17,5 @@ raise OpenOptException('for solver glpk cvxopt is required, but it was not found') def __solver__(self, p): - from CVXOPT_LP_Solver import CVXOPT_LP_Solver + from .CVXOPT_LP_Solver import CVXOPT_LP_Solver return CVXOPT_LP_Solver(p, 'glpk') --- ./openopt/solvers/CoinOr/cplex_oo.py (original) +++ ./openopt/solvers/CoinOr/cplex_oo.py (refactored) @@ -56,11 +56,11 @@ senses = ''.join(np.where(p.dwhole == -1, 'L', 'E').tolist()) P.linear_constraints.add(rhs=np.asarray(p.bwhole).tolist(), senses = senses) if p.Awhole.size != 0: - P.linear_constraints.set_coefficients(zip(*Find(p.Awhole))) + P.linear_constraints.set_coefficients(list(zip(*Find(p.Awhole)))) if p.probType.endswith('QP') or p.probType == 'SOCP': # assert p.probType in ('QP', 'QCQP','SOCP') - P.objective.set_quadratic_coefficients(zip(*Find(p.H))) + P.objective.set_quadratic_coefficients(list(zip(*Find(p.H)))) for q, u, v in p.QC: rows, cols, vals = Find(q) quad_expr = CPLEX.SparseTriple(ind1=rows, ind2=cols, val = vals) --- ./openopt/solvers/HongKongOpt/QPSolve.py (original) +++ ./openopt/solvers/HongKongOpt/QPSolve.py (refactored) @@ -21,7 +21,7 @@ ''' from numpy import * -from LCPSolve import LCPSolve +from .LCPSolve import LCPSolve def QPSolve(Q, e, A=None, b=None, Aeq=None, beq=None, lb=None, ub=None): ''' --- ./openopt/solvers/HongKongOpt/QPSparse.py (original) +++ ./openopt/solvers/HongKongOpt/QPSparse.py (refactored) @@ -158,7 +158,7 @@ break; else: f.close() - raise(ValueError('invalid indicator record in line '+str(lineno)+': "'+line+'"')) + raise ValueError elif section == 'NAME': pname = f3 elif section == 'ROWS': @@ -180,7 +180,7 @@ aeqcnt += 1 else: f.close() - raise(ValueError('invalid row type "'+f1+'" in line '+str(lineno)+': "'+line+'"')) + raise ValueError elif section == 'COLUMNS': cname = f2 rnames = [0,0] @@ -251,14 +251,14 @@ lb[ic] = f4 elif f1 == 'FX': # TODO add an equality constraint RefactoringTool: Refactored ./openopt/solvers/HongKongOpt/lcpsolve_oo.py RefactoringTool: Refactored ./openopt/solvers/HongKongOpt/qlcp.py RefactoringTool: Refactored ./openopt/solvers/HongKongOpt/qlcp_oo.py RefactoringTool: Refactored ./openopt/solvers/HongKongOpt/sqlcp.py RefactoringTool: Refactored ./openopt/solvers/HongKongOpt/sqlcp_oo.py RefactoringTool: No changes to ./openopt/solvers/MATLAB/MATLAB_BASE.py RefactoringTool: No changes to ./openopt/solvers/MATLAB/Wormhole.py RefactoringTool: Refactored ./openopt/solvers/MATLAB/bintprog_oo.py RefactoringTool: Refactored ./openopt/solvers/MATLAB/fmincon_oo.py RefactoringTool: Refactored ./openopt/solvers/MATLAB/linprog_oo.py RefactoringTool: Refactored ./openopt/solvers/MATLAB/lsqlin_oo.py RefactoringTool: Refactored ./openopt/solvers/MATLAB/matlab_fsolve_oo.py RefactoringTool: Refactored ./openopt/solvers/MATLAB/matlab_ode.py RefactoringTool: Refactored ./openopt/solvers/MATLAB/ode113_oo.py RefactoringTool: Refactored ./openopt/solvers/MATLAB/ode15s_oo.py RefactoringTool: Refactored ./openopt/solvers/MATLAB/ode23_oo.py RefactoringTool: Refactored ./openopt/solvers/MATLAB/ode23s_oo.py RefactoringTool: Refactored ./openopt/solvers/MATLAB/ode23t_oo.py RefactoringTool: Refactored ./openopt/solvers/MATLAB/ode23tb_oo.py RefactoringTool: Refactored ./openopt/solvers/MATLAB/ode45_oo.py RefactoringTool: Refactored ./openopt/solvers/MATLAB/quadprog_oo.py RefactoringTool: Refactored ./openopt/solvers/MATLAB/wh.py RefactoringTool: Refactored ./openopt/solvers/MATLAB/wh_conn_solver.py RefactoringTool: No changes to ./openopt/solvers/Octave/octave_qp_oo.py RefactoringTool: No changes to ./openopt/solvers/Standalone/arpack_oo.py RefactoringTool: No changes to ./openopt/solvers/Standalone/asa_oo.py RefactoringTool: Refactored ./openopt/solvers/Standalone/branb_oo.py - raise(ValueError('fixed variable (FX) bound not supported in line '+str(lineno)+': "'+line+'"')) + raise ValueError elif f1 == 'FR': lb[ic] = -Inf ub[ic] = Inf elif f1 == 'MI': lb[ic] = -Inf elif f1 == 'BV': - raise(ValueError('binary value (BV) bound not supported in line '+str(lineno)+': "'+line+'"')) + raise ValueError elif section == 'QUADOBJ': ic1 = colnum[f2] @@ -270,7 +270,7 @@ qcnt += 1 f.close() if section != None: - raise(EOFError('unexpected EOF while in section '+section)) + raise EOFError # Now we have all necessary info and we can build A,b,Aeq and Beq if acnt > 0: @@ -328,7 +328,7 @@ elif rt == 'G': # b1 = b[index] - abs(value) # sign??? elif rt == 'E': # - raise(ValueError('RANGES for rows of type E not yet supported in line '+str(lineno)+': "'+line+'"')) + raise ValueError #b1 = b[index] - value addA[index,:] = -A[index,:] # append to A duplicate of index row, with sign changed --- ./openopt/solvers/HongKongOpt/lcpsolve_oo.py (original) +++ ./openopt/solvers/HongKongOpt/lcpsolve_oo.py (refactored) @@ -1,8 +1,8 @@ from numpy import isfinite, any, hstack from openopt.kernel.baseSolver import * -from sqlcp import sqlcp as SQLCP +from .sqlcp import sqlcp as SQLCP from numpy.linalg import LinAlgError -from LCPSolve import LCPSolve +from .LCPSolve import LCPSolve class lcpsolve(baseSolver): __name__ = 'lcp' --- ./openopt/solvers/HongKongOpt/qlcp.py (original) +++ ./openopt/solvers/HongKongOpt/qlcp.py (refactored) @@ -22,7 +22,7 @@ from numpy import * from scipy.linalg import lu_factor, lu_solve -from LCPSolve import LCPSolve +from .LCPSolve import LCPSolve def qlcp(Q, e, A=None, b=None, Aeq=None, beq=None, lb=None, ub=None, QI=None): ''' --- ./openopt/solvers/HongKongOpt/qlcp_oo.py (original) +++ ./openopt/solvers/HongKongOpt/qlcp_oo.py (refactored) @@ -1,5 +1,5 @@ from openopt.kernel.baseSolver import baseSolver -from QPSolve import QPSolve +from .QPSolve import QPSolve class qlcp(baseSolver): __license__ = "MIT" --- ./openopt/solvers/HongKongOpt/sqlcp.py (original) +++ ./openopt/solvers/HongKongOpt/sqlcp.py (refactored) @@ -20,7 +20,7 @@ THE SOFTWARE. ''' from numpy import * -from qlcp import qlcp +from .qlcp import qlcp try: import openopt except: --- ./openopt/solvers/HongKongOpt/sqlcp_oo.py (original) +++ ./openopt/solvers/HongKongOpt/sqlcp_oo.py (refactored) @@ -1,6 +1,6 @@ from numpy import isfinite, any from openopt.kernel.baseSolver import * -from sqlcp import sqlcp as SQLCP +from .sqlcp import sqlcp as SQLCP from numpy.linalg import LinAlgError class sqlcp(baseSolver): --- ./openopt/solvers/MATLAB/bintprog_oo.py (original) +++ ./openopt/solvers/MATLAB/bintprog_oo.py (refactored) @@ -1,4 +1,4 @@ -from MATLAB_BASE import MATLAB_BASE +from .MATLAB_BASE import MATLAB_BASE #import numpy as np class bintprog(MATLAB_BASE): --- ./openopt/solvers/MATLAB/fmincon_oo.py (original) +++ ./openopt/solvers/MATLAB/fmincon_oo.py (refactored) @@ -1,4 +1,4 @@ -from wh_conn_solver import wh_conn_solver +from .wh_conn_solver import wh_conn_solver class fmincon(wh_conn_solver): __name__ = 'fmincon' --- ./openopt/solvers/MATLAB/linprog_oo.py (original) +++ ./openopt/solvers/MATLAB/linprog_oo.py (refactored) @@ -1,4 +1,4 @@ -from MATLAB_BASE import MATLAB_BASE +from .MATLAB_BASE import MATLAB_BASE class linprog(MATLAB_BASE): __name__ = 'linprog' --- ./openopt/solvers/MATLAB/lsqlin_oo.py (original) +++ ./openopt/solvers/MATLAB/lsqlin_oo.py (refactored) @@ -1,4 +1,4 @@ -from MATLAB_BASE import MATLAB_BASE +from .MATLAB_BASE import MATLAB_BASE class lsqlin(MATLAB_BASE): __name__ = 'lsqlin' --- ./openopt/solvers/MATLAB/matlab_fsolve_oo.py (original) +++ ./openopt/solvers/MATLAB/matlab_fsolve_oo.py (refactored) @@ -1,4 +1,4 @@ -from wh_conn_solver import wh_conn_solver +from .wh_conn_solver import wh_conn_solver class matlab_fsolve(wh_conn_solver): __name__ = 'matlab_fsolve' --- ./openopt/solvers/MATLAB/matlab_ode.py (original) +++ ./openopt/solvers/MATLAB/matlab_ode.py (refactored) @@ -1,4 +1,4 @@ -from wh_conn_solver import wh_conn_solver +from .wh_conn_solver import wh_conn_solver class matlab_ode(wh_conn_solver): __license__ = "proprietary" --- ./openopt/solvers/MATLAB/ode113_oo.py (original) +++ ./openopt/solvers/MATLAB/ode113_oo.py (refactored) @@ -1,4 +1,4 @@ -from matlab_ode import matlab_ode +from .matlab_ode import matlab_ode class ode113(matlab_ode): __name__ = 'ode113' --- ./openopt/solvers/MATLAB/ode15s_oo.py (original) +++ ./openopt/solvers/MATLAB/ode15s_oo.py (refactored) @@ -1,4 +1,4 @@ -from matlab_ode import matlab_ode +from .matlab_ode import matlab_ode class ode15s(matlab_ode): __name__ = 'ode15s' --- ./openopt/solvers/MATLAB/ode23_oo.py (original) +++ ./openopt/solvers/MATLAB/ode23_oo.py (refactored) @@ -1,4 +1,4 @@ -from matlab_ode import matlab_ode +from .matlab_ode import matlab_ode class ode23(matlab_ode): __name__ = 'ode23' --- ./openopt/solvers/MATLAB/ode23s_oo.py (original) +++ ./openopt/solvers/MATLAB/ode23s_oo.py (refactored) @@ -1,4 +1,4 @@ -from matlab_ode import matlab_ode +from .matlab_ode import matlab_ode class ode23s(matlab_ode): __name__ = 'ode23s' --- ./openopt/solvers/MATLAB/ode23t_oo.py (original) +++ ./openopt/solvers/MATLAB/ode23t_oo.py (refactored) @@ -1,4 +1,4 @@ -from matlab_ode import matlab_ode +from .matlab_ode import matlab_ode class ode23t(matlab_ode): __name__ = 'ode23t' --- ./openopt/solvers/MATLAB/ode23tb_oo.py (original) +++ ./openopt/solvers/MATLAB/ode23tb_oo.py (refactored) @@ -1,4 +1,4 @@ -from matlab_ode import matlab_ode +from .matlab_ode import matlab_ode class ode23tb(matlab_ode): __name__ = 'ode23tb' --- ./openopt/solvers/MATLAB/ode45_oo.py (original) +++ ./openopt/solvers/MATLAB/ode45_oo.py (refactored) @@ -1,4 +1,4 @@ -from matlab_ode import matlab_ode +from .matlab_ode import matlab_ode class ode45(matlab_ode): __name__ = 'ode45' --- ./openopt/solvers/MATLAB/quadprog_oo.py (original) +++ ./openopt/solvers/MATLAB/quadprog_oo.py (refactored) @@ -1,4 +1,4 @@ -from MATLAB_BASE import MATLAB_BASE +from .MATLAB_BASE import MATLAB_BASE class quadprog(MATLAB_BASE): __name__ = 'quadprog' --- ./openopt/solvers/MATLAB/wh.py (original) +++ ./openopt/solvers/MATLAB/wh.py (refactored) @@ -20,7 +20,7 @@ ] Matlab = matlabExecutable+' '+' '.join(args) subprocess.Popen(Matlab, shell=True) - for k, v in d.items(): + for k, v in list(d.items()): exec(k + '=v') # is_sparse = False # to suppress Python3 issue s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) --- ./openopt/solvers/MATLAB/wh_conn_solver.py (original) +++ ./openopt/solvers/MATLAB/wh_conn_solver.py (refactored) @@ -1,6 +1,6 @@ from openopt.kernel.baseSolver import * from openopt.kernel.setDefaultIterFuncs import SMALL_DELTA_X, SMALL_DELTA_F -from wh import wh +from .wh import wh def FuncWrapper(p, attr): Func = getattr(p, attr) --- ./openopt/solvers/Standalone/branb_oo.py (original) +++ ./openopt/solvers/Standalone/branb_oo.py (refactored) @@ -28,7 +28,7 @@ # TODO: check it # it can be removed in other place during prob preparation for key in [IS_NAN_IN_X, SMALL_DELTA_X, SMALL_DELTA_F]: - if key in p.kernelIterFuncs.keys(): + if key in list(p.kernelIterFuncs.keys()): p.kernelIterFuncs.pop(key) p.nlpSolver = self.nlpSolver @@ -61,7 +61,7 @@ # check if all discrete constraints are satisfied x = curr_NLP_Point.x k = -1 - for i in p.discreteVars.keys():#range(m): # check x-vector + for i in list(p.discreteVars.keys()):#range(m): # check x-vector # TODO: replace it by "for i, val in dict.itervalues()" RefactoringTool: No changes to ./openopt/solvers/Standalone/bvls_oo.py RefactoringTool: No changes to ./openopt/solvers/Standalone/defaultSLEsolver_oo.py RefactoringTool: No changes to ./openopt/solvers/Standalone/direct_oo.py RefactoringTool: No changes to ./openopt/solvers/Standalone/galileo_oo.py RefactoringTool: No changes to ./openopt/solvers/Standalone/knitro_oo.py RefactoringTool: No changes to ./openopt/solvers/Standalone/lsqr.py RefactoringTool: Refactored ./openopt/solvers/Standalone/lsqr_oo.py RefactoringTool: No changes to ./openopt/solvers/Standalone/pclp_oo.py RefactoringTool: No changes to ./openopt/solvers/Standalone/pointProjection.py RefactoringTool: No changes to ./openopt/solvers/Standalone/pswarm_oo.py RefactoringTool: No changes to ./openopt/solvers/Standalone/pymls_oo.py RefactoringTool: No changes to ./openopt/solvers/Standalone/sa.py RefactoringTool: No changes to ./openopt/solvers/Standalone/sa_oo.py RefactoringTool: Refactored ./openopt/solvers/Standalone/tsp.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/Dilation2.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/Dilation3.py if not any(abs(x[i] - p.discreteVars[i]) < p.discrtol): k=i # Violation of this set constraint. --- ./openopt/solvers/Standalone/lsqr_oo.py (original) +++ ./openopt/solvers/Standalone/lsqr_oo.py (refactored) @@ -2,7 +2,7 @@ from numpy import dot, asfarray, atleast_1d, zeros, ones, float64, where, inf, ndarray, flatnonzero from openopt.kernel.baseSolver import baseSolver from openopt.kernel.nonOptMisc import isspmatrix, scipyInstalled, scipyAbsentMsg, isPyPy -from lsqr import lsqr as LSQR +from .lsqr import lsqr as LSQR try: from scipy.sparse import csc_matrix, csr_matrix --- ./openopt/solvers/Standalone/tsp.py (original) +++ ./openopt/solvers/Standalone/tsp.py (refactored) @@ -132,12 +132,12 @@ usage(); print("missing --cooling start_temp:alpha for annealing") sys.exit(1) - from sa import anneal + from .sa import anneal iterations,score,best=anneal(init_function,move_operator,objective_function,max_iterations,start_temp,alpha, p) return iterations,score,best def usage(): - print("usage: python %s [-o ] [-v] [-m reversed_sections|swapped_cities] -n [-a hillclimb|anneal] [--cooling start_temp:alpha] " % sys.argv[0]) + print(("usage: python %s [-o ] [-v] [-m reversed_sections|swapped_cities] -n [-a hillclimb|anneal] [--cooling start_temp:alpha] " % sys.argv[0])) def main(arg, p = None): max_iterations=10000 @@ -193,5 +193,5 @@ city_file = '/home/dmitrey/tsp/part_three/city100.txt' r = main(city_file) print(r) - print('time elapsed: %0.1f' %(time()-t)) + print(('time elapsed: %0.1f' %(time()-t))) --- ./openopt/solvers/UkrOpt/Dilation2.py (original) +++ ./openopt/solvers/UkrOpt/Dilation2.py (refactored) @@ -51,7 +51,7 @@ #self.units.add(DilationUnit(vector.copy(), dilationCoeff)) self.units.append(DilationUnit(v, dilationCoeff)) - print 'add new dilation vector; curr num: ', len(self.units) + print('add new dilation vector; curr num: ', len(self.units)) def getProjections(self, vv): #assert len(self.units) != 0 @@ -89,7 +89,7 @@ dilatedDirection += t r = dilatedDirection+rest nr = norm(r) - for i in xrange(len(s)): + for i in range(len(s)): if ns[i] < 1e-10*nr: r += 1e-10*nr*s[i]/ns[i]-s[i] return projectionsInfo, r @@ -120,7 +120,7 @@ unit.dilationCoeff *= 2.0 elif c > 0.25 : unit.dilationCoeff /= 2.0 - print i, unit.dilationCoeff + print(i, unit.dilationCoeff) def updateDilationCoeffs(self, scalarComponents, rest): @@ -171,7 +171,7 @@ for i, unit in enumerate(self.units): unit.dilationCoeff = r[i] - print 'nU=%d k=%0.1g r_min=%0.1g r_max=%0.1g' % (self.unitsNum, k, min(r), max(r)) + print('nU=%d k=%0.1g r_min=%0.1g r_max=%0.1g' % (self.unitsNum, k, min(r), max(r))) #print r #print i, unit.dilationCoeff # print 'old sum:', S2,'new sum:', sum(array([unit.dilationCoeff*scalarComponents[i] for i, unit in enumerate(self.units)])**2) @@ -189,7 +189,7 @@ # scs.pop(0) # scs.append(scalarComponent) - print 'norm(rest1):', norm(rest) + print('norm(rest1):', norm(rest)) #cond_add = norm(rest1) > 1e-2 s = abs(asfarray([scalarComponent for (scalarComponent, component, unit) in projectionsInfo])) #cond_add = self.unitsNum == 0 or any(norm(rest1) > 64.0*asfarray([unit.dilationCoeff * s[i] for i, unit in enumerate(self.units)])) @@ -197,7 +197,7 @@ if cond_add: self.addDilationUnit(rest) projectionsInfo, rest = self.getProjections(_dilationDirection_) - print 'norm(rest11):', norm(rest) + print('norm(rest11):', norm(rest)) #print '!>', dot(dilatedDirectionComponent1, rest1) / norm(dilatedDirectionComponent1) / norm(rest1) #print '!!>', dilatedDirectionComponent1, rest1 @@ -263,7 +263,7 @@ # unit.dilationCoeff /= miUnit.dilationCoeff #print 'mi removed:', ind_mi nRemoved = self.cleanUnnessesaryDilationUnits() - if nRemoved: print 'nRemoved:', nRemoved + if nRemoved: print('nRemoved:', nRemoved) return r #d = 1.0 @@ -340,10 +340,10 @@ indUnitsToRemove = [] for i, unit in enumerate(self.units): if unit.dilationCoeff > self.dilationCoeffThreshold: - print '>>', unit.dilationCoeff , self.dilationCoeffThreshold + print('>>', unit.dilationCoeff , self.dilationCoeffThreshold) indUnitsToRemove.append(i) #unitsToRemove.add(unit) - for j in xrange(len(indUnitsToRemove)): + for j in range(len(indUnitsToRemove)): self.units.pop(indUnitsToRemove[-1-j]) nRemoved = len(indUnitsToRemove) self.unitsNum -= nRemoved --- ./openopt/solvers/UkrOpt/Dilation3.py (original) +++ ./openopt/solvers/UkrOpt/Dilation3.py (refactored) @@ -51,7 +51,7 @@ #self.units.add(DilationUnit(vector.copy(), dilationCoeff)) self.units.append(DilationUnit(v, dilationCoeff)) - print 'add new dilation vector; curr num: ', len(self.units) + print('add new dilation vector; curr num: ', len(self.units)) def getProjections(self, vv): #assert len(self.units) != 0 @@ -89,7 +89,7 @@ dilatedDirection += t r = dilatedDirection+rest nr = norm(r) - for i in xrange(len(s)): + for i in range(len(s)): if ns[i] < 1e-10*nr: r += 1e-10*nr*s[i]/ns[i]-s[i] return projectionsInfo, r @@ -120,7 +120,7 @@ unit.dilationCoeff *= 2.0 elif c > 0.25 : unit.dilationCoeff /= 2.0 - print i, unit.dilationCoeff + print(i, unit.dilationCoeff) def updateDilationCoeffs(self, scalarComponents, rest): @@ -171,7 +171,7 @@ for i, unit in enumerate(self.units): unit.dilationCoeff = r[i] - print 'nU=%d k=%0.1g r_min=%0.1g r_max=%0.1g' % (self.unitsNum, k, min(r), max(r)) + print('nU=%d k=%0.1g r_min=%0.1g r_max=%0.1g' % (self.unitsNum, k, min(r), max(r))) #print r #print i, unit.dilationCoeff # print 'old sum:', S2,'new sum:', sum(array([unit.dilationCoeff*scalarComponents[i] for i, unit in enumerate(self.units)])**2) @@ -183,7 +183,7 @@ projectionsInfo1, rest1 = self.getProjections(_dilationDirection_) - print 'norm(rest1):', norm(rest1) + print('norm(rest1):', norm(rest1)) #cond_add = norm(rest1) > 1e-2 s = abs(asfarray([scalarComponent for (scalarComponent, component, unit) in projectionsInfo1])) #cond_add = self.unitsNum == 0 or any(norm(rest1) > 64.0*asfarray([unit.dilationCoeff * s[i] for i, unit in enumerate(self.units)])) @@ -191,7 +191,7 @@ if cond_add: self.addDilationUnit(rest1) projectionsInfo1, rest1 = self.getProjections(_dilationDirection_) - print 'norm(rest11):', norm(rest1) + print('norm(rest11):', norm(rest1)) #print '!>', dot(dilatedDirectionComponent1, rest1) / norm(dilatedDirectionComponent1) / norm(rest1) #print '!!>', dilatedDirectionComponent1, rest1 @@ -258,7 +258,7 @@ # unit.dilationCoeff /= miUnit.dilationCoeff #print 'mi removed:', ind_mi nRemoved = self.cleanUnnessesaryDilationUnits() - if nRemoved: print 'nRemoved:', nRemoved + if nRemoved: print('nRemoved:', nRemoved) return r #d = 1.0 @@ -335,10 +335,10 @@ indUnitsToRemove = [] for i, unit in enumerate(self.units): RefactoringTool: No changes to ./openopt/solvers/UkrOpt/PolytopProjection.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/Saved_ii_engine.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/Saved_interalgCons.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/Saved_interalgLLR.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/Saved_interalgMOP.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/Saved_interalgMisc.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/Saved_interalgODE.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/Saved_interalgT.py if unit.dilationCoeff > self.dilationCoeffThreshold: - print '>>', unit.dilationCoeff , self.dilationCoeffThreshold + print('>>', unit.dilationCoeff , self.dilationCoeffThreshold) indUnitsToRemove.append(i) #unitsToRemove.add(unit) - for j in xrange(len(indUnitsToRemove)): + for j in range(len(indUnitsToRemove)): self.units.pop(indUnitsToRemove[-1-j]) nRemoved = len(indUnitsToRemove) self.unitsNum -= nRemoved --- ./openopt/solvers/UkrOpt/Saved_ii_engine.py (original) +++ ./openopt/solvers/UkrOpt/Saved_ii_engine.py (refactored) @@ -1,4 +1,4 @@ -from interalgLLR import * +from .interalgLLR import * from numpy import inf, prod, all, sum, zeros #from FuncDesigner.boundsurf import boundsurf @@ -54,7 +54,7 @@ Lf, Uf = val_l, val_u # changes end else: - centers = oopoint((v, asarray(0.5*(val[0] + val[1]), dataType)) for v, val in ip.items()) + centers = oopoint((v, asarray(0.5*(val[0] + val[1]), dataType)) for v, val in list(ip.items())) centers.dictOfFixedFuncs = p.dictOfFixedFuncs centers._dictOfRedirectedFuncs = p._dictOfRedirectedFuncs centers.maxDistributionSize = p.maxDistributionSize --- ./openopt/solvers/UkrOpt/Saved_interalgCons.py (original) +++ ./openopt/solvers/UkrOpt/Saved_interalgCons.py (refactored) @@ -2,7 +2,7 @@ PythonAll = all from numpy import empty, logical_and, logical_not, take, zeros, isfinite, any, \ asarray, ndarray #where -from interalgT import truncateByPlane, getTruncatedArrays, splitDomainForDiscreteVariable#adjustDiscreteVarBounds +from .interalgT import truncateByPlane, getTruncatedArrays, splitDomainForDiscreteVariable#adjustDiscreteVarBounds import numpy as np from bisect import bisect_left @@ -47,7 +47,7 @@ if 1: - for line_A, val_b in lin_ineq_ids.values(): + for line_A, val_b in list(lin_ineq_ids.values()): Lx, Ux, indT, ind_remain = truncateByPlane(Lx, Ux, indT, line_A, val_b + p.contol) if ind_remain is not None: semiinvariant = semiinvariant[ind_remain] @@ -55,7 +55,7 @@ - for line_A, val_b in lin_eq_ids.values(): + for line_A, val_b in list(lin_eq_ids.values()): # TODO: handle it via one func Lx, Ux, indT, ind_remain = truncateByPlane(Lx, Ux, indT, line_A, val_b+p.contol) if ind_remain is not None: @@ -93,7 +93,7 @@ freeVarsList = p._freeVarsList - for c_id, (c, f, lb, ub, tol) in C0.items(): + for c_id, (c, f, lb, ub, tol) in list(C0.items()): # print ('c_1', p.iter, c.dep, hasPoint(Lx, Ux, a)) m = Lx.shape[0] # is changed in the cycle @@ -198,7 +198,7 @@ AC_lst = [activeCons[k] for k in active_points_inds] if useReduction else activeCons c_nlh_multiplier = getMultiplier(AC_lst, c_id, p.iter) - for v, tmp in res.items(): + for v, tmp in list(res.items()): j = freeVarsDict.get(v) half_width = tmp.shape[1]//2 a1, a2 = tmp[:, half_width:].flatten() - T0, tmp[:, :half_width].flatten() - T0 @@ -280,9 +280,9 @@ # if len(elem)!=0 and elem[-1] == c_id: constraints_counter[c_id] += 1 - if not all(v >= 0 for v in constraints_counter.values()): - print('negative constr counter at iter %d:' % p.iter) - print('\t',[(k,v) for k,v in constraints_counter.items() if v < 0]) + if not all(v >= 0 for v in list(constraints_counter.values())): + print(('negative constr counter at iter %d:' % p.iter)) + print(('\t',[(k,v) for k,v in list(constraints_counter.items()) if v < 0])) # if p.iter >= 10: @@ -296,7 +296,7 @@ new_active_cons = set() new_active_cons.update(*newActiveCons) - storedInactiveCons = set(_id for _id, num in constraints_counter.items() if num == 0) + storedInactiveCons = set(_id for _id, num in list(constraints_counter.items()) if num == 0) inactiveConsIdx = storedInactiveCons - new_active_cons @@ -345,7 +345,7 @@ if p.solver.prioritized_constraints: ac2 = [] - from interalg_oo import ActiveConstraintsEntry + from .interalg_oo import ActiveConstraintsEntry for i, item in enumerate(newActiveCons): tmp = ActiveConstraintsEntry(item) Tmp = activeCons[i].triggering_info @@ -548,7 +548,7 @@ return Lx, Ux, indT, semiinvariant, nlh, nlh_0, ind_l, ind_u -normalizer = (np.pi/2-np.arctan(range(5))).mean() +normalizer = (np.pi/2-np.arctan(list(range(5)))).mean() def getMultiplier(activeCons, c_id, iter): # return 1.0 --- ./openopt/solvers/UkrOpt/Saved_interalgLLR.py (original) +++ ./openopt/solvers/UkrOpt/Saved_interalgLLR.py (refactored) @@ -11,7 +11,7 @@ import numpy as np from FuncDesigner import oopoint from FuncDesigner.multiarray import multiarray -from interalgT import * +from .interalgT import * if isPyPy: nanargmin = nanargmin_axis @@ -200,7 +200,7 @@ if len(C) != 0: indConstraints = empty(m, bool) indConstraints.fill(True) - for _c, f, lb_, ub_ in C.values(): + for _c, f, lb_, ub_ in list(C.values()): c = f(centers, **kw).flatten() # print(c,lb_,ub_) ind_feasible = logical_and(c >= lb_, c <= ub_) # here lb_ and ub_ are already shifted by required tolerance --- ./openopt/solvers/UkrOpt/Saved_interalgMOP.py (original) +++ ./openopt/solvers/UkrOpt/Saved_interalgMOP.py (refactored) @@ -10,7 +10,7 @@ # from bottleneck import nanargmin, nanmin #except ImportError: # from numpy import nanmin, nanargmin -from interalgLLR import * +from .interalgLLR import * def getMOPnlh_seq(Arg): targets_vals, targets_tols, solutionsF, lf, uf = Arg --- ./openopt/solvers/UkrOpt/Saved_interalgMisc.py (original) +++ ./openopt/solvers/UkrOpt/Saved_interalgMisc.py (refactored) @@ -12,7 +12,7 @@ def append(*args, **kw): raise ImportError('function append() is absent in PyPy yet') -from interalgLLR import * +from .interalgLLR import * try: from bottleneck import nanmin, nanmax --- ./openopt/solvers/UkrOpt/Saved_interalgODE.py (original) +++ ./openopt/solvers/UkrOpt/Saved_interalgODE.py (refactored) @@ -82,7 +82,7 @@ if isIP: if tmp.level == 1: #adjustCentersWithDiscreteVariables(wCenters, p) - centers = oopoint((v, asarray(0.5*(val[0] + val[1]), dataType)) for v, val in mp.items()) + centers = oopoint((v, asarray(0.5*(val[0] + val[1]), dataType)) for v, val in list(mp.items())) centers.dictOfFixedFuncs = p.dictOfFixedFuncs centers._dictOfRedirectedFuncs = p._dictOfRedirectedFuncs centers_L, centers_U = tmp.values(centers) @@ -113,12 +113,12 @@ # l_c, u_c = l.c, u.c # dT = TimesEnd - TimesStart if requiredTimes[-1] > requiredTimes[0] else TimesStart - TimesEnd - ends = oopoint([(v, asarray(val[1], dataType)) for v, val in mp.items()]) + ends = oopoint([(v, asarray(val[1], dataType)) for v, val in list(mp.items())]) ends.dictOfFixedFuncs = p.dictOfFixedFuncs ends._dictOfRedirectedFuncs = p._dictOfRedirectedFuncs ends_L, ends_U = tmp.values(ends) - starts = oopoint((v, asarray(val[0], dataType)) for v, val in mp.items()) + starts = oopoint((v, asarray(val[0], dataType)) for v, val in list(mp.items())) starts.dictOfFixedFuncs = p.dictOfFixedFuncs starts._dictOfRedirectedFuncs = p._dictOfRedirectedFuncs starts_L, starts_U = tmp.values(starts) --- ./openopt/solvers/UkrOpt/Saved_interalgT.py (original) +++ ./openopt/solvers/UkrOpt/Saved_interalgT.py (refactored) @@ -445,10 +445,10 @@ return Lx, Ux, indT, ind_remain RefactoringTool: Refactored ./openopt/solvers/UkrOpt/Saved_interalg_oo.py RefactoringTool: No changes to ./openopt/solvers/UkrOpt/ShorEllipsoid_oo.py RefactoringTool: No changes to ./openopt/solvers/UkrOpt/UkrOptMisc.py RefactoringTool: No changes to ./openopt/solvers/UkrOpt/amsg2p.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/amsg2p_oo.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/asdf.py RefactoringTool: No changes to ./openopt/solvers/UkrOpt/asdf_oo.py RefactoringTool: No changes to ./openopt/solvers/UkrOpt/de_oo.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/goldenSection_oo.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/gsubg_oo.py oovarsIndDict = p._oovarsIndDict - ind = np.array([oovarsIndDict[oov][0] for oov in gradient.keys()]) + ind = np.array([oovarsIndDict[oov][0] for oov in list(gradient.keys())]) Lx2, Ux2 = Lx[:, ind], Ux[:, ind] - A = np.vstack([np.asarray(elem).reshape(1, -1) for elem in gradient.values()]).T + A = np.vstack([np.asarray(elem).reshape(1, -1) for elem in list(gradient.values())]).T centers = 0.5 * (Lx2 + Ux2) b = np.sum(A * centers, 1) - centerValues.view(np.ndarray) + threshold --- ./openopt/solvers/UkrOpt/Saved_interalg_oo.py (original) +++ ./openopt/solvers/UkrOpt/Saved_interalg_oo.py (refactored) @@ -9,7 +9,7 @@ from openopt.solvers.UkrOpt.interalgMisc import * from FuncDesigner import sum as fd_sum, abs as fd_abs, oopoint -from ii_engine import * +from .ii_engine import * #from interalgT import getTruncatedArrays @@ -64,7 +64,7 @@ isMOP = p.probType == 'MOP' if isMOP: - from interalgMOP import processBoxesMOP + from .interalgMOP import processBoxesMOP #isOpt = p.probType in ['NLP', 'NSP', 'GLP', 'MINLP'] isODE = p.probType == 'ODE' isIP = p.probType == 'IP' @@ -72,10 +72,10 @@ if not isIP and not isODE: if 1: - from interalgCons import processConstraints + from .interalgCons import processConstraints use_saved = 0 else: - from Saved_interalgCons import processConstraints + from .Saved_interalgCons import processConstraints use_saved = 1 if not p.__isFiniteBoxBounded__() and not isODE: @@ -146,7 +146,7 @@ - for val in p._x0.values(): + for val in list(p._x0.values()): if isinstance(val, (list, tuple, np.ndarray)) and len(val) > 1: p.pWarn(''' solver %s currently can handle only single-element variables, @@ -155,7 +155,7 @@ '''% self.__name__) - for val in x0.values(): + for val in list(x0.values()): if isinstance(val, (list, tuple, np.ndarray)) and len(val) > 1: p.err(''' solver %s currently can handle only single-element variables, @@ -220,7 +220,7 @@ # TODO: rework it if discrete variables will be somehow added for IP or ODE if not isIP and not isODE: - from interalgLLR import adjustCentersWithDiscreteVariables + from .interalgLLR import adjustCentersWithDiscreteVariables adjustCentersWithDiscreteVariables(xRecord.reshape(1, -1), p) bestKnownObjValueWithPoint = np.inf @@ -366,11 +366,11 @@ C = dict((elem[0]._id, elem) for elem in _C) C0 = dict((elem[0]._id, elem) for elem in _C0) - p._constraints_dep_dict = dict((k, elem[1].Dep & p.freeVarsSet) for k, elem in C.items()) + p._constraints_dep_dict = dict((k, elem[1].Dep & p.freeVarsSet) for k, elem in list(C.items())) # if not use_saved: - p._constraints_counter = dict((c_id, 0) for c_id in C0.keys()) + p._constraints_counter = dict((c_id, 0) for c_id in list(C0.keys())) # TODO: further develoopment (add triggering cons data while point/centers computation) activeCons = [ActiveConstraintsEntry(list(C0.keys()))] @@ -412,7 +412,7 @@ semiinvariant = atleast_1d(inf) if isODE or (isIP and p.n == 1): - from interalgODE import interalg_ODE_routine + from .interalgODE import interalg_ODE_routine interalg_ODE_routine(p, self) return @@ -543,7 +543,7 @@ if isMOP: for i, s in enumerate(p.solutions): s.useAsMutable = True - for v, val in s.items(): + for v, val in list(s.items()): if v.fields != (): s[v] = dict((field, v.aux_domain[int(val)][j]) for j, field in enumerate(v.fields)) for j, goal in enumerate(p.user.f): @@ -576,5 +576,5 @@ class ActiveConstraintsEntry(list): def copy(self): tmp = ActiveConstraintsEntry(list.copy(self)) - tmp.triggering_info = dict((k, w.copy()) for k, w in self.triggering_info.items()) + tmp.triggering_info = dict((k, w.copy()) for k, w in list(self.triggering_info.items())) return tmp --- ./openopt/solvers/UkrOpt/amsg2p_oo.py (original) +++ ./openopt/solvers/UkrOpt/amsg2p_oo.py (refactored) @@ -2,7 +2,7 @@ #from openopt.kernel.Point import Point #from openopt.kernel.setDefaultIterFuncs import * from numpy import isfinite -from amsg2p import amsg2p as Solver +from .amsg2p import amsg2p as Solver class amsg2p(baseSolver): __name__ = 'amsg2p' --- ./openopt/solvers/UkrOpt/asdf.py (original) +++ ./openopt/solvers/UkrOpt/asdf.py (refactored) @@ -14,7 +14,7 @@ newBounds = {} L = knownLimits.copy() L[timeVariable] = (startTime, endTime) - for v, df in equations.items(): + for v, df in list(equations.items()): r = df.interval(L) lb, ub = initBounds[v] new_lb, new_ub = lb + r.lb * deltaT, ub + r.ub * deltaT @@ -57,7 +57,7 @@ startTime, endTime = timeArray[0], timeArray[-1] EndTime = copy(endTime) # copy for more safety, endTime can be ndarray middleTime = endTime - initBox = dict([(v, (val, val)) for v, val in startPoint.items()]) + initBox = dict([(v, (val, val)) for v, val in list(startPoint.items())]) KnownLimits = [knownLimits] r = [] while True: @@ -69,12 +69,12 @@ th = tol if middleTime == EndTime else 0.5*tol / (tol/inittol) ** ((middleTime - startTime) / (EndTime - startTime)) - print 'th:', th + print('th:', th) for i in range(maxInnerIter): newKnownLimits = getNewBounds(equations, initBox, KnownLimits[-1], timeVariable, startTime, middleTime) KnownLimits[-1] = newKnownLimits - maxRes = max((val[1]-val[0]) for val in newKnownLimits.values()) + maxRes = max((val[1]-val[0]) for val in list(newKnownLimits.values())) # print 'maxRes:', maxRes if maxRes <= th: break @@ -99,7 +99,7 @@ if t in newKnownLimits: newKnownLimits.pop(t) r.append((startTime, middleTime, newKnownLimits)) - print 'time done:', middleTime + print('time done:', middleTime) # print startTime, middleTime, middleTime - startTime if middleTime == EndTime: newKnownLimits[t] = (startTime, EndTime) @@ -134,7 +134,7 @@ T = time() istop, msg, r = solveByInteralg(equations, startPoint, t, timeArray, knownLimits, tol, inittol = 1e-15, timetol = 1e-2) -print 'done! istop = %d, time elapsed = %0.1f, len(r) = %d' % (istop, time()-T, len(r)) +print('done! istop = %d, time elapsed = %0.1f, len(r) = %d' % (istop, time()-T, len(r))) z_bounds = array([elem[2][z] for elem in r]) t_lb_bounds = array([elem[0] for elem in r]) t_ub_bounds = array([elem[1] for elem in r]) --- ./openopt/solvers/UkrOpt/goldenSection_oo.py (original) +++ ./openopt/solvers/UkrOpt/goldenSection_oo.py (refactored) @@ -21,7 +21,7 @@ def __solver__(self, p): if p.n != 1: p.err('the solver ' + self.__name__ +' can handle singe-variable problems only') if not p.__isFiniteBoxBounded__(): p.err('the solver ' + self.__name__ +' requires finite lower and upper bounds') - if SMALL_DELTA_X in p.kernelIterFuncs.keys(): p.kernelIterFuncs.pop(SMALL_DELTA_X) + if SMALL_DELTA_X in list(p.kernelIterFuncs.keys()): p.kernelIterFuncs.pop(SMALL_DELTA_X) a, b, f = copy(p.lb), copy(p.ub), p.f if self.rightBorderForLocalization is None: self.rightBorderForLocalization = p.ub if self.leftBorderForLocalization is None: self.leftBorderForLocalization = p.lb --- ./openopt/solvers/UkrOpt/gsubg_oo.py (original) RefactoringTool: Refactored ./openopt/solvers/UkrOpt/ii_engine.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/interalgCons.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/interalgLLR.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/interalgMOP.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/interalgMisc.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/interalgODE.py +++ ./openopt/solvers/UkrOpt/gsubg_oo.py (refactored) @@ -57,7 +57,7 @@ #dilation = True if p.n < 150 else False p.debugmsg('%s: autoselect set dilation to %s' %(self.__name__, dilation)) if dilation: - from Dilation import Dilation + from .Dilation import Dilation D = Dilation(p) # LB, UB = p.lb, p.ub @@ -285,7 +285,7 @@ indToBeRemovedBySameAngle.sort(reverse=True) if p.debug: p.debugmsg('indToBeRemovedBySameAngle: ' + str(indToBeRemovedBySameAngle) + ' from %d' %nVec) - if indToBeRemovedBySameAngle == range(nVec-1, nVec-nAddedVectors-1, -1) and ns > 5: + if indToBeRemovedBySameAngle == list(range(nVec-1, nVec-nAddedVectors-1, -1)) and ns > 5: # print 'ns =', ns, 'hs =', hs, 'iterStartPoint.f():', iterStartPoint.f(), 'prevInnerCycleIterStartPoint.f()', prevInnerCycleIterStartPoint.f(), \ # 'diff:', iterStartPoint.f()-prevInnerCycleIterStartPoint.f() @@ -724,13 +724,13 @@ # s2 = 0 if not s2 and any(p.stopdict.values()): - for key, val in p.stopdict.items(): + for key, val in list(p.stopdict.items()): if val == True: s2 = key break p.istop = s2 - for key, val in p.stopdict.items(): + for key, val in list(p.stopdict.items()): if key < 0 or key in set([FVAL_IS_ENOUGH, USER_DEMAND_STOP, BUTTON_ENOUGH_HAS_BEEN_PRESSED]): #p.iterfcn(bestPoint) return --- ./openopt/solvers/UkrOpt/ii_engine.py (original) +++ ./openopt/solvers/UkrOpt/ii_engine.py (refactored) @@ -1,4 +1,4 @@ -from interalgLLR import * +from .interalgLLR import * from numpy import inf, prod, all, sum, zeros #from FuncDesigner.boundsurf import boundsurf @@ -54,7 +54,7 @@ o, a = val_l, val_u # changes end else: - cs = oopoint((v, asarray(0.5*(val[0] + val[1]), dataType)) for v, val in ip.items()) + cs = oopoint((v, asarray(0.5*(val[0] + val[1]), dataType)) for v, val in list(ip.items())) cs.dictOfFixedFuncs = p.dictOfFixedFuncs cs._dictOfRedirectedFuncs = p._dictOfRedirectedFuncs cs.maxDistributionSize = p.maxDistributionSize --- ./openopt/solvers/UkrOpt/interalgCons.py (original) +++ ./openopt/solvers/UkrOpt/interalgCons.py (refactored) @@ -2,7 +2,7 @@ PythonAll = all from numpy import empty, logical_and, logical_not, take, zeros, isfinite, any, \ asarray, ndarray #where -from interalgT import truncateByPlane, getTruncatedArrays, splitDomainForDiscreteVariable#adjustDiscreteVarBounds +from .interalgT import truncateByPlane, getTruncatedArrays, splitDomainForDiscreteVariable#adjustDiscreteVarBounds import numpy as np from bisect import bisect_left @@ -47,7 +47,7 @@ if 1: - for line_A, val_b in lin_ineq_ids.values(): + for line_A, val_b in list(lin_ineq_ids.values()): y, e, indT, ind_remain = truncateByPlane(y, e, indT, line_A, val_b + p.contol) if ind_remain is not None: _s = _s[ind_remain] @@ -55,7 +55,7 @@ - for line_A, val_b in lin_eq_ids.values(): + for line_A, val_b in list(lin_eq_ids.values()): # TODO: handle it via one func y, e, indT, ind_remain = truncateByPlane(y, e, indT, line_A, val_b+p.contol) if ind_remain is not None: @@ -93,7 +93,7 @@ freeVarsList = p._freeVarsList - for c_id, (c, f, lb, ub, tol) in C0.items(): + for c_id, (c, f, lb, ub, tol) in list(C0.items()): # print ('c_1', p.iter, c.dep, hasPoint(y, e, a)) m = y.shape[0] # is changed in the cycle @@ -198,7 +198,7 @@ AC_lst = [activeCons[k] for k in active_points_inds] if useReduction else activeCons c_nlh_multiplier = getMultiplier(AC_lst, c_id, p.iter) - for v, tmp in res.items(): + for v, tmp in list(res.items()): j = freeVarsDict.get(v) half_width = tmp.shape[1]//2 a1, a2 = tmp[:, half_width:].flatten() - T0, tmp[:, :half_width].flatten() - T0 @@ -280,9 +280,9 @@ # if len(elem)!=0 and elem[-1] == c_id: constraints_counter[c_id] += 1 - if not all(v >= 0 for v in constraints_counter.values()): - print('negative constr counter at iter %d:' % p.iter) - print('\t',[(k,v) for k,v in constraints_counter.items() if v < 0]) + if not all(v >= 0 for v in list(constraints_counter.values())): + print(('negative constr counter at iter %d:' % p.iter)) + print(('\t',[(k,v) for k,v in list(constraints_counter.items()) if v < 0])) # if p.iter >= 10: @@ -296,7 +296,7 @@ new_active_cons = set() new_active_cons.update(*newActiveCons) - storedInactiveCons = set(_id for _id, num in constraints_counter.items() if num == 0) + storedInactiveCons = set(_id for _id, num in list(constraints_counter.items()) if num == 0) inactiveConsIdx = storedInactiveCons - new_active_cons @@ -345,7 +345,7 @@ if p.solver.prioritized_constraints: ac2 = [] - from interalg_oo import ActiveConstraintsEntry + from .interalg_oo import ActiveConstraintsEntry for i, item in enumerate(newActiveCons): tmp = ActiveConstraintsEntry(item) Tmp = activeCons[i].triggering_info @@ -548,7 +548,7 @@ return y, e, indT, _s, nlh, nlh_0, ind_l, ind_u -normalizer = (np.pi/2-np.arctan(range(5))).mean() +normalizer = (np.pi/2-np.arctan(list(range(5)))).mean() def getMultiplier(activeCons, c_id, iter): # return 1.0 --- ./openopt/solvers/UkrOpt/interalgLLR.py (original) +++ ./openopt/solvers/UkrOpt/interalgLLR.py (refactored) @@ -13,7 +13,7 @@ #from FuncDesigner import oopoint - doesn't work yet, incorrect class type check is gained from FuncDesigner.multiarray import multiarray -from interalgT import * +from .interalgT import * if isPyPy: nanargmin = nanargmin_axis @@ -202,7 +202,7 @@ if len(C) != 0: r15 = empty(m, bool) r15.fill(True) - for _c, f, r16, r17 in C.values(): + for _c, f, r16, r17 in list(C.values()): c = f(cs, **kw).flatten() # print(c,r16,r17) ind_feasible = logical_and(c >= r16, c <= r17) # here r16 and r17 are already shifted by required tolerance --- ./openopt/solvers/UkrOpt/interalgMOP.py (original) +++ ./openopt/solvers/UkrOpt/interalgMOP.py (refactored) @@ -10,7 +10,7 @@ # from bottleneck import nanargmin, nanmin #except ImportError: # from numpy import nanmin, nanargmin -from interalgLLR import * +from .interalgLLR import * def r43_seq(Arg): targets_vals, targets_tols, solutionsF, lf, uf = Arg --- ./openopt/solvers/UkrOpt/interalgMisc.py (original) +++ ./openopt/solvers/UkrOpt/interalgMisc.py (refactored) @@ -12,7 +12,7 @@ def append(*args, **kw): raise ImportError('function append() is absent in PyPy yet') -from interalgLLR import * +from .interalgLLR import * try: from bottleneck import nanmin, nanmax --- ./openopt/solvers/UkrOpt/interalgODE.py (original) +++ ./openopt/solvers/UkrOpt/interalgODE.py (refactored) @@ -82,7 +82,7 @@ if isIP: if tmp.level == 1: #adjustr4WithDiscreteVariables(wr4, p) - cs = oopoint((v, asarray(0.5*(val[0] + val[1]), dataType)) for v, val in mp.items()) + cs = oopoint((v, asarray(0.5*(val[0] + val[1]), dataType)) for v, val in list(mp.items())) cs.dictOfFixedFuncs = p.dictOfFixedFuncs cs._dictOfRedirectedFuncs = p._dictOfRedirectedFuncs r21, r22 = tmp.values(cs) @@ -113,12 +113,12 @@ RefactoringTool: Refactored ./openopt/solvers/UkrOpt/interalgT.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/interalg_oo.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/lincher_oo.py RefactoringTool: No changes to ./openopt/solvers/UkrOpt/nsmm_oo.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/nssolve_oo.py RefactoringTool: Refactored ./openopt/solvers/UkrOpt/ralg_oo.py # l_c, u_c = l.c, u.c # dT = r29 - r28 if r30[-1] > r30[0] else r28 - r29 - ends = oopoint([(v, asarray(val[1], dataType)) for v, val in mp.items()]) + ends = oopoint([(v, asarray(val[1], dataType)) for v, val in list(mp.items())]) ends.dictOfFixedFuncs = p.dictOfFixedFuncs ends._dictOfRedirectedFuncs = p._dictOfRedirectedFuncs ends_L, ends_U = tmp.values(ends) - starts = oopoint((v, asarray(val[0], dataType)) for v, val in mp.items()) + starts = oopoint((v, asarray(val[0], dataType)) for v, val in list(mp.items())) starts.dictOfFixedFuncs = p.dictOfFixedFuncs starts._dictOfRedirectedFuncs = p._dictOfRedirectedFuncs starts_L, starts_U = tmp.values(starts) --- ./openopt/solvers/UkrOpt/interalgT.py (original) +++ ./openopt/solvers/UkrOpt/interalgT.py (refactored) @@ -445,10 +445,10 @@ return y, e, indT, ind_remain oovarsIndDict = p._oovarsIndDict - ind = np.array([oovarsIndDict[oov][0] for oov in gradient.keys()]) + ind = np.array([oovarsIndDict[oov][0] for oov in list(gradient.keys())]) y2, e2 = y[:, ind], e[:, ind] - A = np.vstack([np.asarray(elem).reshape(1, -1) for elem in gradient.values()]).T + A = np.vstack([np.asarray(elem).reshape(1, -1) for elem in list(gradient.values())]).T cs = 0.5 * (y2 + e2) b = np.sum(A * cs, 1) - centerValues.view(np.ndarray) + fo --- ./openopt/solvers/UkrOpt/interalg_oo.py (original) +++ ./openopt/solvers/UkrOpt/interalg_oo.py (refactored) @@ -9,7 +9,7 @@ from openopt.solvers.UkrOpt.interalgMisc import * from FuncDesigner import sum as fd_sum, abs as fd_abs, oopoint -from ii_engine import * +from .ii_engine import * #from interalgT import getTruncatedArrays @@ -64,7 +64,7 @@ isMOP = p.probType == 'MOP' if isMOP: - from interalgMOP import r14MOP + from .interalgMOP import r14MOP #isOpt = p.probType in ['NLP', 'NSP', 'GLP', 'MINLP'] isODE = p.probType == 'ODE' isIP = p.probType == 'IP' @@ -72,10 +72,10 @@ if not isIP and not isODE: if 1: - from interalgCons import processConstraints + from .interalgCons import processConstraints use_saved = 0 else: - from Saved_interalgCons import processConstraints + from .Saved_interalgCons import processConstraints use_saved = 1 if not p.__isFiniteBoxBounded__() and not isODE: @@ -146,7 +146,7 @@ - for val in p._x0.values(): + for val in list(p._x0.values()): if isinstance(val, (list, tuple, np.ndarray)) and len(val) > 1: p.pWarn(''' solver %s currently can handle only single-element variables, @@ -155,7 +155,7 @@ '''% self.__name__) - for val in x0.values(): + for val in list(x0.values()): if isinstance(val, (list, tuple, np.ndarray)) and len(val) > 1: p.err(''' solver %s currently can handle only single-element variables, @@ -220,7 +220,7 @@ # TODO: rework it if discrete variables will be somehow added for IP or ODE if not isIP and not isODE: - from interalgLLR import adjustr4WithDiscreteVariables + from .interalgLLR import adjustr4WithDiscreteVariables adjustr4WithDiscreteVariables(xRecord.reshape(1, -1), p) r40 = np.inf @@ -366,11 +366,11 @@ C = dict((elem[0]._id, elem) for elem in _C) C0 = dict((elem[0]._id, elem) for elem in _C0) - p._constraints_dep_dict = dict((k, elem[1].Dep & p.freeVarsSet) for k, elem in C.items()) + p._constraints_dep_dict = dict((k, elem[1].Dep & p.freeVarsSet) for k, elem in list(C.items())) # if not use_saved: - p._constraints_counter = dict((c_id, 0) for c_id in C0.keys()) + p._constraints_counter = dict((c_id, 0) for c_id in list(C0.keys())) # TODO: further develoopment (add triggering cons data while point/cs computation) activeCons = [ActiveConstraintsEntry(list(C0.keys()))] @@ -412,7 +412,7 @@ _s = atleast_1d(inf) if isODE or (isIP and p.n == 1): - from interalgODE import interalg_ODE_routine + from .interalgODE import interalg_ODE_routine interalg_ODE_routine(p, self) return @@ -543,7 +543,7 @@ if isMOP: for i, s in enumerate(p.solutions): s.useAsMutable = True - for v, val in s.items(): + for v, val in list(s.items()): if v.fields != (): s[v] = dict((field, v.aux_domain[int(val)][j]) for j, field in enumerate(v.fields)) for j, goal in enumerate(p.user.f): @@ -578,8 +578,8 @@ def copy(self): if sys.version_info > (3, 3): tmp = ActiveConstraintsEntry(list.copy(self)) - tmp.triggering_info = dict((k, w.copy()) for k, w in self.triggering_info.items()) + tmp.triggering_info = dict((k, w.copy()) for k, w in list(self.triggering_info.items())) else: tmp = ActiveConstraintsEntry(self[:]) - tmp.triggering_info = dict((k, w[:]) for k, w in self.triggering_info.items()) + tmp.triggering_info = dict((k, w[:]) for k, w in list(self.triggering_info.items())) return tmp --- ./openopt/solvers/UkrOpt/lincher_oo.py (original) +++ ./openopt/solvers/UkrOpt/lincher_oo.py (refactored) @@ -8,7 +8,7 @@ #from scipy.optimize import line_search as scipy_optimize_linesearch #from scipy.optimize.linesearch import line_search as scipy_optimize_linesearch_f from numpy import arange, sign, hstack -from UkrOptMisc import getDirectionOptimPoint, getConstrDirection +from .UkrOptMisc import getDirectionOptimPoint, getConstrDirection import os class lincher(baseSolver): @@ -291,7 +291,7 @@ iterValues.r0 = p.getMaxResidual(x0) #counter = 1 while 1: - print 'stage 1' + print('stage 1') if lsF(x0 + direction*alpha) <= lsF_x0 - alpha * C1 and p.getMaxResidual(x0 + direction*alpha) <= max(p.contol, iterValues.r0): assert alpha>=0 #print counter, C1 @@ -302,7 +302,7 @@ if p.debug: p.warn('alpha less alpha_min') break if alpha == 1.0: - print 'stage 2' + print('stage 2') K = 1.5 lsF_prev = lsF_x0 for i in range(p.maxLineSearch): --- ./openopt/solvers/UkrOpt/nssolve_oo.py (original) +++ ./openopt/solvers/UkrOpt/nssolve_oo.py (refactored) @@ -32,8 +32,8 @@ def __init__(self):pass def __solver__(self, p): - if SMALL_DELTA_X in p.kernelIterFuncs.keys(): p.kernelIterFuncs.pop(SMALL_DELTA_X) - if SMALL_DELTA_F in p.kernelIterFuncs.keys(): p.kernelIterFuncs.pop(SMALL_DELTA_F) + if SMALL_DELTA_X in list(p.kernelIterFuncs.keys()): p.kernelIterFuncs.pop(SMALL_DELTA_X) + if SMALL_DELTA_F in list(p.kernelIterFuncs.keys()): p.kernelIterFuncs.pop(SMALL_DELTA_F) if self.nspSolver == 'autoselect': nspSolver = 'amsg2p' if p.isUC else 'ralg' --- ./openopt/solvers/UkrOpt/ralg_oo.py (original) +++ ./openopt/solvers/UkrOpt/ralg_oo.py (refactored) @@ -755,13 +755,13 @@ # s2 = 0 if not s2 and any(p.stopdict.values()): - for key, val in p.stopdict.items(): + for key, val in list(p.stopdict.items()): if val == True: s2 = key break p.istop = s2 - for key, val in p.stopdict.items(): RefactoringTool: No changes to ./openopt/solvers/lp_solve/lpSolve_oo.py RefactoringTool: Refactored ./openopt/solvers/nlopt/NLOPT_AUX.py RefactoringTool: No changes to ./openopt/solvers/nlopt/NLOPT_BASE.py RefactoringTool: Refactored ./openopt/solvers/nlopt/auglag_oo.py RefactoringTool: Refactored ./openopt/solvers/nlopt/bobyqa_oo.py RefactoringTool: Refactored ./openopt/solvers/nlopt/isres_oo.py RefactoringTool: Refactored ./openopt/solvers/nlopt/mlsl_oo.py RefactoringTool: Refactored ./openopt/solvers/nlopt/mma_oo.py RefactoringTool: Refactored ./openopt/solvers/nlopt/ptn_oo.py RefactoringTool: Refactored ./openopt/solvers/nlopt/sbplx_oo.py RefactoringTool: Refactored ./openopt/solvers/nlopt/slmvm1_oo.py RefactoringTool: Refactored ./openopt/solvers/nlopt/slmvm2_oo.py RefactoringTool: Refactored ./openopt/solvers/nlopt/stogo_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/lapack_dgelss_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/lapack_sgelss_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/lsmr_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/numpy_eig_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_anderson2_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_anderson_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_bfgs_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_broyden1_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_broyden2_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_broyden3_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_broyden_generalized_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_cg_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_cobyla_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_fmin_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_fminbound_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_fsolve_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_lbfgsb_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_leastsq_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_ncg_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_powell_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_slsqp_oo.py RefactoringTool: No changes to ./openopt/solvers/scipy_optim/scipy_tnc_oo.py RefactoringTool: No changes to ./openopt/tests/blockMisc.py RefactoringTool: Refactored ./openopt/tests/chain.py RefactoringTool: Refactored ./openopt/tests/nlp1.py RefactoringTool: No changes to ./openopt/tests/nlp2.py RefactoringTool: Refactored ./openopt/tests/nlpLC.py RefactoringTool: No changes to ./openopt/tests/nlsp1.py RefactoringTool: Refactored ./openopt/tests/nsp1.py RefactoringTool: Refactored ./openopt/tests/nsp2.py RefactoringTool: No changes to ./openopt/tests/oosolver.py RefactoringTool: Refactored ./openopt/tests/rastrigin.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./openopt/__init__.py RefactoringTool: ./openopt/oo.py RefactoringTool: ./openopt/ooVersionNumber.py RefactoringTool: ./openopt/examples/GUI_1.py RefactoringTool: ./openopt/examples/bpp_1.py RefactoringTool: ./openopt/examples/bpp_2.py RefactoringTool: ./openopt/examples/dfp_1.py RefactoringTool: ./openopt/examples/dfp_2.py RefactoringTool: ./openopt/examples/dsp_1.py RefactoringTool: ./openopt/examples/eig_1.py RefactoringTool: ./openopt/examples/eig_2.py RefactoringTool: ./openopt/examples/glp_1.py RefactoringTool: ./openopt/examples/glp_2.py RefactoringTool: ./openopt/examples/glp_3.py RefactoringTool: ./openopt/examples/glp_Ab_c.py RefactoringTool: ./openopt/examples/ksp_1.py RefactoringTool: ./openopt/examples/ksp_2.py RefactoringTool: ./openopt/examples/ksp_mop.py RefactoringTool: ./openopt/examples/lcp_1.py RefactoringTool: ./openopt/examples/llavp_1.py RefactoringTool: ./openopt/examples/llsp_1.py RefactoringTool: ./openopt/examples/llsp_2.py RefactoringTool: ./openopt/examples/lp_1.py RefactoringTool: ./openopt/examples/lunp_1.py RefactoringTool: ./openopt/examples/mcp_1.py RefactoringTool: ./openopt/examples/milp_1.py RefactoringTool: ./openopt/examples/minlp_1.py RefactoringTool: ./openopt/examples/miqcqp_1.py RefactoringTool: ./openopt/examples/miqp_1.py RefactoringTool: ./openopt/examples/mmp_1.py RefactoringTool: ./openopt/examples/mmp_2.py RefactoringTool: ./openopt/examples/nllsp_1.py RefactoringTool: ./openopt/examples/nlp_1.py RefactoringTool: ./openopt/examples/nlp_11.py RefactoringTool: ./openopt/examples/nlp_2.py RefactoringTool: ./openopt/examples/nlp_3.py RefactoringTool: ./openopt/examples/nlp_4.py RefactoringTool: ./openopt/examples/nlp_5.py RefactoringTool: ./openopt/examples/nlp_ALGENCAN.py RefactoringTool: ./openopt/examples/nlp_bench_1.py RefactoringTool: ./openopt/examples/nlp_bench_2.py RefactoringTool: ./openopt/examples/nlp_d2f.py RefactoringTool: ./openopt/examples/nlsp_1.py RefactoringTool: ./openopt/examples/nlsp_constrained.py RefactoringTool: ./openopt/examples/nsp_1.py RefactoringTool: ./openopt/examples/nssolveVSfsolve_1.py RefactoringTool: ./openopt/examples/qcqp_1.py RefactoringTool: ./openopt/examples/qp_1.py RefactoringTool: ./openopt/examples/sdp_1.py RefactoringTool: ./openopt/examples/sle_1.py RefactoringTool: ./openopt/examples/snle_1.py RefactoringTool: ./openopt/examples/socp_1.py RefactoringTool: ./openopt/examples/stab_1.py RefactoringTool: ./openopt/examples/tsp_1.py RefactoringTool: ./openopt/examples/tsp_2.py RefactoringTool: ./openopt/examples/tsp_3.py RefactoringTool: ./openopt/examples/tsp_4.py RefactoringTool: ./openopt/kernel/BPP.py RefactoringTool: ./openopt/kernel/DAE.py RefactoringTool: ./openopt/kernel/DFP.py RefactoringTool: ./openopt/kernel/DSP.py RefactoringTool: ./openopt/kernel/EIG.py RefactoringTool: ./openopt/kernel/GLP.py RefactoringTool: ./openopt/kernel/GUI.py RefactoringTool: ./openopt/kernel/IP.py RefactoringTool: ./openopt/kernel/KSP.py RefactoringTool: ./openopt/kernel/LCP.py RefactoringTool: ./openopt/kernel/LLAVP.py RefactoringTool: ./openopt/kernel/LLSP.py RefactoringTool: ./openopt/kernel/LP.py RefactoringTool: ./openopt/kernel/LUNP.py RefactoringTool: ./openopt/kernel/MCP.py RefactoringTool: ./openopt/kernel/MILP.py RefactoringTool: ./openopt/kernel/MINLP.py RefactoringTool: ./openopt/kernel/MMP.py RefactoringTool: ./openopt/kernel/MOP.py RefactoringTool: ./openopt/kernel/NLLSP.py RefactoringTool: ./openopt/kernel/NLP.py RefactoringTool: ./openopt/kernel/NLSP.py RefactoringTool: ./openopt/kernel/NSP.py RefactoringTool: ./openopt/kernel/ODE.py RefactoringTool: ./openopt/kernel/Point.py RefactoringTool: ./openopt/kernel/QP.py RefactoringTool: ./openopt/kernel/SDP.py RefactoringTool: ./openopt/kernel/SLE.py RefactoringTool: ./openopt/kernel/SOCP.py RefactoringTool: ./openopt/kernel/STAB.py RefactoringTool: ./openopt/kernel/TSP.py RefactoringTool: ./openopt/kernel/baseProblem.py RefactoringTool: ./openopt/kernel/baseSolver.py RefactoringTool: ./openopt/kernel/check.py RefactoringTool: ./openopt/kernel/fdConstraint.py RefactoringTool: ./openopt/kernel/fdPrepare.py RefactoringTool: ./openopt/kernel/fdTranslators.py RefactoringTool: ./openopt/kernel/fdmisc.py RefactoringTool: ./openopt/kernel/iterPrint.py RefactoringTool: ./openopt/kernel/mfa.py RefactoringTool: ./openopt/kernel/nonLinFuncs.py RefactoringTool: ./openopt/kernel/nonOptMisc.py RefactoringTool: ./openopt/kernel/ooIter.py RefactoringTool: ./openopt/kernel/ooMisc.py RefactoringTool: ./openopt/kernel/ooRun.py RefactoringTool: ./openopt/kernel/oographics.py RefactoringTool: ./openopt/kernel/oologfcn.py RefactoringTool: ./openopt/kernel/pointProjection.py RefactoringTool: ./openopt/kernel/residuals.py RefactoringTool: ./openopt/kernel/result.py RefactoringTool: ./openopt/kernel/runProbSolver.py RefactoringTool: ./openopt/kernel/setDefaultIterFuncs.py RefactoringTool: ./openopt/solvers/BrasilOpt/algencan_oo.py RefactoringTool: ./openopt/solvers/CVXOPT/CVXOPT_LLSP_Solver.py RefactoringTool: ./openopt/solvers/CVXOPT/CVXOPT_LP_Solver.py RefactoringTool: ./openopt/solvers/CVXOPT/CVXOPT_QP_Solver.py RefactoringTool: ./openopt/solvers/CVXOPT/CVXOPT_SDP_Solver.py RefactoringTool: ./openopt/solvers/CVXOPT/CVXOPT_SOCP_Solver.py RefactoringTool: ./openopt/solvers/CVXOPT/cvxopt_lp_oo.py RefactoringTool: ./openopt/solvers/CVXOPT/cvxopt_misc.py RefactoringTool: ./openopt/solvers/CVXOPT/cvxopt_qp_oo.py RefactoringTool: ./openopt/solvers/CVXOPT/cvxopt_sdp_oo.py RefactoringTool: ./openopt/solvers/CVXOPT/cvxopt_socp_oo.py RefactoringTool: ./openopt/solvers/CVXOPT/dsdp_oo.py RefactoringTool: ./openopt/solvers/CVXOPT/glpk_oo.py RefactoringTool: ./openopt/solvers/CoinOr/cplex_oo.py RefactoringTool: ./openopt/solvers/CoinOr/ipopt_oo.py RefactoringTool: ./openopt/solvers/HongKongOpt/LCPSolve.py RefactoringTool: ./openopt/solvers/HongKongOpt/QPSolve.py RefactoringTool: ./openopt/solvers/HongKongOpt/QPSparse.py RefactoringTool: ./openopt/solvers/HongKongOpt/lcpsolve_oo.py RefactoringTool: ./openopt/solvers/HongKongOpt/qlcp.py RefactoringTool: ./openopt/solvers/HongKongOpt/qlcp_oo.py RefactoringTool: ./openopt/solvers/HongKongOpt/sqlcp.py RefactoringTool: ./openopt/solvers/HongKongOpt/sqlcp_oo.py RefactoringTool: ./openopt/solvers/MATLAB/MATLAB_BASE.py RefactoringTool: ./openopt/solvers/MATLAB/Wormhole.py RefactoringTool: ./openopt/solvers/MATLAB/bintprog_oo.py RefactoringTool: ./openopt/solvers/MATLAB/fmincon_oo.py RefactoringTool: ./openopt/solvers/MATLAB/linprog_oo.py RefactoringTool: ./openopt/solvers/MATLAB/lsqlin_oo.py RefactoringTool: ./openopt/solvers/MATLAB/matlab_fsolve_oo.py RefactoringTool: ./openopt/solvers/MATLAB/matlab_ode.py RefactoringTool: ./openopt/solvers/MATLAB/ode113_oo.py RefactoringTool: ./openopt/solvers/MATLAB/ode15s_oo.py RefactoringTool: ./openopt/solvers/MATLAB/ode23_oo.py RefactoringTool: ./openopt/solvers/MATLAB/ode23s_oo.py RefactoringTool: ./openopt/solvers/MATLAB/ode23t_oo.py RefactoringTool: ./openopt/solvers/MATLAB/ode23tb_oo.py RefactoringTool: ./openopt/solvers/MATLAB/ode45_oo.py RefactoringTool: ./openopt/solvers/MATLAB/quadprog_oo.py RefactoringTool: ./openopt/solvers/MATLAB/wh.py RefactoringTool: ./openopt/solvers/MATLAB/wh_conn_solver.py RefactoringTool: ./openopt/solvers/Octave/octave_qp_oo.py RefactoringTool: ./openopt/solvers/Standalone/arpack_oo.py RefactoringTool: ./openopt/solvers/Standalone/asa_oo.py RefactoringTool: ./openopt/solvers/Standalone/branb_oo.py RefactoringTool: ./openopt/solvers/Standalone/bvls_oo.py RefactoringTool: ./openopt/solvers/Standalone/defaultSLEsolver_oo.py RefactoringTool: ./openopt/solvers/Standalone/direct_oo.py RefactoringTool: ./openopt/solvers/Standalone/galileo_oo.py RefactoringTool: ./openopt/solvers/Standalone/knitro_oo.py RefactoringTool: ./openopt/solvers/Standalone/lsqr.py RefactoringTool: ./openopt/solvers/Standalone/lsqr_oo.py RefactoringTool: ./openopt/solvers/Standalone/pclp_oo.py RefactoringTool: ./openopt/solvers/Standalone/pointProjection.py RefactoringTool: ./openopt/solvers/Standalone/pswarm_oo.py RefactoringTool: ./openopt/solvers/Standalone/pymls_oo.py RefactoringTool: ./openopt/solvers/Standalone/sa.py RefactoringTool: ./openopt/solvers/Standalone/sa_oo.py RefactoringTool: ./openopt/solvers/Standalone/tsp.py RefactoringTool: ./openopt/solvers/UkrOpt/Dilation2.py RefactoringTool: ./openopt/solvers/UkrOpt/Dilation3.py RefactoringTool: ./openopt/solvers/UkrOpt/PolytopProjection.py RefactoringTool: ./openopt/solvers/UkrOpt/Saved_ii_engine.py RefactoringTool: ./openopt/solvers/UkrOpt/Saved_interalgCons.py RefactoringTool: ./openopt/solvers/UkrOpt/Saved_interalgLLR.py RefactoringTool: ./openopt/solvers/UkrOpt/Saved_interalgMOP.py RefactoringTool: ./openopt/solvers/UkrOpt/Saved_interalgMisc.py RefactoringTool: ./openopt/solvers/UkrOpt/Saved_interalgODE.py RefactoringTool: ./openopt/solvers/UkrOpt/Saved_interalgT.py RefactoringTool: ./openopt/solvers/UkrOpt/Saved_interalg_oo.py RefactoringTool: ./openopt/solvers/UkrOpt/ShorEllipsoid_oo.py RefactoringTool: ./openopt/solvers/UkrOpt/UkrOptMisc.py RefactoringTool: ./openopt/solvers/UkrOpt/amsg2p.py RefactoringTool: ./openopt/solvers/UkrOpt/amsg2p_oo.py RefactoringTool: ./openopt/solvers/UkrOpt/asdf.py RefactoringTool: ./openopt/solvers/UkrOpt/asdf_oo.py RefactoringTool: ./openopt/solvers/UkrOpt/de_oo.py + for key, val in list(p.stopdict.items()): if key < 0 or key in set([FVAL_IS_ENOUGH, USER_DEMAND_STOP, BUTTON_ENOUGH_HAS_BEEN_PRESSED]): p.iterfcn(bestPoint) self.innerState = {'B': b, 'hs': hs} --- ./openopt/solvers/nlopt/NLOPT_AUX.py (original) +++ ./openopt/solvers/nlopt/NLOPT_AUX.py (refactored) @@ -28,7 +28,7 @@ if opts is not None: - for option, val in opts.items(): + for option, val in list(opts.items()): getattr(opt, option)(val) opt.set_min_objective(myfunc) --- ./openopt/solvers/nlopt/auglag_oo.py (original) +++ ./openopt/solvers/nlopt/auglag_oo.py (refactored) @@ -1,5 +1,5 @@ -from NLOPT_AUX import NLOPT_AUX -from NLOPT_BASE import NLOPT_BASE +from .NLOPT_AUX import NLOPT_AUX +from .NLOPT_BASE import NLOPT_BASE import nlopt class auglag(NLOPT_BASE): --- ./openopt/solvers/nlopt/bobyqa_oo.py (original) +++ ./openopt/solvers/nlopt/bobyqa_oo.py (refactored) @@ -1,5 +1,5 @@ -from NLOPT_AUX import NLOPT_AUX -from NLOPT_BASE import NLOPT_BASE +from .NLOPT_AUX import NLOPT_AUX +from .NLOPT_BASE import NLOPT_BASE import nlopt class bobyqa(NLOPT_BASE): --- ./openopt/solvers/nlopt/isres_oo.py (original) +++ ./openopt/solvers/nlopt/isres_oo.py (refactored) @@ -1,5 +1,5 @@ -from NLOPT_AUX import NLOPT_AUX -from NLOPT_BASE import NLOPT_BASE +from .NLOPT_AUX import NLOPT_AUX +from .NLOPT_BASE import NLOPT_BASE import nlopt class isres(NLOPT_BASE): --- ./openopt/solvers/nlopt/mlsl_oo.py (original) +++ ./openopt/solvers/nlopt/mlsl_oo.py (refactored) @@ -1,5 +1,5 @@ -from NLOPT_AUX import NLOPT_AUX -from NLOPT_BASE import NLOPT_BASE +from .NLOPT_AUX import NLOPT_AUX +from .NLOPT_BASE import NLOPT_BASE import nlopt class mlsl(NLOPT_BASE): --- ./openopt/solvers/nlopt/mma_oo.py (original) +++ ./openopt/solvers/nlopt/mma_oo.py (refactored) @@ -1,5 +1,5 @@ -from NLOPT_AUX import NLOPT_AUX -from NLOPT_BASE import NLOPT_BASE +from .NLOPT_AUX import NLOPT_AUX +from .NLOPT_BASE import NLOPT_BASE import nlopt class mma(NLOPT_BASE): --- ./openopt/solvers/nlopt/ptn_oo.py (original) +++ ./openopt/solvers/nlopt/ptn_oo.py (refactored) @@ -1,5 +1,5 @@ -from NLOPT_AUX import NLOPT_AUX -from NLOPT_BASE import NLOPT_BASE +from .NLOPT_AUX import NLOPT_AUX +from .NLOPT_BASE import NLOPT_BASE import nlopt class ptn(NLOPT_BASE): --- ./openopt/solvers/nlopt/sbplx_oo.py (original) +++ ./openopt/solvers/nlopt/sbplx_oo.py (refactored) @@ -1,5 +1,5 @@ -from NLOPT_AUX import NLOPT_AUX -from NLOPT_BASE import NLOPT_BASE +from .NLOPT_AUX import NLOPT_AUX +from .NLOPT_BASE import NLOPT_BASE import nlopt class sbplx(NLOPT_BASE): --- ./openopt/solvers/nlopt/slmvm1_oo.py (original) +++ ./openopt/solvers/nlopt/slmvm1_oo.py (refactored) @@ -1,5 +1,5 @@ -from NLOPT_AUX import NLOPT_AUX -from NLOPT_BASE import NLOPT_BASE +from .NLOPT_AUX import NLOPT_AUX +from .NLOPT_BASE import NLOPT_BASE import nlopt class slmvm1(NLOPT_BASE): --- ./openopt/solvers/nlopt/slmvm2_oo.py (original) +++ ./openopt/solvers/nlopt/slmvm2_oo.py (refactored) @@ -1,5 +1,5 @@ -from NLOPT_AUX import NLOPT_AUX -from NLOPT_BASE import NLOPT_BASE +from .NLOPT_AUX import NLOPT_AUX +from .NLOPT_BASE import NLOPT_BASE import nlopt class slmvm2(NLOPT_BASE): --- ./openopt/solvers/nlopt/stogo_oo.py (original) +++ ./openopt/solvers/nlopt/stogo_oo.py (refactored) @@ -1,5 +1,5 @@ -from NLOPT_AUX import NLOPT_AUX -from NLOPT_BASE import NLOPT_BASE +from .NLOPT_AUX import NLOPT_AUX +from .NLOPT_BASE import NLOPT_BASE import nlopt from numpy import isinf --- ./openopt/tests/chain.py (original) +++ ./openopt/tests/chain.py (refactored) @@ -7,7 +7,7 @@ from openopt import * #from pylab import * -TestCollection = xrange(5, 26) +TestCollection = range(5, 26) #TestCollection = xrange(5, 11) #TestCollection = [5] TestCollection = [21] @@ -71,7 +71,7 @@ ######################################################## ######################################################## - from blockMisc import * + from .blockMisc import * #def blockEngineFunc(inp, AdditionalMasses, y_limit, blockID): def blockEngineFunc(inp, AdditionalMasses, blockID): @@ -186,7 +186,7 @@ ooFuncs, c = [], [] constrYmax = [] - for i in xrange(n): + for i in range(n): oof = oofun(blockEngineFunc, args = copy(i), name = 'blockEngine'+str(i)) if i == 0: @@ -225,7 +225,7 @@ p = NLP(f, c=c, goal = 'max', gtol = 1e-6, plot=0, contol = contol, maxFunEvals = 1e10) def callback(p): - print p.c(p.xk) + print(p.c(p.xk)) return 0 #p.callback = callback if solver == 'scipy_cobyla': @@ -241,7 +241,7 @@ Results[(n, p.solver.__name__)] = r if r.isFeasible: msgF = '+' else: msgF = '-' - print 'n=%d' % n, ('f=%3.2f'% r.ff)+'['+msgF+']','Time=%3.1f' % r.elapsed['solver_time'] + print('n=%d' % n, ('f=%3.2f'% r.ff)+'['+msgF+']','Time=%3.1f' % r.elapsed['solver_time']) if PLOT: --- ./openopt/tests/nlp1.py (original) +++ ./openopt/tests/nlp1.py (refactored) @@ -56,7 +56,7 @@ for i, solver in enumerate(solvers): p = NLP(f, x0, df=df, c=c, h=h, dc=dc, dh=dh, lb=lb, ub=ub, A=A, b=b, Aeq=Aeq, beq=beq, maxIter = 1e4, \ show = solver==solvers[-1], color=colors[i], **kwargs ) - if not kwargs.has_key('iprint'): p.iprint = -1 + if 'iprint' not in kwargs: p.iprint = -1 # p.checkdf() # p.checkdc() # p.checkdh() --- ./openopt/tests/nlpLC.py (original) +++ ./openopt/tests/nlpLC.py (refactored) @@ -14,13 +14,13 @@ # c(x) <= 0 constraints def c(x): r = zeros(N-1) - for i in xrange(N-1): + for i in range(N-1): r[i] = x[i]**2 + x[i+1]**2 - 1 return r def dc(x): r = zeros((N-1, N)) - for i in xrange(N-1): + for i in range(N-1): r[i, i] = 2*x[i] r[i, i+1] = 2*x[i+1] return r --- ./openopt/tests/nsp1.py (original) +++ ./openopt/tests/nsp1.py (refactored) @@ -41,7 +41,7 @@ #objFun = lambda x: sum(x**2) -x0 = cos(1+asfarray(range(N))) +x0 = cos(1+asfarray(list(range(N)))) #OPTIONAL: user-supplied gradient/subgradient @@ -76,4 +76,4 @@ # #p.checkdf() # r2 = p2.solve(solver, maxVectorNum=15, iprint=1, showLS=1, plot=0, color=colors[i], show=solver==solvers[-1]) # ralg is name of a solver #print 'x_opt:\n', r.xf -print 'f_opt:', r.ff # should print small positive number like 0.00056 +print('f_opt:', r.ff) # should print small positive number like 0.00056 --- ./openopt/tests/nsp2.py (original) +++ ./openopt/tests/nsp2.py (refactored) @@ -46,4 +46,4 @@ # #p.checkdf() # r2 = p2.solve(solver, maxVectorNum=15, iprint=1, showLS=1, plot=0, color=colors[i], show=solver==solvers[-1]) # ralg is name of a solver #print 'x_opt:\n', r.xf -print 'f_opt:', r.ff # should print small positive number like 0.00056 +print('f_opt:', r.ff) # should print small positive number like 0.00056 --- ./openopt/tests/rastrigin.py (original) +++ ./openopt/tests/rastrigin.py (refactored) @@ -6,4 +6,4 @@ r = p.solve('de', plot=0) x_opt, f_opt = r.xf, r.ff -print x_opt +print(x_opt) RefactoringTool: ./openopt/solvers/UkrOpt/goldenSection_oo.py RefactoringTool: ./openopt/solvers/UkrOpt/gsubg_oo.py RefactoringTool: ./openopt/solvers/UkrOpt/ii_engine.py RefactoringTool: ./openopt/solvers/UkrOpt/interalgCons.py RefactoringTool: ./openopt/solvers/UkrOpt/interalgLLR.py RefactoringTool: ./openopt/solvers/UkrOpt/interalgMOP.py RefactoringTool: ./openopt/solvers/UkrOpt/interalgMisc.py RefactoringTool: ./openopt/solvers/UkrOpt/interalgODE.py RefactoringTool: ./openopt/solvers/UkrOpt/interalgT.py RefactoringTool: ./openopt/solvers/UkrOpt/interalg_oo.py RefactoringTool: ./openopt/solvers/UkrOpt/lincher_oo.py RefactoringTool: ./openopt/solvers/UkrOpt/nsmm_oo.py RefactoringTool: ./openopt/solvers/UkrOpt/nssolve_oo.py RefactoringTool: ./openopt/solvers/UkrOpt/ralg_oo.py RefactoringTool: ./openopt/solvers/lp_solve/lpSolve_oo.py RefactoringTool: ./openopt/solvers/nlopt/NLOPT_AUX.py RefactoringTool: ./openopt/solvers/nlopt/NLOPT_BASE.py RefactoringTool: ./openopt/solvers/nlopt/auglag_oo.py RefactoringTool: ./openopt/solvers/nlopt/bobyqa_oo.py RefactoringTool: ./openopt/solvers/nlopt/isres_oo.py RefactoringTool: ./openopt/solvers/nlopt/mlsl_oo.py RefactoringTool: ./openopt/solvers/nlopt/mma_oo.py RefactoringTool: ./openopt/solvers/nlopt/ptn_oo.py RefactoringTool: ./openopt/solvers/nlopt/sbplx_oo.py RefactoringTool: ./openopt/solvers/nlopt/slmvm1_oo.py RefactoringTool: ./openopt/solvers/nlopt/slmvm2_oo.py RefactoringTool: ./openopt/solvers/nlopt/stogo_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/lapack_dgelss_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/lapack_sgelss_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/lsmr_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/numpy_eig_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_anderson2_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_anderson_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_bfgs_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_broyden1_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_broyden2_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_broyden3_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_broyden_generalized_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_cg_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_cobyla_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_fmin_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_fminbound_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_fsolve_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_lbfgsb_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_leastsq_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_ncg_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_powell_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_slsqp_oo.py RefactoringTool: ./openopt/solvers/scipy_optim/scipy_tnc_oo.py RefactoringTool: ./openopt/tests/blockMisc.py RefactoringTool: ./openopt/tests/chain.py RefactoringTool: ./openopt/tests/nlp1.py RefactoringTool: ./openopt/tests/nlp2.py RefactoringTool: ./openopt/tests/nlpLC.py RefactoringTool: ./openopt/tests/nlsp1.py RefactoringTool: ./openopt/tests/nsp1.py RefactoringTool: ./openopt/tests/nsp2.py RefactoringTool: ./openopt/tests/oosolver.py RefactoringTool: ./openopt/tests/rastrigin.py + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' /builddir/build/BUILD/openopt-0.5629/setup.py:32: DeprecationWarning: `numpy.distutils` is deprecated since NumPy 1.23.0, as a result of the deprecation of `distutils` itself. It will be removed for Python >= 3.12. For older Python versions it will remain present. It is recommended to use `setuptools < 60.0` for those Python versions. For more details, see: https://numpy.org/devdocs/reference/distutils_status_migration.html from numpy.distutils.core import setup running build running config_cc INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_py creating build creating build/lib creating build/lib/openopt copying openopt/__init__.py -> build/lib/openopt copying openopt/ooVersionNumber.py -> build/lib/openopt copying openopt/oo.py -> build/lib/openopt creating build/lib/openopt/tests copying openopt/tests/rastrigin.py -> build/lib/openopt/tests copying openopt/tests/oosolver.py -> build/lib/openopt/tests copying openopt/tests/nsp2.py -> build/lib/openopt/tests copying openopt/tests/nsp1.py -> build/lib/openopt/tests copying openopt/tests/nlsp1.py -> build/lib/openopt/tests copying openopt/tests/nlpLC.py -> build/lib/openopt/tests copying openopt/tests/nlp2.py -> build/lib/openopt/tests copying openopt/tests/nlp1.py -> build/lib/openopt/tests copying openopt/tests/chain.py -> build/lib/openopt/tests copying openopt/tests/blockMisc.py -> build/lib/openopt/tests copying openopt/tests/__init__.py -> build/lib/openopt/tests creating build/lib/openopt/solvers copying openopt/solvers/__init__.py -> build/lib/openopt/solvers creating build/lib/openopt/kernel copying openopt/kernel/mfa.py -> build/lib/openopt/kernel copying openopt/kernel/setDefaultIterFuncs.py -> build/lib/openopt/kernel copying openopt/kernel/runProbSolver.py -> build/lib/openopt/kernel copying openopt/kernel/result.py -> build/lib/openopt/kernel copying openopt/kernel/residuals.py -> build/lib/openopt/kernel copying openopt/kernel/pointProjection.py -> build/lib/openopt/kernel copying openopt/kernel/oologfcn.py -> build/lib/openopt/kernel copying openopt/kernel/oographics.py -> build/lib/openopt/kernel copying openopt/kernel/ooRun.py -> build/lib/openopt/kernel copying openopt/kernel/ooMisc.py -> build/lib/openopt/kernel copying openopt/kernel/ooIter.py -> build/lib/openopt/kernel copying openopt/kernel/nonOptMisc.py -> build/lib/openopt/kernel copying openopt/kernel/nonLinFuncs.py -> build/lib/openopt/kernel copying openopt/kernel/iterPrint.py -> build/lib/openopt/kernel copying openopt/kernel/fdmisc.py -> build/lib/openopt/kernel copying openopt/kernel/fdTranslators.py -> build/lib/openopt/kernel copying openopt/kernel/fdPrepare.py -> build/lib/openopt/kernel copying openopt/kernel/fdConstraint.py -> build/lib/openopt/kernel copying openopt/kernel/check.py -> build/lib/openopt/kernel copying openopt/kernel/baseSolver.py -> build/lib/openopt/kernel copying openopt/kernel/baseProblem.py -> build/lib/openopt/kernel copying openopt/kernel/__init__.py -> build/lib/openopt/kernel copying openopt/kernel/TSP.py -> build/lib/openopt/kernel copying openopt/kernel/STAB.py -> build/lib/openopt/kernel copying openopt/kernel/SOCP.py -> build/lib/openopt/kernel copying openopt/kernel/SLE.py -> build/lib/openopt/kernel copying openopt/kernel/SDP.py -> build/lib/openopt/kernel copying openopt/kernel/QP.py -> build/lib/openopt/kernel copying openopt/kernel/Point.py -> build/lib/openopt/kernel copying openopt/kernel/ODE.py -> build/lib/openopt/kernel copying openopt/kernel/NSP.py -> build/lib/openopt/kernel copying openopt/kernel/NLSP.py -> build/lib/openopt/kernel copying openopt/kernel/NLP.py -> build/lib/openopt/kernel copying openopt/kernel/NLLSP.py -> build/lib/openopt/kernel copying openopt/kernel/MOP.py -> build/lib/openopt/kernel copying openopt/kernel/MMP.py -> build/lib/openopt/kernel copying openopt/kernel/MINLP.py -> build/lib/openopt/kernel copying openopt/kernel/MILP.py -> build/lib/openopt/kernel copying openopt/kernel/MCP.py -> build/lib/openopt/kernel copying openopt/kernel/LUNP.py -> build/lib/openopt/kernel copying openopt/kernel/LP.py -> build/lib/openopt/kernel copying openopt/kernel/LLSP.py -> build/lib/openopt/kernel copying openopt/kernel/LLAVP.py -> build/lib/openopt/kernel copying openopt/kernel/LCP.py -> build/lib/openopt/kernel copying openopt/kernel/KSP.py -> build/lib/openopt/kernel copying openopt/kernel/IP.py -> build/lib/openopt/kernel copying openopt/kernel/GUI.py -> build/lib/openopt/kernel copying openopt/kernel/GLP.py -> build/lib/openopt/kernel copying openopt/kernel/EIG.py -> build/lib/openopt/kernel copying openopt/kernel/DSP.py -> build/lib/openopt/kernel copying openopt/kernel/DFP.py -> build/lib/openopt/kernel copying openopt/kernel/DAE.py -> build/lib/openopt/kernel copying openopt/kernel/BPP.py -> build/lib/openopt/kernel creating build/lib/openopt/examples copying openopt/examples/tsp_4.py -> build/lib/openopt/examples copying openopt/examples/tsp_3.py -> build/lib/openopt/examples copying openopt/examples/tsp_2.py -> build/lib/openopt/examples copying openopt/examples/tsp_1.py -> build/lib/openopt/examples copying openopt/examples/stab_1.py -> build/lib/openopt/examples copying openopt/examples/socp_1.py -> build/lib/openopt/examples copying openopt/examples/snle_1.py -> build/lib/openopt/examples copying openopt/examples/sle_1.py -> build/lib/openopt/examples copying openopt/examples/sdp_1.py -> build/lib/openopt/examples copying openopt/examples/qp_1.py -> build/lib/openopt/examples copying openopt/examples/qcqp_1.py -> build/lib/openopt/examples copying openopt/examples/nssolveVSfsolve_1.py -> build/lib/openopt/examples copying openopt/examples/nsp_1.py -> build/lib/openopt/examples copying openopt/examples/nlsp_constrained.py -> build/lib/openopt/examples copying openopt/examples/nlsp_1.py -> build/lib/openopt/examples copying openopt/examples/nlp_d2f.py -> build/lib/openopt/examples copying openopt/examples/nlp_bench_2.py -> build/lib/openopt/examples copying openopt/examples/nlp_bench_1.py -> build/lib/openopt/examples copying openopt/examples/nlp_ALGENCAN.py -> build/lib/openopt/examples copying openopt/examples/nlp_5.py -> build/lib/openopt/examples copying openopt/examples/nlp_4.py -> build/lib/openopt/examples copying openopt/examples/nlp_3.py -> build/lib/openopt/examples copying openopt/examples/nlp_2.py -> build/lib/openopt/examples copying openopt/examples/nlp_11.py -> build/lib/openopt/examples copying openopt/examples/nlp_1.py -> build/lib/openopt/examples copying openopt/examples/nllsp_1.py -> build/lib/openopt/examples copying openopt/examples/mmp_2.py -> build/lib/openopt/examples copying openopt/examples/mmp_1.py -> build/lib/openopt/examples copying openopt/examples/miqp_1.py -> build/lib/openopt/examples copying openopt/examples/miqcqp_1.py -> build/lib/openopt/examples copying openopt/examples/minlp_1.py -> build/lib/openopt/examples copying openopt/examples/milp_1.py -> build/lib/openopt/examples copying openopt/examples/mcp_1.py -> build/lib/openopt/examples copying openopt/examples/lunp_1.py -> build/lib/openopt/examples copying openopt/examples/lp_1.py -> build/lib/openopt/examples copying openopt/examples/llsp_2.py -> build/lib/openopt/examples copying openopt/examples/llsp_1.py -> build/lib/openopt/examples copying openopt/examples/llavp_1.py -> build/lib/openopt/examples copying openopt/examples/lcp_1.py -> build/lib/openopt/examples copying openopt/examples/ksp_mop.py -> build/lib/openopt/examples copying openopt/examples/ksp_2.py -> build/lib/openopt/examples copying openopt/examples/ksp_1.py -> build/lib/openopt/examples copying openopt/examples/glp_Ab_c.py -> build/lib/openopt/examples copying openopt/examples/glp_3.py -> build/lib/openopt/examples copying openopt/examples/glp_2.py -> build/lib/openopt/examples copying openopt/examples/glp_1.py -> build/lib/openopt/examples copying openopt/examples/eig_2.py -> build/lib/openopt/examples copying openopt/examples/eig_1.py -> build/lib/openopt/examples copying openopt/examples/dsp_1.py -> build/lib/openopt/examples copying openopt/examples/dfp_2.py -> build/lib/openopt/examples copying openopt/examples/dfp_1.py -> build/lib/openopt/examples copying openopt/examples/bpp_2.py -> build/lib/openopt/examples copying openopt/examples/bpp_1.py -> build/lib/openopt/examples copying openopt/examples/__init__.py -> build/lib/openopt/examples copying openopt/examples/GUI_1.py -> build/lib/openopt/examples creating build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_tnc_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_slsqp_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_powell_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_ncg_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_leastsq_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_lbfgsb_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_fsolve_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_fminbound_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_fmin_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_cobyla_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_cg_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_broyden_generalized_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_broyden3_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_broyden2_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_broyden1_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_bfgs_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_anderson_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/scipy_anderson2_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/numpy_eig_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/lsmr_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/lapack_sgelss_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/lapack_dgelss_oo.py -> build/lib/openopt/solvers/scipy_optim copying openopt/solvers/scipy_optim/__init__.py -> build/lib/openopt/solvers/scipy_optim creating build/lib/openopt/solvers/nlopt copying openopt/solvers/nlopt/stogo_oo.py -> build/lib/openopt/solvers/nlopt copying openopt/solvers/nlopt/slmvm2_oo.py -> build/lib/openopt/solvers/nlopt copying openopt/solvers/nlopt/slmvm1_oo.py -> build/lib/openopt/solvers/nlopt copying openopt/solvers/nlopt/sbplx_oo.py -> build/lib/openopt/solvers/nlopt copying openopt/solvers/nlopt/ptn_oo.py -> build/lib/openopt/solvers/nlopt copying openopt/solvers/nlopt/mma_oo.py -> build/lib/openopt/solvers/nlopt copying openopt/solvers/nlopt/mlsl_oo.py -> build/lib/openopt/solvers/nlopt copying openopt/solvers/nlopt/isres_oo.py -> build/lib/openopt/solvers/nlopt copying openopt/solvers/nlopt/bobyqa_oo.py -> build/lib/openopt/solvers/nlopt copying openopt/solvers/nlopt/auglag_oo.py -> build/lib/openopt/solvers/nlopt copying openopt/solvers/nlopt/__init__.py -> build/lib/openopt/solvers/nlopt copying openopt/solvers/nlopt/NLOPT_BASE.py -> build/lib/openopt/solvers/nlopt copying openopt/solvers/nlopt/NLOPT_AUX.py -> build/lib/openopt/solvers/nlopt creating build/lib/openopt/solvers/lp_solve copying openopt/solvers/lp_solve/lpSolve_oo.py -> build/lib/openopt/solvers/lp_solve copying openopt/solvers/lp_solve/__init__.py -> build/lib/openopt/solvers/lp_solve creating build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/ralg_oo.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/nssolve_oo.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/nsmm_oo.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/lincher_oo.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/interalg_oo.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/interalgT.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/interalgODE.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/interalgMisc.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/interalgMOP.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/interalgLLR.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/interalgCons.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/ii_engine.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/gsubg_oo.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/goldenSection_oo.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/de_oo.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/asdf_oo.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/asdf.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/amsg2p_oo.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/amsg2p.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/__init__.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/UkrOptMisc.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/ShorEllipsoid_oo.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/Saved_interalg_oo.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/Saved_interalgT.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/Saved_interalgODE.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/Saved_interalgMisc.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/Saved_interalgMOP.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/Saved_interalgLLR.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/Saved_interalgCons.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/Saved_ii_engine.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/PolytopProjection.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/Dilation3.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/Dilation2.py -> build/lib/openopt/solvers/UkrOpt copying openopt/solvers/UkrOpt/Dilation.py -> build/lib/openopt/solvers/UkrOpt creating build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/tsp.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/sa_oo.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/sa.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/pymls_oo.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/pswarm_oo.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/pointProjection.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/pclp_oo.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/lsqr_oo.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/lsqr.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/knitro_oo.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/galileo_oo.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/direct_oo.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/defaultSLEsolver_oo.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/bvls_oo.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/branb_oo.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/asa_oo.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/arpack_oo.py -> build/lib/openopt/solvers/Standalone copying openopt/solvers/Standalone/__init__.py -> build/lib/openopt/solvers/Standalone creating build/lib/openopt/solvers/Octave copying openopt/solvers/Octave/octave_qp_oo.py -> build/lib/openopt/solvers/Octave copying openopt/solvers/Octave/__init__.py -> build/lib/openopt/solvers/Octave creating build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/wh_conn_solver.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/wh.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/quadprog_oo.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/ode45_oo.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/ode23tb_oo.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/ode23t_oo.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/ode23s_oo.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/ode23_oo.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/ode15s_oo.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/ode113_oo.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/matlab_ode.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/matlab_fsolve_oo.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/lsqlin_oo.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/linprog_oo.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/fmincon_oo.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/bintprog_oo.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/__init__.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/Wormhole.py -> build/lib/openopt/solvers/MATLAB copying openopt/solvers/MATLAB/MATLAB_BASE.py -> build/lib/openopt/solvers/MATLAB creating build/lib/openopt/solvers/HongKongOpt copying openopt/solvers/HongKongOpt/sqlcp_oo.py -> build/lib/openopt/solvers/HongKongOpt copying openopt/solvers/HongKongOpt/sqlcp.py -> build/lib/openopt/solvers/HongKongOpt copying openopt/solvers/HongKongOpt/qlcp_oo.py -> build/lib/openopt/solvers/HongKongOpt copying openopt/solvers/HongKongOpt/qlcp.py -> build/lib/openopt/solvers/HongKongOpt copying openopt/solvers/HongKongOpt/lcpsolve_oo.py -> build/lib/openopt/solvers/HongKongOpt copying openopt/solvers/HongKongOpt/__init__.py -> build/lib/openopt/solvers/HongKongOpt copying openopt/solvers/HongKongOpt/QPSparse.py -> build/lib/openopt/solvers/HongKongOpt copying openopt/solvers/HongKongOpt/QPSolve.py -> build/lib/openopt/solvers/HongKongOpt copying openopt/solvers/HongKongOpt/LCPSolve.py -> build/lib/openopt/solvers/HongKongOpt creating build/lib/openopt/solvers/CoinOr copying openopt/solvers/CoinOr/ipopt_oo.py -> build/lib/openopt/solvers/CoinOr copying openopt/solvers/CoinOr/cplex_oo.py -> build/lib/openopt/solvers/CoinOr copying openopt/solvers/CoinOr/__init__.py -> build/lib/openopt/solvers/CoinOr creating build/lib/openopt/solvers/CVXOPT copying openopt/solvers/CVXOPT/glpk_oo.py -> build/lib/openopt/solvers/CVXOPT copying openopt/solvers/CVXOPT/dsdp_oo.py -> build/lib/openopt/solvers/CVXOPT copying openopt/solvers/CVXOPT/cvxopt_socp_oo.py -> build/lib/openopt/solvers/CVXOPT copying openopt/solvers/CVXOPT/cvxopt_sdp_oo.py -> build/lib/openopt/solvers/CVXOPT copying openopt/solvers/CVXOPT/cvxopt_qp_oo.py -> build/lib/openopt/solvers/CVXOPT copying openopt/solvers/CVXOPT/cvxopt_misc.py -> build/lib/openopt/solvers/CVXOPT copying openopt/solvers/CVXOPT/cvxopt_lp_oo.py -> build/lib/openopt/solvers/CVXOPT copying openopt/solvers/CVXOPT/__init__.py -> build/lib/openopt/solvers/CVXOPT copying openopt/solvers/CVXOPT/CVXOPT_SOCP_Solver.py -> build/lib/openopt/solvers/CVXOPT copying openopt/solvers/CVXOPT/CVXOPT_SDP_Solver.py -> build/lib/openopt/solvers/CVXOPT copying openopt/solvers/CVXOPT/CVXOPT_QP_Solver.py -> build/lib/openopt/solvers/CVXOPT copying openopt/solvers/CVXOPT/CVXOPT_LP_Solver.py -> build/lib/openopt/solvers/CVXOPT copying openopt/solvers/CVXOPT/CVXOPT_LLSP_Solver.py -> build/lib/openopt/solvers/CVXOPT creating build/lib/openopt/solvers/BrasilOpt copying openopt/solvers/BrasilOpt/algencan_oo.py -> build/lib/openopt/solvers/BrasilOpt copying openopt/solvers/BrasilOpt/__init__.py -> build/lib/openopt/solvers/BrasilOpt + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.3ME7rQ + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x ++ dirname /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd openopt-0.5629 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x --prefix /usr /builddir/build/BUILD/openopt-0.5629/setup.py:32: DeprecationWarning: `numpy.distutils` is deprecated since NumPy 1.23.0, as a result of the deprecation of `distutils` itself. It will be removed for Python >= 3.12. For older Python versions it will remain present. It is recommended to use `setuptools < 60.0` for those Python versions. For more details, see: https://numpy.org/devdocs/reference/distutils_status_migration.html from numpy.distutils.core import setup running install /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer, pypa/build or other standards-based tools. Follow the current Python packaging guidelines when building Python RPM packages. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html and https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ for details. ******************************************************************************** !! self.initialize_options() running install_lib creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12 creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/GUI_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/__init__.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/bpp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/bpp_2.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/dfp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/dfp_2.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/dsp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/eig_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/eig_2.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/glp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/glp_2.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/glp_3.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/glp_Ab_c.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/ksp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/ksp_2.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/ksp_mop.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/lcp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/llavp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/llsp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/llsp_2.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/lp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/lunp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/mcp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/milp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/minlp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/miqcqp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/miqp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/mmp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/mmp_2.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/nllsp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/nlp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/nlp_11.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/nlp_2.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/nlp_3.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/nlp_4.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/nlp_5.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/nlp_ALGENCAN.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/nlp_bench_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/nlp_bench_2.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/nlp_d2f.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/nlsp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/nlsp_constrained.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/nsp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/nssolveVSfsolve_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/qcqp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/qp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/sdp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/sle_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/snle_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/socp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/stab_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/tsp_1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/tsp_2.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/tsp_3.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples copying build/lib/openopt/examples/tsp_4.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/BPP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/DAE.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/DFP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/DSP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/EIG.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/GLP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/GUI.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/IP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/KSP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/LCP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/LLAVP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/LLSP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/LP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/LUNP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/MCP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/MILP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/MINLP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/MMP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/MOP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/NLLSP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/NLP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/NLSP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/NSP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/ODE.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/Point.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/QP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/SDP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/SLE.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/SOCP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/STAB.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/TSP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/__init__.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/baseProblem.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/baseSolver.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/check.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/fdConstraint.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/fdPrepare.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/fdTranslators.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/fdmisc.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/iterPrint.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/nonLinFuncs.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/nonOptMisc.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/ooIter.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/ooMisc.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/ooRun.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/oographics.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/oologfcn.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/pointProjection.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/residuals.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/result.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/runProbSolver.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/setDefaultIterFuncs.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel copying build/lib/openopt/kernel/mfa.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/BrasilOpt copying build/lib/openopt/solvers/BrasilOpt/__init__.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/BrasilOpt copying build/lib/openopt/solvers/BrasilOpt/algencan_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/BrasilOpt creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT copying build/lib/openopt/solvers/CVXOPT/CVXOPT_LLSP_Solver.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT copying build/lib/openopt/solvers/CVXOPT/CVXOPT_LP_Solver.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT copying build/lib/openopt/solvers/CVXOPT/CVXOPT_QP_Solver.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT copying build/lib/openopt/solvers/CVXOPT/CVXOPT_SDP_Solver.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT copying build/lib/openopt/solvers/CVXOPT/CVXOPT_SOCP_Solver.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT copying build/lib/openopt/solvers/CVXOPT/__init__.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT copying build/lib/openopt/solvers/CVXOPT/cvxopt_lp_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT copying build/lib/openopt/solvers/CVXOPT/cvxopt_misc.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT copying build/lib/openopt/solvers/CVXOPT/cvxopt_qp_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT copying build/lib/openopt/solvers/CVXOPT/cvxopt_sdp_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT copying build/lib/openopt/solvers/CVXOPT/cvxopt_socp_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT copying build/lib/openopt/solvers/CVXOPT/dsdp_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT copying build/lib/openopt/solvers/CVXOPT/glpk_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CoinOr copying build/lib/openopt/solvers/CoinOr/__init__.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CoinOr copying build/lib/openopt/solvers/CoinOr/cplex_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CoinOr copying build/lib/openopt/solvers/CoinOr/ipopt_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CoinOr creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt copying build/lib/openopt/solvers/HongKongOpt/LCPSolve.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt copying build/lib/openopt/solvers/HongKongOpt/QPSolve.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt copying build/lib/openopt/solvers/HongKongOpt/QPSparse.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt copying build/lib/openopt/solvers/HongKongOpt/__init__.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt copying build/lib/openopt/solvers/HongKongOpt/lcpsolve_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt copying build/lib/openopt/solvers/HongKongOpt/qlcp.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt copying build/lib/openopt/solvers/HongKongOpt/qlcp_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt copying build/lib/openopt/solvers/HongKongOpt/sqlcp.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt copying build/lib/openopt/solvers/HongKongOpt/sqlcp_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/MATLAB_BASE.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/Wormhole.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/__init__.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/bintprog_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/fmincon_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/linprog_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/lsqlin_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/matlab_fsolve_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/matlab_ode.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/ode113_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/ode15s_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/ode23_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/ode23s_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/ode23t_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/ode23tb_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/ode45_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/quadprog_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/wh.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB copying build/lib/openopt/solvers/MATLAB/wh_conn_solver.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Octave copying build/lib/openopt/solvers/Octave/__init__.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Octave copying build/lib/openopt/solvers/Octave/octave_qp_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Octave creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/__init__.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/arpack_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/asa_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/branb_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/bvls_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/defaultSLEsolver_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/direct_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/galileo_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/knitro_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/lsqr.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/lsqr_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/pclp_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/pointProjection.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/pswarm_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/pymls_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/sa.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/sa_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone copying build/lib/openopt/solvers/Standalone/tsp.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/Dilation.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/Dilation2.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/Dilation3.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/PolytopProjection.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/Saved_ii_engine.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/Saved_interalgCons.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/Saved_interalgLLR.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/Saved_interalgMOP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/Saved_interalgMisc.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/Saved_interalgODE.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/Saved_interalgT.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/Saved_interalg_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/ShorEllipsoid_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/UkrOptMisc.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/__init__.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/amsg2p.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/amsg2p_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/asdf.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/asdf_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/de_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/goldenSection_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/gsubg_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/ii_engine.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/interalgCons.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/interalgLLR.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/interalgMOP.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/interalgMisc.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/interalgODE.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/interalgT.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/interalg_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/lincher_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/nsmm_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/nssolve_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt copying build/lib/openopt/solvers/UkrOpt/ralg_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/lp_solve copying build/lib/openopt/solvers/lp_solve/__init__.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/lp_solve copying build/lib/openopt/solvers/lp_solve/lpSolve_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/lp_solve creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt copying build/lib/openopt/solvers/nlopt/NLOPT_AUX.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt copying build/lib/openopt/solvers/nlopt/NLOPT_BASE.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt copying build/lib/openopt/solvers/nlopt/__init__.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt copying build/lib/openopt/solvers/nlopt/auglag_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt copying build/lib/openopt/solvers/nlopt/bobyqa_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt copying build/lib/openopt/solvers/nlopt/isres_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt copying build/lib/openopt/solvers/nlopt/mlsl_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt copying build/lib/openopt/solvers/nlopt/mma_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt copying build/lib/openopt/solvers/nlopt/ptn_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt copying build/lib/openopt/solvers/nlopt/sbplx_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt copying build/lib/openopt/solvers/nlopt/slmvm1_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt copying build/lib/openopt/solvers/nlopt/slmvm2_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt copying build/lib/openopt/solvers/nlopt/stogo_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/__init__.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/lapack_dgelss_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/lapack_sgelss_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/lsmr_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/numpy_eig_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_anderson2_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_anderson_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_bfgs_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_broyden1_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_broyden2_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_broyden3_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_broyden_generalized_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_cg_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_cobyla_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_fmin_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_fminbound_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_fsolve_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_lbfgsb_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_leastsq_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_ncg_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_powell_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_slsqp_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/scipy_optim/scipy_tnc_oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim copying build/lib/openopt/solvers/__init__.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers creating /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests copying build/lib/openopt/tests/__init__.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests copying build/lib/openopt/tests/blockMisc.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests copying build/lib/openopt/tests/chain.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests copying build/lib/openopt/tests/nlp1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests copying build/lib/openopt/tests/nlp2.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests copying build/lib/openopt/tests/nlpLC.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests copying build/lib/openopt/tests/nlsp1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests copying build/lib/openopt/tests/nsp1.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests copying build/lib/openopt/tests/nsp2.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests copying build/lib/openopt/tests/oosolver.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests copying build/lib/openopt/tests/rastrigin.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests copying build/lib/openopt/oo.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt copying build/lib/openopt/ooVersionNumber.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt copying build/lib/openopt/__init__.py -> /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/GUI_1.py to GUI_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/bpp_1.py to bpp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/bpp_2.py to bpp_2.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/dfp_1.py to dfp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/dfp_2.py to dfp_2.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/dsp_1.py to dsp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/eig_1.py to eig_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/eig_2.py to eig_2.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/glp_1.py to glp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/glp_2.py to glp_2.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/glp_3.py to glp_3.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/glp_Ab_c.py to glp_Ab_c.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/ksp_1.py to ksp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/ksp_2.py to ksp_2.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/ksp_mop.py to ksp_mop.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/lcp_1.py to lcp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/llavp_1.py to llavp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/llsp_1.py to llsp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/llsp_2.py to llsp_2.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/lp_1.py to lp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/lunp_1.py to lunp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/mcp_1.py to mcp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/milp_1.py to milp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/minlp_1.py to minlp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/miqcqp_1.py to miqcqp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/miqp_1.py to miqp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/mmp_1.py to mmp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/mmp_2.py to mmp_2.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/nllsp_1.py to nllsp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/nlp_1.py to nlp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/nlp_11.py to nlp_11.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/nlp_2.py to nlp_2.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/nlp_3.py to nlp_3.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/nlp_4.py to nlp_4.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/nlp_5.py to nlp_5.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/nlp_ALGENCAN.py to nlp_ALGENCAN.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/nlp_bench_1.py to nlp_bench_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/nlp_bench_2.py to nlp_bench_2.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/nlp_d2f.py to nlp_d2f.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/nlsp_1.py to nlsp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/nlsp_constrained.py to nlsp_constrained.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/nsp_1.py to nsp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/nssolveVSfsolve_1.py to nssolveVSfsolve_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/qcqp_1.py to qcqp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/qp_1.py to qp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/sdp_1.py to sdp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/sle_1.py to sle_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/snle_1.py to snle_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/socp_1.py to socp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/stab_1.py to stab_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/tsp_1.py to tsp_1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/tsp_2.py to tsp_2.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/tsp_3.py to tsp_3.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples/tsp_4.py to tsp_4.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/BPP.py to BPP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/DAE.py to DAE.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/DFP.py to DFP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/DSP.py to DSP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/EIG.py to EIG.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/GLP.py to GLP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/GUI.py to GUI.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/IP.py to IP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/KSP.py to KSP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/LCP.py to LCP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/LLAVP.py to LLAVP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/LLSP.py to LLSP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/LP.py to LP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/LUNP.py to LUNP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/MCP.py to MCP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/MILP.py to MILP.cpython-312.pyc /usr/lib/python3.12/site-packages/openopt/kernel/MILP.py:39: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/MILP.py:39: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/MINLP.py to MINLP.cpython-312.pyc /usr/lib/python3.12/site-packages/openopt/kernel/MINLP.py:35: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/kernel/MINLP.py:37: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/MINLP.py:38: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/MMP.py to MMP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/MOP.py to MOP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/NLLSP.py to NLLSP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/NLP.py to NLP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/NLSP.py to NLSP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/NSP.py to NSP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/ODE.py to ODE.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/Point.py to Point.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/QP.py to QP.cpython-312.pyc /usr/lib/python3.12/site-packages/openopt/kernel/QP.py:50: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/QP.py:50: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/SDP.py to SDP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/SLE.py to SLE.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/SOCP.py to SOCP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/STAB.py to STAB.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/TSP.py to TSP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/baseProblem.py to baseProblem.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/baseSolver.py to baseSolver.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/check.py to check.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/fdConstraint.py to fdConstraint.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py to fdPrepare.cpython-312.pyc /usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py:149: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py:150: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py:286: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py:288: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/fdTranslators.py to fdTranslators.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/fdmisc.py to fdmisc.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/iterPrint.py to iterPrint.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/nonLinFuncs.py to nonLinFuncs.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/nonOptMisc.py to nonOptMisc.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/ooIter.py to ooIter.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/ooMisc.py to ooMisc.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/ooRun.py to ooRun.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/oographics.py to oographics.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/oologfcn.py to oologfcn.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/pointProjection.py to pointProjection.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/residuals.py to residuals.cpython-312.pyc /usr/lib/python3.12/site-packages/openopt/kernel/residuals.py:179: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/result.py to result.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/runProbSolver.py to runProbSolver.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/setDefaultIterFuncs.py to setDefaultIterFuncs.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/kernel/mfa.py to mfa.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/BrasilOpt/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/BrasilOpt/algencan_oo.py to algencan_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT/CVXOPT_LLSP_Solver.py to CVXOPT_LLSP_Solver.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT/CVXOPT_LP_Solver.py to CVXOPT_LP_Solver.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT/CVXOPT_QP_Solver.py to CVXOPT_QP_Solver.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT/CVXOPT_SDP_Solver.py to CVXOPT_SDP_Solver.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT/CVXOPT_SOCP_Solver.py to CVXOPT_SOCP_Solver.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT/cvxopt_lp_oo.py to cvxopt_lp_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT/cvxopt_misc.py to cvxopt_misc.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT/cvxopt_qp_oo.py to cvxopt_qp_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT/cvxopt_sdp_oo.py to cvxopt_sdp_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT/cvxopt_socp_oo.py to cvxopt_socp_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT/dsdp_oo.py to dsdp_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CVXOPT/glpk_oo.py to glpk_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CoinOr/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CoinOr/cplex_oo.py to cplex_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/CoinOr/ipopt_oo.py to ipopt_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt/LCPSolve.py to LCPSolve.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt/QPSolve.py to QPSolve.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt/QPSparse.py to QPSparse.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt/lcpsolve_oo.py to lcpsolve_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt/qlcp.py to qlcp.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt/qlcp_oo.py to qlcp_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt/sqlcp.py to sqlcp.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/HongKongOpt/sqlcp_oo.py to sqlcp_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/MATLAB_BASE.py to MATLAB_BASE.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/Wormhole.py to Wormhole.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/bintprog_oo.py to bintprog_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/fmincon_oo.py to fmincon_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/linprog_oo.py to linprog_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/lsqlin_oo.py to lsqlin_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/matlab_fsolve_oo.py to matlab_fsolve_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/matlab_ode.py to matlab_ode.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/ode113_oo.py to ode113_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/ode15s_oo.py to ode15s_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/ode23_oo.py to ode23_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/ode23s_oo.py to ode23s_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/ode23t_oo.py to ode23t_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/ode23tb_oo.py to ode23tb_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/ode45_oo.py to ode45_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/quadprog_oo.py to quadprog_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/wh.py to wh.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/MATLAB/wh_conn_solver.py to wh_conn_solver.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Octave/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Octave/octave_qp_oo.py to octave_qp_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/arpack_oo.py to arpack_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/asa_oo.py to asa_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/branb_oo.py to branb_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/bvls_oo.py to bvls_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/defaultSLEsolver_oo.py to defaultSLEsolver_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/direct_oo.py to direct_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/galileo_oo.py to galileo_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/knitro_oo.py to knitro_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/lsqr.py to lsqr.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/lsqr_oo.py to lsqr_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/pclp_oo.py to pclp_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/pointProjection.py to pointProjection.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/pswarm_oo.py to pswarm_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/pymls_oo.py to pymls_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/sa.py to sa.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/sa_oo.py to sa_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/Standalone/tsp.py to tsp.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Dilation.py to Dilation.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Dilation2.py to Dilation2.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Dilation3.py to Dilation3.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/PolytopProjection.py to PolytopProjection.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_ii_engine.py to Saved_ii_engine.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalgCons.py to Saved_interalgCons.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalgLLR.py to Saved_interalgLLR.cpython-312.pyc /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalgLLR.py:276: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalgLLR.py:592: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalgMOP.py to Saved_interalgMOP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalgMisc.py to Saved_interalgMisc.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalgODE.py to Saved_interalgODE.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalgT.py to Saved_interalgT.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalg_oo.py to Saved_interalg_oo.cpython-312.pyc /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalg_oo.py:95: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/ShorEllipsoid_oo.py to ShorEllipsoid_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/UkrOptMisc.py to UkrOptMisc.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/amsg2p.py to amsg2p.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/amsg2p_oo.py to amsg2p_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/asdf.py to asdf.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/asdf_oo.py to asdf_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/de_oo.py to de_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/goldenSection_oo.py to goldenSection_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/gsubg_oo.py to gsubg_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/ii_engine.py to ii_engine.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalgCons.py to interalgCons.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalgLLR.py to interalgLLR.cpython-312.pyc /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalgLLR.py:278: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalgLLR.py:594: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalgMOP.py to interalgMOP.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalgMisc.py to interalgMisc.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalgODE.py to interalgODE.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalgT.py to interalgT.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalg_oo.py to interalg_oo.cpython-312.pyc /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalg_oo.py:95: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/lincher_oo.py to lincher_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/nsmm_oo.py to nsmm_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/nssolve_oo.py to nssolve_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/ralg_oo.py to ralg_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/lp_solve/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/lp_solve/lpSolve_oo.py to lpSolve_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt/NLOPT_AUX.py to NLOPT_AUX.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt/NLOPT_BASE.py to NLOPT_BASE.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt/auglag_oo.py to auglag_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt/bobyqa_oo.py to bobyqa_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt/isres_oo.py to isres_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt/mlsl_oo.py to mlsl_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt/mma_oo.py to mma_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt/ptn_oo.py to ptn_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt/sbplx_oo.py to sbplx_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt/slmvm1_oo.py to slmvm1_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt/slmvm2_oo.py to slmvm2_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/nlopt/stogo_oo.py to stogo_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/lapack_dgelss_oo.py to lapack_dgelss_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/lapack_sgelss_oo.py to lapack_sgelss_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/lsmr_oo.py to lsmr_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/numpy_eig_oo.py to numpy_eig_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_anderson2_oo.py to scipy_anderson2_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_anderson_oo.py to scipy_anderson_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_bfgs_oo.py to scipy_bfgs_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_broyden1_oo.py to scipy_broyden1_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_broyden2_oo.py to scipy_broyden2_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_broyden3_oo.py to scipy_broyden3_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_broyden_generalized_oo.py to scipy_broyden_generalized_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_cg_oo.py to scipy_cg_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_cobyla_oo.py to scipy_cobyla_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_fmin_oo.py to scipy_fmin_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_fminbound_oo.py to scipy_fminbound_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_fsolve_oo.py to scipy_fsolve_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_lbfgsb_oo.py to scipy_lbfgsb_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_leastsq_oo.py to scipy_leastsq_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_ncg_oo.py to scipy_ncg_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_powell_oo.py to scipy_powell_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_slsqp_oo.py to scipy_slsqp_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/scipy_optim/scipy_tnc_oo.py to scipy_tnc_oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/solvers/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests/blockMisc.py to blockMisc.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests/chain.py to chain.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests/nlp1.py to nlp1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests/nlp2.py to nlp2.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests/nlpLC.py to nlpLC.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests/nlsp1.py to nlsp1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests/nsp1.py to nsp1.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests/nsp2.py to nsp2.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests/oosolver.py to oosolver.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/tests/rastrigin.py to rastrigin.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/oo.py to oo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/ooVersionNumber.py to ooVersionNumber.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/__init__.py to __init__.cpython-312.pyc writing byte-compilation script '/tmp/tmpvsvka2tl.py' /usr/bin/python3 /tmp/tmpvsvka2tl.py /usr/lib/python3.12/site-packages/openopt/kernel/MILP.py:39: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/MILP.py:39: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/MINLP.py:35: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/kernel/MINLP.py:37: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/MINLP.py:38: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/QP.py:50: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/QP.py:50: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py:149: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py:150: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py:286: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py:288: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/kernel/residuals.py:179: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalgLLR.py:276: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalgLLR.py:592: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalg_oo.py:95: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalgLLR.py:278: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalgLLR.py:594: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalg_oo.py:95: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? removing /tmp/tmpvsvka2tl.py running install_egg_info running egg_info running build_src INFO: build_src writing openopt.egg-info/PKG-INFO writing dependency_links to openopt.egg-info/dependency_links.txt writing requirements to openopt.egg-info/requires.txt writing top-level names to openopt.egg-info/top_level.txt /usr/lib/python3.12/site-packages/setuptools/command/sdist.py:119: SetuptoolsDeprecationWarning: `build_py` command does not inherit from setuptools' `build_py`. !! ******************************************************************************** Custom 'build_py' does not implement 'get_data_files_without_manifest'. Please extend command classes from setuptools instead of distutils. See https://peps.python.org/pep-0632/ for details. ******************************************************************************** !! self._add_data_files(self._safe_data_files(build_py)) INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options reading manifest file 'openopt.egg-info/SOURCES.txt' writing manifest file 'openopt.egg-info/SOURCES.txt' Copying openopt.egg-info to /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt-0.5629-py3.12.egg-info running install_scripts running install_clib INFO: customize UnixCCompiler + rm -rfv /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/bin/__pycache__ + rm -rf /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12/site-packages/openopt/examples + /usr/bin/find-debuginfo -j2 --strict-build-id -m -i --build-id-seed 0.5629-13.fc39 --unique-debug-suffix -0.5629-13.fc39.s390x --unique-debug-src-base python-openopt-0.5629-13.fc39.s390x --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/openopt-0.5629 find-debuginfo: starting Extracting debug info from 0 files Creating .debug symlinks for symlinks to ELF files find: 'debug': No such file or directory find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j2 Bytecompiling .py files below /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/lib/python3.12 using python3.12 /usr/lib/python3.12/site-packages/openopt/kernel/MILP.py:39: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/MILP.py:39: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/MINLP.py:35: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/kernel/MINLP.py:37: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/MINLP.py:38: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/MINLP.py:35: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/kernel/MINLP.py:37: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/MINLP.py:38: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/MILP.py:39: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/MILP.py:39: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/QP.py:50: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/QP.py:50: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/QP.py:50: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/QP.py:50: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py:149: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py:150: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py:286: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py:288: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py:149: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py:150: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py:286: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/kernel/fdPrepare.py:288: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/kernel/residuals.py:179: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/kernel/residuals.py:179: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalgLLR.py:276: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalgLLR.py:592: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalgLLR.py:276: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalgLLR.py:592: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalg_oo.py:95: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/Saved_interalg_oo.py:95: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalgLLR.py:278: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalgLLR.py:594: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalgLLR.py:278: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalgLLR.py:594: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalg_oo.py:95: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? /usr/lib/python3.12/site-packages/openopt/solvers/UkrOpt/interalg_oo.py:95: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.J5JYNy + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd openopt-0.5629 + RPM_EC=0 ++ jobs -p + exit 0 Processing files: python3-openopt-0.5629-13.fc39.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.0v4UoS + umask 022 + cd /builddir/build/BUILD + cd openopt-0.5629 + DOCDIR=/builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/share/doc/python3-openopt + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/share/doc/python3-openopt + cp -pr /builddir/build/BUILD/openopt-0.5629/PKG-INFO /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/share/doc/python3-openopt + cp -pr /builddir/build/BUILD/openopt-0.5629/openopt/examples /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x/usr/share/doc/python3-openopt + RPM_EC=0 ++ jobs -p + exit 0 Provides: python-openopt = 0.5629-13.fc39 python3-openopt = 0.5629-13.fc39 python3.12-openopt = 0.5629-13.fc39 python3.12dist(openopt) = 0.5629 python3dist(openopt) = 0.5629 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.12 python3.12dist(numpy) python3.12dist(setproctitle) python3.12dist(sortedcontainers) Obsoletes: python-openopt < 0.5629-13.fc39 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x Wrote: /builddir/build/RPMS/python3-openopt-0.5629-13.fc39.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.sMt1Lv + umask 022 + cd /builddir/build/BUILD + cd openopt-0.5629 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-openopt-0.5629-13.fc39.s390x + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.WvEn7A + umask 022 + cd /builddir/build/BUILD + rm -rf /builddir/build/BUILD/openopt-0.5629-SPECPARTS + rm -rf openopt-0.5629 openopt-0.5629.gemspec + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0