diff --git a/customhys/hyperheuristic.py b/customhys/hyperheuristic.py
index 76d58d5..145212f 100644
--- a/customhys/hyperheuristic.py
+++ b/customhys/hyperheuristic.py
@@ -81,6 +81,7 @@ def __init__(self, heuristic_space='default.txt', problem=None, parameters=None,
Weights of the search operators, if there is a-priori information about them. The default is None.
"""
# Read the heuristic space
+ # TODO: fix for any OS (now, it only works for Windows)
if isinstance(heuristic_space, list):
self.heuristic_space_label = 'custom_list'
self.heuristic_space = heuristic_space
diff --git a/examples/tutorial_in_spanish.ipynb b/examples/tutorial_in_spanish.ipynb
index 1f6330c..171f0e3 100644
--- a/examples/tutorial_in_spanish.ipynb
+++ b/examples/tutorial_in_spanish.ipynb
@@ -28,7 +28,10 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {
- "collapsed": true
+ "collapsed": true,
+ "ExecuteTime": {
+ "start_time": "2023-10-26T17:47:28.384914Z"
+ }
},
"outputs": [],
"source": [
@@ -45,7 +48,10 @@
"# !git clone https://github.com/jcrvz/customhys.git ."
],
"metadata": {
- "collapsed": false
+ "collapsed": false,
+ "ExecuteTime": {
+ "start_time": "2023-10-26T17:47:28.386906Z"
+ }
}
},
{
@@ -63,7 +69,15 @@
{
"cell_type": "code",
"execution_count": 3,
- "outputs": [],
+ "outputs": [
+ {
+ "name": "stderr",
+ "output_type": "stream",
+ "text": [
+ "benchmark_func.py:29: ImportWarning: `optproblems` not found! Please, install it to use the cec2005 benchmark functions\n"
+ ]
+ }
+ ],
"source": [
"from customhys import benchmark_func as bf\n",
"\n",
@@ -77,7 +91,11 @@
"import pandas as pd"
],
"metadata": {
- "collapsed": false
+ "collapsed": false,
+ "ExecuteTime": {
+ "end_time": "2023-10-26T17:47:29.063471Z",
+ "start_time": "2023-10-26T17:47:28.388093Z"
+ }
}
},
{
@@ -95,8 +113,7 @@
"outputs": [
{
"data": {
- "text/plain": " Continuous Differentiable Separable Scalable Unimodal Convex Code\nAckley1 True True False True False False 100\nAckley4 True True False True False False 100\nAlpine1 True False True False False False 010\nAlpine2 True True True True False False 110\nBohachevsky True True True True False False 110\n... ... ... ... ... ... ... ...\nXinSheYang3 True True False True True False 101\nXinSheYang4 True False False True False False 000\nYaoLiu09 True True True True False False 110\nZakharov True True False True True True 101\nZeroSum False False False True False False 000\n\n[107 rows x 7 columns]",
- "text/html": "
\n\n
\n \n \n | \n Continuous | \n Differentiable | \n Separable | \n Scalable | \n Unimodal | \n Convex | \n Code | \n
\n \n \n \n Ackley1 | \n True | \n True | \n False | \n True | \n False | \n False | \n 100 | \n
\n \n Ackley4 | \n True | \n True | \n False | \n True | \n False | \n False | \n 100 | \n
\n \n Alpine1 | \n True | \n False | \n True | \n False | \n False | \n False | \n 010 | \n
\n \n Alpine2 | \n True | \n True | \n True | \n True | \n False | \n False | \n 110 | \n
\n \n Bohachevsky | \n True | \n True | \n True | \n True | \n False | \n False | \n 110 | \n
\n \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n
\n \n XinSheYang3 | \n True | \n True | \n False | \n True | \n True | \n False | \n 101 | \n
\n \n XinSheYang4 | \n True | \n False | \n False | \n True | \n False | \n False | \n 000 | \n
\n \n YaoLiu09 | \n True | \n True | \n True | \n True | \n False | \n False | \n 110 | \n
\n \n Zakharov | \n True | \n True | \n False | \n True | \n True | \n True | \n 101 | \n
\n \n ZeroSum | \n False | \n False | \n False | \n True | \n False | \n False | \n 000 | \n
\n \n
\n
107 rows × 7 columns
\n
"
+ "text/plain": "['Ackley1',\n 'Ackley4',\n 'Alpine1',\n 'Alpine2',\n 'Bohachevsky',\n 'Brent',\n 'Brown',\n 'CarromTable',\n 'ChungReynolds',\n 'Cigar',\n 'CosineMixture',\n 'CrossInTray',\n 'CrossLegTable',\n 'CrownedCross',\n 'Csendes',\n 'Deb1',\n 'Deb2',\n 'DeflectedCorrugatedSpring',\n 'DixonPrice',\n 'DropWave',\n 'EggHolder',\n 'Ellipsoid',\n 'ExpandedDecreasingMinima',\n 'ExpandedEqualMinima',\n 'ExpandedFiveUnevenPeakTrap',\n 'ExpandedTwoPeakTrap',\n 'ExpandedUnevenMinima',\n 'Exponential',\n 'F2',\n 'Giunta',\n 'Griewank',\n 'HappyCat',\n 'HyperEllipsoid',\n 'InvertedCosineWave',\n 'JennrichSampson',\n 'KTablet',\n 'Katsuura',\n 'Levy',\n 'LunacekN01',\n 'LunacekN02',\n 'Michalewicz',\n 'Mishra1',\n 'Mishra2',\n 'Mishra7',\n 'Mishra11',\n 'ModifiedVincent',\n 'NeedleEye',\n 'Pathological',\n 'Periodic',\n 'Perm01',\n 'Perm02',\n 'Pinter',\n 'PowellSum',\n 'Price01',\n 'Qing',\n 'Quartic',\n 'Quintic',\n 'Rana',\n 'Rastrigin',\n 'Ridge',\n 'Rosenbrock',\n 'RotatedHyperEllipsoid',\n 'Salomon',\n 'Sargan',\n 'SchafferN1',\n 'SchafferN2',\n 'SchafferN3',\n 'SchafferN4',\n 'SchafferN6',\n 'Schubert',\n 'Schubert3',\n 'Schubert4',\n 'SchumerSteiglitz',\n 'Schwefel',\n 'Schwefel12',\n 'Schwefel204',\n 'Schwefel220',\n 'Schwefel221',\n 'Schwefel222',\n 'Schwefel223',\n 'Schwefel225',\n 'Schwefel226',\n 'Sphere',\n 'Step',\n 'Step2',\n 'Step3',\n 'StepInt',\n 'Stochastic',\n 'StrechedVSineWave',\n 'StyblinskiTang',\n 'SumSquares',\n 'Trid',\n 'Trigonometric1',\n 'Trigonometric2',\n 'TypeI',\n 'TypeII',\n 'Vincent',\n 'WWavy',\n 'Weierstrass',\n 'Whitley',\n 'XinSheYang1',\n 'XinSheYang2',\n 'XinSheYang3',\n 'XinSheYang4',\n 'YaoLiu09',\n 'Zakharov',\n 'ZeroSum']"
},
"execution_count": 4,
"metadata": {},
@@ -108,7 +125,11 @@
"functions"
],
"metadata": {
- "collapsed": false
+ "collapsed": false,
+ "ExecuteTime": {
+ "end_time": "2023-10-26T17:47:29.069202Z",
+ "start_time": "2023-10-26T17:47:29.067107Z"
+ }
}
},
{
@@ -127,7 +148,11 @@
"print(\"Total de funciones de prueba: \", len(functions))"
],
"metadata": {
- "collapsed": false
+ "collapsed": false,
+ "ExecuteTime": {
+ "end_time": "2023-10-26T17:47:29.071903Z",
+ "start_time": "2023-10-26T17:47:29.069352Z"
+ }
}
},
{
@@ -146,7 +171,7 @@
{
"data": {
"text/plain": "