필터 지우기
필터 지우기

Optimization Toolbox Defining Constraints

조회 수: 1 (최근 30일)
Azime Beyza Ari
Azime Beyza Ari 2022년 3월 23일
편집: Torsten 2022년 3월 23일
Hello Everyone,
I am using Genetic Algorithm Solver to solve maximization problem. I have several constraints and i looked through the documents and saw that while defining constrants to the solver a matrix and a vector is being used. My constraints are linear inequality constraints but the left sides have a summation operation. So here are my constraints;
Trying to write them in matrixes will be very hard for me since i am very new to matlab. Also, i do not know if they can be written in matrix form.
Any ideas on how can i write them?
thank you in advance,
beyza.

채택된 답변

Torsten
Torsten 2022년 3월 23일
편집: Torsten 2022년 3월 23일
And better use "intlinprog" instead of the "ga" - solver if the above equations define your problem completely.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by