Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
1 answer
56 views

I'm using genetic algorithm for knapsack problem and when I wanted to debug it says : int' object is not subscriptable it just pointed this 3 spots in the code and in the end it just said this is the ...
user10422605's user avatar
1 vote
1 answer
88 views

I coded a Genetic Algorithm in Python using the DEAP library to solve a modified TSP problem, where the evaluation function is: def evaluate(self, individual: list[int]) -> float: ...
lovethefrogs's user avatar
0 votes
0 answers
36 views

I am working with machine learning using pytorch. There is some class implementing neural network inherited from nn.Module. Some network structure is implemented. There are different parameters (...
Oleksandr N.'s user avatar
0 votes
0 answers
23 views

The context is the initialization of optimization algorithms (for example, differential evolution), where we generate a random population of vectors that represent the solution's parameters. We are ...
mariolpantunes's user avatar
2 votes
1 answer
118 views

I have a genetic algorithm problem but I'm stuck in local optimum. As you can see in the snippet, it simply can't solve the problem, no matter how many gens or genomes I add to the generation. Code: ...
Adrian's user avatar
  • 39
2 votes
1 answer
110 views

I am trying to allocate Kubernetes pods to nodes using a genetic algorithm, where each pod is assigned to one node. Below is my implementation: from string import ascii_lowercase import numpy as np ...
AndCh's user avatar
  • 339
3 votes
0 answers
102 views

I've successfully built my model and it runs and plots a Pareto front. However, I don't know how to store X* (the optimum value of ALL the decision variables that resulted in the optimum F). My model ...
shayan firouzian's user avatar
1 vote
2 answers
68 views

I'm trying to implement Genetic Algorithm to get from point A to point B by car in python. So it's more like a proof of concept. import sys import math import random POPULATION_SIZE=10 GENE_LENGTH=10 ...
5tack's user avatar
  • 21
1 vote
1 answer
90 views

Is it possible to solve a linear problem using the pulp library to create decision variables and write fitness functions and penalties using the Pypi genetic algorithm library? I have done this, but ...
sina's user avatar
  • 11
2 votes
0 answers
63 views

I'm trying to use an simple genetic algorithm with only one goal, however my problem is kinda of complex. So, I have an initial chromosome that will have to be made up of 2 or more groups that also ...
Isabel Castro's user avatar
1 vote
1 answer
114 views

I am not understanding what will be my fitness function for regression problem.basically i have 1000 datasets with input shape (72,2) and 1000 output dataset (72,4).I want my model to be trained with ...
Sadia Ferdous Snigdha's user avatar
1 vote
0 answers
49 views

I am using matlab's optimization toolbox to find the maximum of a function I am calculating numerically/do not have a closed form for. My two inputs are arrays of binary values, and a genetic ...
Schrodinger1933's user avatar
0 votes
0 answers
358 views

I am trying to develop an algorithm for two dimensional cutting stock problem, but it should also be able to calculate the number of boards to cut from. Here is an example: Base boards are all the ...
Lana's user avatar
  • 9
1 vote
0 answers
73 views

I'm playing with Matlab's Global Optimization Toolbox and learning about genetic algorithms. My goal is to implement an algorithm that can navigate in 2D space, searching for the shortest path from a ...
Tsidia's user avatar
  • 13
2 votes
0 answers
121 views

I'm attempting to build a CNN deep learning model utilizing a genetic algorithm to learn on CIFAR-10. I have so far found a few libraries, but I have mainly encountered pyGAD and some derivatives ...
Divinor's user avatar
  • 77
-1 votes
1 answer
127 views

This is a real world problem that has been solved in the past via thousands of manual iterations. Please forgive my inexperience with stackoverflow and with how to format my question. Dave, I believe ...
QuickBrownFox's user avatar
0 votes
1 answer
66 views

So I am just trying to extra 100 different stocks from YH using yfR and quantmod then calculate the daily returns for these stocks (eventually I will use this data to calculate the mean daily returns ...
Cal's user avatar
  • 11
0 votes
0 answers
86 views

I'm using the geneticalgorithm2 module for minimization. I use mixed variables and my code is similar to the example given by them: import numpy as np from geneticalgorithm2 import geneticalgorithm2 ...
Fish1996's user avatar
  • 567
-1 votes
1 answer
68 views

I started in the last days of 2023 a personal project just for fun - I recreated the classical "Snake Game" (from old Nokia mobiles) in Python and I wanted to integrate it with some Machine ...
Matheus Felipe's user avatar
0 votes
0 answers
506 views

I'm working on a project related to solving the job shop scheduling problem using Tabu search, genetic algorithms, or any suitable algorithm in Python. I've referred to this GitHub repository: https://...
bachphan0201's user avatar
0 votes
0 answers
48 views

If 100 assignment operations m=n are performed in 1 second, then how many operations n^2 and 2^n will be performed in a second? It seems to me that it is necessary to perform an operation that is the ...
PepeChill's user avatar
0 votes
1 answer
277 views

I learning genetic algorithms with DEAP and i want to animate how the best individual changes in each generation. For it i use class Statistics and Multistatistics: stats = tools.Statistics(lambda ind:...
Vya4eslav's user avatar
0 votes
1 answer
835 views

I am need of a help. My code is to maximize the profit and minimize the area, which is the sum of Xs. The X are the áreas, and 4 of them are free to use, and the other 4 have a cost to use, and have ...
Rafael Henrique's user avatar
0 votes
1 answer
158 views

I am trying to optimize a large Excel model using Pymoo, I have set up the problem to communicate with Excel via pyWin32. During debugging in VSCode, I get the following exception: Exception ('Problem ...
JT269's user avatar
  • 3
0 votes
1 answer
479 views

I have a problem with two objectives. The problem is minimized by NSGA-2 algorithm. I run minimize with different population sizes and different termination criterias, but every time the algorithm ...
iammetehan's user avatar

1
2 3 4 5
42