Questions tagged [pymoo]
35 questions
0
votes
1 answer
Is there another function in pymoo that replaced MixedVariableMutation
I'm attempting to use pymoo, but I can't seem to find the MixedVariableMutation method. Has it been deprecated? Does anyone know of a possible replacement or alternative?

Richard M
- 5
- 3
0
votes
1 answer
Fetch top N optimal solutions from the pymoo using multi criteria decision making algo TOPSIS
I was trying to get the top n optimal solution sets for a multi objective optimization using pymoo==0.6.0.1 and pymcdm.
First I optimized 5 objectives f1,f2,f3,f4, and f5 to get the result in pymoo. All objectives are to be minimized except f2 which…

MSS
- 3,306
- 1
- 19
- 50
0
votes
1 answer
Implementing a multi-objective optimization problem using pymoo
I am trying to write objective functions and constraints of a multi-objective optimization problem using pymoo. The problem is that I cannot transform the mathematical functions to python.
For a given solution
, one of the objective functions…
0
votes
2 answers
do() missing 2 required positional arguments: 'n_select' and 'n_parents' during Pymoo optimization
I'm trying to find the answer to the multi-objective optimization problem, using the pymoo library. Objective is to find the set of Pareto Fronts with dominance condition, in the risk_cost function. There are also cost_alpha, risk_alpha function, so…

celi
- 13
- 2
0
votes
1 answer
Dynamic Lists as Decision Variables in pymoo
I want to define the problem of parallel machine scheduling in pymoo, i.e. I have given:
n_machines : Integer representing the number of machines.
processing_times : Array where processing_time[i] is the processing time for job i.
release_dates :…

wittn
- 298
- 5
- 16
0
votes
0 answers
How to get the first column of an 1D array that has many sets/dictionaries in each row
I have from pymoo:
variables=all_pop.get("X")
and it gets an output an nd.array that looks like that:
{'x0': 21, 'x1': 52, 'x2': 7}
{'x0': 85, 'x1': 18, 'x2': 4}
{'x0': 15, 'x1': 30, 'x2': 6}
{'x0': 22, 'x1': 58, 'x2': 7}
When I tried to take the…

Patty
- 1
0
votes
0 answers
Pymoo NSGA - 3: "ValueError:Buffer dtype mismatch, expected 'double' but got 'long'"
I've recently started to use pymoo for a university project to optimize production parameters. Before implementing the actual problem, I tried to realize a simple proof of concept using the NSGA-III with more or less random functions/constraints and…

revoX19
- 1
0
votes
0 answers
Python plotting using Pymoo and Pyside6, not able to replot the graph with a highlighted line
I'm attempting to plot a PCP graph from the Pymoo package into a Pyside6 canvas. I've integrated an interactive mouse button that finds the closest line to the button press. However, I seem stuck at updating the plot with the new highlighted line as…

Bram
- 17
- 2
0
votes
0 answers
Pymoo - cannot reshape array, wrong input to solver (matlab to python translation)
I am trying to translate a Matlab code to python, and it includes a multi-objective solver (using gamultiobj in matlab) for which I chose to use the AGEMOEA algorithm in the pymoo-package.
However, my problem is that I can't seem to understand how…

IdaSB
- 3
- 2
0
votes
0 answers
Are constraints defined in pymoo followed by each new iteration?
I'm trying to define a minimization problem in Pymoo as:
def objective_function(nodes):
loss = compute_loss(nodes)
return loss
constraints = [ lambda x: x[1]-x[0],
lambda x: x[2]-x[1],
lambda x: x[3]-x[2]]
xl…

Victor Parra
- 1
- 1
0
votes
2 answers
Python Pymoo - get an import error when copy and paste tutorial code
I am a Python beginner. Trying to follow a getting started tutorial of a multi-objective optimization algoritm https://pymoo.org/getting_started/part_2.html
I have installed pymoo according to the installation instructions:
pip install -U…

Alex
- 1
0
votes
0 answers
pymoo NSGA2 implementation example
I am beginner at python and I'm looking to implement a multi-objective optimization problem using the NSGA2 algorithm in Pymoo.
Here's a description of the problem:
I want to build a logistic regression model using a feature F
(datatype =…

metanoia
- 23
- 3
0
votes
1 answer
Error in plotting pareto front using pyomo in python
I am trying to plot the pareto front for a simplified version of my multi-objective optimization problem (trying to figure out how everything works). I am completely new to this and cannot figure out what the error I am getting means:
TypeError: '>'…

Fatima Mansour
- 77
- 4
0
votes
1 answer
Why is normalised hyper volume (S metric) zero for a rectangle with ref point at the extreme?
Why is normalised hyper volume for this zero?
The Pareto front has two points (415, 110929) and (78, 258337). The reference point is [max(X)+1, max(Y)+1]
The following code in python calculates the normalised hyper volume
X = [415, 78]
Y = [110929,…

dev
- 47
- 6
0
votes
1 answer
What does "eps/indicator" mean in a multi objective optimization task with pymoo?
I am working on a multi objective optimization task and I am writing my termination criterion. The tolerance says when the algorithm is terminated and is based on the eps/indicator value. What is the eps/indicator?
Thanks

InaColada
- 23
- 1
- 3