Originally posted by: SystemAdmin
[anahana said:]
no execption is thrown by either _solver or solver::getMin\Max; in fact, the program compiles, builds, and links properly; however after the MS-DOS prompt window appears, I get the Windows dialog box stating that:
"pdp.exe has encountered a problem and needs to close.
We are sorry for the inconvenience."
This only happens if I declare _solver as Public instead of Private.
Nontheless, I ended up moving the entire method (that needed _solver to be declared as Public) inside Main and used the already defined instances of RoutingSolver and RoutingModel inside Main to access the getMin and getMax methods. It worked smoothly, and I did get the limits I was looking for.
Thanks for the support.
p.s. if you have any idea why I'm getting that dialog box, please let me know.
#CPOptimizer#DecisionOptimization