有没有办法使用CPLEX ILOG音乐会在C#中初始化二进制变量
整个CPLEX ILOG音乐会API用户的新手在这里试图弄清楚如何实现 a>进入C#代码。
我试图实例化一个变量:
INumExpr[,] x = new INumExpr[vVehicles.Length,rCustomerNodes.Length] ;
INumExpr[,,] y = new INumExpr[vVehicles.Length, rCustomerNodes.Length, rCustomerNodes.Length];
作为初始化决策变量的一种方式,但我也想将Inumexpr作为布尔数组,而我不知道该怎么做?
请帮忙..谢谢:)
A newbie to the the whole CPLEX ILOG Concert API user here who is trying to figure out how to implement this into a C# code.
I have tried to instantiate a variable as this:
INumExpr[,] x = new INumExpr[vVehicles.Length,rCustomerNodes.Length] ;
INumExpr[,,] y = new INumExpr[vVehicles.Length, rCustomerNodes.Length, rCustomerNodes.Length];
As a way to initialise the decision variables as such, but I also want to make the INumExpr as a boolean array and I dont know how to do that?
Please help .. Thanks :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
inumvar [] open = cplex.boolvararray(nblocations);
在示例设施中
INumVar[] open = cplex.BoolVarArray(nbLocations);
In the example Facility.cs in CPLEX_Studio221\cplex\examples\src\cs