現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
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
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 件のコメント
Itachi
2012 年 9 月 6 日
Thanks, But mixed integer optimization deals with integer values, I want want GA to find the optimum among values like [1.2 , 1.5 , ...]. Is it possible?
Alan Weiss
2012 年 9 月 7 日
There are several ways to make integer ga use discrete values. If you want values that are any decimal value to one point, such as 1.2, 1.5, etc, just make your variable x take integer values, and divide it by 10.
If instead you have some discrete values a(1),...,a(n) that you want to sample, let x take integer values, and use a(x) as your variables. Be sure to bound x between 1 and n. This is an example using that technique.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
Thanks, What should I do if I had linear equality constraints? Because I have to insert coefficients of x in "A". please help me out, thanks in advance.
Alan Weiss
2012 年 9 月 13 日
Alan Weiss
MATLAB mathematical toolbox documentation
I'm very sorry, I meant linear inequality constraints, please help me out.
Alan Weiss
2012 年 9 月 14 日
I'm sorry, I do not understand what you are asking. There is plenty of documentation on including linear inequality constraints. What is it that you are trying to do that you are unable to?
Alan Weiss
MATLAB mathematical toolbox documentation
Itachi
2012 年 9 月 18 日
Hi again, thanks for your answer. As you said earlier I have some discrete values a(1),...,a(n) that I want to sample, x taking integer values, and using a(x) as my variables. But for linear inequality constraints how should I do that?
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
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 件)
カテゴリ
ヘルプ センター および File Exchange で Genetic Algorithm についてさらに検索
製品
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
