Questions tagged [pymoo]
35 questions
0
votes
1 answer
Pymoo -Error: Number of values and population size do not match
I have the following set of equations:
x = [x1, x2, x3, x4, x5, x6, x7]
c = [1, 2, 3, 4, 5, 6, 7]
g_cons = [1, 2, 3, 4, 5, 6, 7]
d_cons = [1, 2, 3, 4, 5, 6, 7]
g = Σ(x*g_cons)
d = Σ(x*d_cons)
d_p = d/g*100
e = -0.0038 * d_p * d_p + 0.3501 *d_p –…

drisyagv
- 1
- 1
0
votes
0 answers
Error when using if functions in pymoo (ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all())
When optimising functions with pymoo if I include an if statement I get an error as below:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
I cant understand the reason for this error, it…

rsc
- 1
0
votes
1 answer
Pymoo: int object is not callable when calling minimize
so I ran the example code, and wrote some additional stuff for my problem
problem = MyProblem(avg_vec,cov_mat,cor_mat,num_vars,num_obj,num_con,lb,ub,func_list,cons_list)
print(problem)
algorithm = NSGA2()
…

Eigenvalue
- 1,093
- 1
- 14
- 35
0
votes
1 answer
Passing parameters to pymoo so that evaluate function sees them
so just using pymoo - I can't determine from the documentation how to pass parameters so that the evaluate function sees them:
import matplotlib.pyplot as plt
import numpy as np
from pymoo.algorithms.nsga2 import NSGA2
from pymoo.model.problem…

Eigenvalue
- 1,093
- 1
- 14
- 35
0
votes
1 answer
possibility of Pymoo to work within a candidate search space
I have a problem of two objective functions, three variables, and zero constraints.
I have also a search space for these variables read from CSV.
Is it possible to use pymoo to use that search space of variables (instead of xl, and xu) to get the…

Mohammed Ragab
- 31
- 6