ahmad
ahmad

Reputation: 73

Cplex data element has already set

my Cplex model has this error in data section "data element has already set" but its not set, maybe i could not import data correctly, can anyone help me to solve this problem?

enter image description here

enter image description here

Upvotes: 0

Views: 115

Answers (1)

Alex Fleischer
Alex Fleischer

Reputation: 10062

In your .mod you have not written =...; but = with a value or with a semi-colon.

.mod

int a;

.dat

a=2;

gives the same error but if you change

int a;

into

int a=...;

then it's fine

Upvotes: 0

Related Questions