GA with integer and linear constraints

조회 수: 2 (최근 30일)
siddhesh rane
siddhesh rane 2017년 10월 27일
답변: Alan Weiss 2017년 10월 27일
According to the documentation of global optimization toolbox "ga does not enforce linear constraints when there are integer constraints. Instead, ga incorporates linear constraint violations into the penalty function".
In an optimization problem I am trying to solve if linear constraints are violated, other constraints will return non-real values. How can I tackle this issue?
Simplified version of problem
Objective Function : min a + b
0 <= a <= 10
0 <= b <= 10
Subject to,
a*b - 25*a < 0
theta < 0 (Where theta is function of a and b, and returns non-real value if first constraint is not satisfied)

답변 (2개)

Walter Roberson
Walter Roberson 2017년 10월 27일
For that situation, do not use integer constraints. Instead, use custom population, mutation, and cross-over functions that "just happen" to obey the desired integer constraints.
  댓글 수: 1
siddhesh rane
siddhesh rane 2017년 10월 27일
@Walter: This seems little intimidating as I am a newbie to GA and constraints I am using are fairly complex. I will read more about creating custom population, mutation and crossover. Is there any other solver which is more suitable for these kinds of problems?

댓글을 달려면 로그인하십시오.


Alan Weiss
Alan Weiss 2017년 10월 27일
You can set your returned objective function values to a large value, say 1e100, if the calculation comes back complex or NaN.
Alan Weiss
MATLAB mathematical toolbox documentation

카테고리

Help CenterFile Exchange에서 Direct Search에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by