slack variables in optimization: a different usage

조회 수: 9 (최근 30일)
RPatel
RPatel 2017년 10월 11일
댓글: RPatel 2017년 10월 27일
Hello, I have an optimisation problem with equalities and inequalities.
A x < b is an inequality, with x,b being a vector.
If the problem is infeasible with b, I want to allow b to change to b*, only enough for the problem to be solved and (b*-b) should be heavily punished. This corresponding cost would be k*ϵ, where k = 10^6 for example. Thus, my slack variable is ϵ = b* - b > 0.
How could I formulate this in matlab? I am using quadprog for optimization.
Thanks,

답변 (1개)

Carl
Carl 2017년 10월 13일
I don't believe this functionality is built into the quadprog function, or for the Optimization Toolbox in general. The closest thing I was able to find was the ConstraintTolerance option:
The documentation page here gives a good explanation of that tolerance value. If your problem cannot be solved with the current value of b, you can try increasing the value of ConstraintTolerance.
  댓글 수: 1
RPatel
RPatel 2017년 10월 27일
Thanks Carl for your response. Please refer to my follow up... 1. An issue with this approach is that if there are multiple agents, corresponding to which I have different values of b, I would ideally like to change the value of the constraint tolerance corresponsing to the agent which causes failure of quadprog. This agent which is the reason behind quadprog returning infeasible is difficult to be found (or is it otherwise?). Thus, If I apply your approach, I will be increasing constraint tolerance for all agents, which is not really what I would want (as this would result into a huge increase in the cost). 2. Do you see this feature being updated/available to the Matlab users in near future?
Thanks :)

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

카테고리

Help CenterFile Exchange에서 Surrogate Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by