Skip to content

Commit

Permalink
Remove n_vars in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
thieupu committed Mar 24, 2024
1 parent 03c6312 commit 6dacfb6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/utils/visualize/convergence_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def fitness_function(solution):

problem = {
"fit_func": fitness_function,
"bounds": FloatVar(n_vars=8, lb=[-10, -5, -15, -20, -10, -15, -10, -30], ub=[10, 5, 15, 20, 50, 30, 100, 85]),
"bounds": FloatVar(lb=[-10, -5, -15, -20, -10, -15, -10, -30], ub=[10, 5, 15, 20, 50, 30, 100, 85]),
"minmax": "min",
"obj_weights": [0.2, 0.5, 0.3]
}
Expand Down
2 changes: 1 addition & 1 deletion examples/utils/visualize/exploration_exploitation_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def fitness_function(solution):

problem = {
"fit_func": fitness_function,
"bounds": FloatVar(n_vars=8, lb=[-10, -5, -15, -20, -10, -15, -10, -30], ub=[10, 5, 15, 20, 50, 30, 100, 85]),
"bounds": FloatVar(lb=[-10, -5, -15, -20, -10, -15, -10, -30], ub=[10, 5, 15, 20, 50, 30, 100, 85]),
"minmax": "min",
"obj_weights": [0.2, 0.5, 0.3]
}
Expand Down
2 changes: 1 addition & 1 deletion examples/utils/visualize/objectives_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def fitness_function(solution):

problem = {
"fit_func": fitness_function,
"bounds": FloatVar(n_vars=8, lb=[-10, -5, -15, -20, -10, -15, -10, -30], ub=[10, 5, 15, 20, 50, 30, 100, 85]),
"bounds": FloatVar(lb=[-10, -5, -15, -20, -10, -15, -10, -30], ub=[10, 5, 15, 20, 50, 30, 100, 85]),
"minmax": "min",
"obj_weights": [0.2, 0.5, 0.3]
}
Expand Down
2 changes: 1 addition & 1 deletion examples/utils/visualize/trajectory_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def fitness_function(solution):

problem = {
"fit_func": fitness_function,
"bounds": FloatVar(n_vars=8, lb=[-10, -5, -15, -20, -10, -15, -10, -30], ub=[10, 5, 15, 20, 50, 30, 100, 85]),
"bounds": FloatVar(lb=[-10, -5, -15, -20, -10, -15, -10, -30], ub=[10, 5, 15, 20, 50, 30, 100, 85]),
"minmax": "min",
"obj_weights": [0.2, 0.5, 0.3],
"save_population": True
Expand Down

0 comments on commit 6dacfb6

Please sign in to comment.