Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
gathering variable values into matrix for further work
조회 수: 1 (최근 30일)
이전 댓글 표시
What I am working with is an MILP problem, with all inequality constraints. a matrix M(nxn), q(nx1). the problem is to maximize some function f, with constraints 0<=M*y-aq<=1-z where a is in R y(nx1) matrix variables, z (nx1) matrix of variables. I want to gather the resulting local variable values (like 2y1+3y2 ...) into a matrix Aineq. This is where I am struggling. I know i can set symbolic variables and do the resulting multiplications and but I want to collect those values into a matrix to for use in a function to solve the resulting MILP. There are other constraints but if I can solve the top problem all others are similar. I would like to stay away from symbolic values if possible as they chew up memory and really have no value to the imbedded function.
Any help would be greatly appreciated
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!