Cplex 数据元素已经设置

问题描述 投票:0回答:1

我的 Cplex 模型在数据部分有这个错误“数据元素已经设置”但它没有设置,也许我无法正确导入数据,谁能帮我解决这个问题?

enter image description here

python database optimization cplex opl
1个回答
0
投票

在你的 .mod 中你没有写 =...;但是 = 带有值或带有分号。

.mod

int a;

.数据

a=2;

给出同样的错误但是如果你改变

int a;

进入

int a=...;

那就好了

© www.soinside.com 2019 - 2024. All rights reserved.