# How can I solve an error saying"length of lower bound is >length of (x) ignoring extra bounds "in ga multiobj

29 vues (au cours des 30 derniers jours)
metasebia dabi le 3 Juil 2021
Commenté : metasebia dabi le 4 Juil 2021
I am new to Matlab and I have this error length of lower bound is >length of (x) ignoring extra bounds in ga multiobj
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Réponses (1)

Steven Lord le 3 Juil 2021
That was likely a warning (displayed in orange; errors are displayed in red) that the ga function thinks you did something wrong but it knew how to compensate and proceed.
Let's say you were trying to optimize a problem with three parameters, say quantities of three different foods you eat. You want to minimize the amount of calories you take in while having constraints on the amount of sugar, sodium, and various vitamins. You can't eat negative amounts of those three foods so you set lower bounds of [0, 0, 0, 0] on the three foods.
MATLAB knows what the first three 0's in the lower bounds are, but it doesn't know if you accidentally typed an extra 0 or if you meant to optimize a problem with four foods. It assumes the former and just ignores the last 0, but it issues a warning so if you meant the former you can correct the problem formulation..
##### 1 commentaireAfficher -1 commentaires plus anciensMasquer -1 commentaires plus anciens
metasebia dabi le 4 Juil 2021
It worked but the Pareto front that is desplayed only have one single dot how can I be able to fix this

Connectez-vous pour commenter.

### Catégories

En savoir plus sur Particle Swarm dans Help Center et File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by