92d5120f706b475883818abf6ec386e0edd09a9b,qiskit_aqua/algorithms/components/optimizers/nlopts/crs.py,CRS,check_pluggable_valid,#,66
Before Change
@staticmethod
def check_pluggable_valid():
try:
spec = importlib.util.find_spec("nlopt")
if spec is not None:
return True
except:
pass
logger.info("nlopt is not installed. Please install it if you want to use them.")
return False
def optimize(self, num_vars, objective_function, gradient_function=None,
After Change
@staticmethod
def check_pluggable_valid():
return check_nlopt_valid(CRS.CONFIGURATION["name"])
def optimize(self, num_vars, objective_function, gradient_function=None,
variable_bounds=None, initial_point=None):
super().optimize(num_vars, objective_function, gradient_function, variable_bounds, initial_point)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 12
Instances
Project Name: Qiskit/qiskit-aqua
Commit Name: 92d5120f706b475883818abf6ec386e0edd09a9b
Time: 2018-11-30
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/components/optimizers/nlopts/crs.py
Class Name: CRS
Method Name: check_pluggable_valid
Project Name: Qiskit/qiskit-aqua
Commit Name: 92d5120f706b475883818abf6ec386e0edd09a9b
Time: 2018-11-30
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/components/optimizers/nlopts/direct_l_rand.py
Class Name: DIRECT_L_RAND
Method Name: check_pluggable_valid
Project Name: Qiskit/qiskit-aqua
Commit Name: 92d5120f706b475883818abf6ec386e0edd09a9b
Time: 2018-11-30
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/components/optimizers/nlopts/esch.py
Class Name: ESCH
Method Name: check_pluggable_valid
Project Name: Qiskit/qiskit-aqua
Commit Name: 92d5120f706b475883818abf6ec386e0edd09a9b
Time: 2018-11-30
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/components/optimizers/nlopts/isres.py
Class Name: ISRES
Method Name: check_pluggable_valid
Project Name: Qiskit/qiskit-aqua
Commit Name: 92d5120f706b475883818abf6ec386e0edd09a9b
Time: 2018-11-30
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/components/optimizers/nlopts/direct_l.py
Class Name: DIRECT_L
Method Name: check_pluggable_valid