Discrete optimization with Genetic Algorithm - help

2 次查看(过去 30 天)
Hi again, I have trouble carrying out this optimization procedure. I know that I should use penalty functions when I have a constrained problem. Does MATLAB implement any penalty? Is there any example on this method?!

采纳的回答

Alan Weiss
Alan Weiss 2012-9-6
The documentation deals with nonlinear inequality constraints. The underlying algorithm for the nonlinear constraint solver uses penalty functions, but you don't have to do anything special, such as write your own penalty.
Alan Weiss
MATLAB mathematical toolbox documentation
  9 个评论
Alan Weiss
Alan Weiss 2012-9-19
Again, I do not understand you. Sorry.
Perhaps you have a linear constraint in the variables a(x). You can write that as a nonlinear inequality constraint.
Perhaps you have a linear constraint in x. You can use the A, b matrices to represent that constraint.
You might mean something else. In that case, feel free to ask again, but I am afraid we are not communicating well.
Alan Weiss
MATLAB mathematical toolbox documentation
Itachi
Itachi 2012-9-20
编辑:Itachi 2012-9-22
Hi again, thank you so much. I had linear inequality constraint in the variables a(x).So by writing them in nonlinear inequality constraint I can fix this.
Best regards,

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by