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!