Questions tagged [pymoo]

35 questions
2
votes
1 answer

Pycharm Error: ModuleNotFoundError: No module named 'pymoo.algorithms'; 'pymoo' is not a package

I've tried to run the example code from pymoo for NSGA2 in PyCharm. from pymoo.algorithms.moo.nsga2 import NSGA2 from pymoo.factory import get_problem from pymoo.optimize import minimize from pymoo.visualization.scatter import Scatter problem =…
InaColada
  • 23
  • 1
  • 3
2
votes
0 answers

Multi Objective Optimization

I am a beginner when it comes to python and especially to Optimization. I have looked through the pymoo docs and they seem quite confusing. How would I find the most efficient results from points with three values each. Pymoo has these things…
1
vote
1 answer

How can i access the number of evaluations in my Pymoo result object?

When minimizing a Pymoo test problem i want to get the number of evaluations n_eval. Calling minimize with verbose option prints out this display information: n_gen | n_eval | n_nds | igd | gd …
wagerc97
  • 23
  • 6
1
vote
0 answers

How to set a starting solution in Pymoo

i want to use a starting solution for pymoo in the algorithms NSGA2. For that I have the following code intial_solution = ICSimulation.simulateDays_ConventionalControl() algorithm = NSGA2( pop_size=5, n_offsprings=2, …
PeterBe
  • 700
  • 1
  • 17
  • 37
1
vote
1 answer

Constructing a custom problem in Pymoo (Picking a subset of Vehicles from a Bag)

I am trying to follow this method to solve an optimization problem. I have a bag of N=100 vehicles which have certain properties. For example cost, rank, and mpg. I am looking to find k=5 subsets of vehicles that have higher mpg and rank than…
1
vote
0 answers

NSGA2: Multi-objective Optimization Problem using Pymoo package in Python

I have been working on 3 objective optimization problem and my goal is to minimize all three functions based on 3 design variables.I have written a python code which works great for 2 objective problem but it doesnt give me non-dominated set of…
1
vote
0 answers

How to use external application instance in a pymoo problem without needing to serialise it to enable saving history?

I'm trying to include an external application instance in the evaluation of a pymoo problem. I've got this working, but having the external application in the pymoo problem means that I can't use the save_history method, and I get the following…
1
vote
1 answer

python - pymoo multi-objective portfolio optimisation using NSGA-II algorithm

I am trying to use pymoo's NSGA-II algorithm to carry out portfolio optimization. from pymoo.algorithms.moo.nsga2 import NSGA2 from pymoo.core.problem import Problem from pymoo.optimize import minimize from pymoo.visualization.scatter import…
Dimitris
  • 11
  • 2
1
vote
1 answer

Pymoo/NSGA2 : How to interpreter MOO (multi objective optimization) output columns n_nds, eps, and indicator?

I am doing a multi-objective optimization task using Pymoo.org, but I have a hard time understanding the last three columns of the output. I assume n_nds is the number of nondominant solutions in each generation. However, I don't understand the eps…
Mike IT Expert
  • 329
  • 1
  • 3
  • 13
1
vote
0 answers

Writing Complicated Constraints in Pymoo

I need to write a complicated constraint in Pymoo for a scheduling problem. for all i = 1 to 7, t = 1 to 14 sum (k in 1 to 3 ) y(i)(k)(t) <= 1 How the indices and summation could be incorporated in Pymoo constraints/ objective functions ?? please…
ZRiyami
  • 11
  • 2
1
vote
1 answer

Pymoo generating candidates with nan parameters

I'm running a multi-objective optimisation with Pymoo (0.5.0) using NSGA-III and within my population of new candidates some of the generated candidates have nan parameters. This results in my evaluate function (which is a call to a neural network)…
1
vote
0 answers

Genetic Algorithm Population Individual as Array

I don't have much experience using Genetic Algorithms, so I would like to ask the community for some useful comments. I want to apologize for my terminology errors. Please, correct me if it's needed. The problem I want to optimize is optimal power…
furious_bilbo
  • 176
  • 11
1
vote
1 answer

How to terminate minimization when certain objective value has been reached (pymoo)

In pymoo, the following termination criteria exist for single objective optimization (docs): termination = SingleObjectiveDefaultTermination( x_tol=1e-8, cv_tol=1e-6, f_tol=1e-6, nth_gen=5, n_last=20, n_max_gen=1000, …
Thomas Wagenaar
  • 6,489
  • 5
  • 30
  • 73
1
vote
1 answer

Pymoo Python: TypeError: _evaluate() got an unexpected keyword argument 'algorithm'

I am trying to set up my optimization with Python's Pymoo library, I am using their 'getting started' guide but passing my own independent variables and also not using constraints. I get the same using the example functions from the guide (I have…
ISquared
  • 364
  • 4
  • 22
1
vote
1 answer

Python pymoo - Passing independent variables as arguments

I am using pymoo package to do multi-objective optimization, and I am having trouble setting up my model, because I get errors when trying to pass as arguments other independent variables (apart from the parameters that are being optimized). I tried…
ISquared
  • 364
  • 4
  • 22
1
2 3