Borrar filtros
Borrar filtros

How to implement an equality and inequality constraint

2 visualizaciones (últimos 30 días)
I want to implemet a constraint, in GA, given as , where is the decision variable and is a consatnt. Any help woul be appreciated.

Respuesta aceptada

John D'Errico
John D'Errico el 28 de Sept. de 2019
Editada: John D'Errico el 28 de Sept. de 2019
You said both an equality AND an inequality constraint in the subject. But then you showed only the inequality.
The inequality is trivial.
A = ones(1,N);
B = E_Total;
  1 comentario
Saifullah Khalid
Saifullah Khalid el 29 de Sept. de 2019
Thank you very much. Next, I want to generate random data () that follows this constrainst. where is a constant. Can you please help on this.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Genetic Algorithm en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by