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()
print(algorithm)
res = minimize(problem,
algorithm,
('n_gen', 20000),
seed=1)
when I run this, I get the following output
# name: MyProblem
# n_var: 3133
# n_obj: 2
# n_constr: 1
<pymoo.algorithms.nsga2.NSGA2 object at 0x000001B00B384D88>
Traceback (most recent call last):
File "port_runner.py", line 72, in <module>
my_port.sharp_moo(func_list,con_list,test_prices, max_port_amount, max_stocks,back_prop_data)
line 468, in sharp_moo
seed=1)
TypeError: 'int' object is not callable
I'm a bit confused where the issue is, because none of these functions are integers by some mistake - it isn't even calling my evaluate function for minimize.