Effacer les filtres
Effacer les filtres

Discrete integers function optimization ?

8 vues (au cours des 30 derniers jours)
hossam eldakroury
hossam eldakroury le 7 Juin 2019
Hi everyone,
I was wondering what is the best method or optimization tool i can use for a optimization of a function which it's variables are discrete integers ?
I already used a metaheuristic method (PSO), so i was wondering if there are other method (mathematically) can be used in such kind of optimization problems ?
The problem include constraints such as a check function to test the feasibility of the solution but it's in other file than the main objective function file.
I already saw a similar question and the answer was using GA optimization tool, but i can't use it since it falls in the same category of heuristic methods which i previously mentioned that i used one of them (PSO).

Réponse acceptée

Walter Roberson
Walter Roberson le 7 Juin 2019
In the situation where all of the variables are discrete values, you can just try all of the possible combinations of values. This might take a while...
In the situation where the function is linear, then you can use https://www.mathworks.com/help/optim/ug/intlinprog.html
In some cases there are analytic approaches that can reduce the search space, if you have the Symbolic Toolbox and do a bunch of programming yourself. You find the derivative and solve for the zeros of that, which gives the locations of the extrema in continuous coordinates. You take the second derivative and substitute the locations into that and look at the sign() of that value in order to determine which kind of extrema you have. This gives you some information that can be used to partition the search space according to which extrema any given point is closest to. Now you can evaluate for all discrete points in the catch basins of the minima in order to find the local minima in discrete terms. By examining the local gradient, you could potentially also eliminate some of the searching.
  6 commentaires
hossam eldakroury
hossam eldakroury le 22 Juin 2019
Really thanks man,
Now i will focus on how to use (intlinprog) and implement my objective function and constraints to build the optimization code.
Usman Bashir Tayab
Usman Bashir Tayab le 15 Fév 2023
Hi Hossam,
Please can you share PSO codes for discrete integers variables. As I need to implement discrete integers variables using PSO for my problem.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by