필터 지우기
필터 지우기

Anyone knows whether is possible to perfome an optimization with Global Search using only integer inputs?

조회 수: 1 (최근 30일)
I'd like to perform an optimization using Global Search in Matlab but I dont know how to restrict inputs as integer like Intcon in Genetic Algorithm.
[x,fval,exitflag] = ga(fitnessfcn,nvars,A,b,[],[],... lb,ub,nonlcon, IntCon,options)
The idea is to execute another optimization technique with Global Search but limiting inputs only to integer.
Thanks in advance

채택된 답변

Alan Weiss
Alan Weiss 2015년 12월 3일
The answer is no. GlobalSearch uses fmincon as its local optimizer, and there is no way to restrict fmincon to integer values. Sorry.
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 2
Anusha Lamichhane
Anusha Lamichhane 2022년 3월 8일
Is there any way to make the result variable x in either 0 or 1 in global search?
Torsten
Torsten 2022년 3월 8일
You can make two runs - one with x=0 and one with x=1 - and see which gives the better result.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by