Originally posted by: SystemAdmin
In the code you sent me I got an exception when you called IloCplex::getValue() because you did not call IloCplex::solve() before.
Can you please post the complete call trace as given by Visual Studio?
Also, you should wrap your code into this
#include <iostream>
try {
// Your code here
...
} catch (IloException& e) {
std::cerr << "IloException: " << e << std::endl;
} catch (std::exception& e) {
std::cerr << "Standard exception: " << e.what() << std::endl;
} catch (...) {
std::cerr << "Some other exception!" << std:.endl;
}
This should give you more information about what went wrong.
#CPLEXOptimizers#DecisionOptimization