|
|
|
|
|||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Look for help with cplex problem
In my c++ cplex program,after define some constraints,I wrote like
this: if ( !cplex.solve() ) { cout<< "Failed to optimize LP" << end; continue; } else{ cout<<"succeed"<<endl; } But in the end it neither output "Failed to optimize LP" nor output "succeed",what has happened? |
|
#2
|
|||
|
|||
|
Look for help with cplex problem
minben wrote:
In my c++ cplex program,after define some constraints,I wrote like this: > if ( !cplex.solve() ) { cout<< "Failed to optimize LP" << end; continue; } else{ cout<<"succeed"<<endl; } But in the end it neither output "Failed to optimize LP" nor output "succeed",what has happened? Does the program blow up soon after this? If so, try flushing cout; it may have printed one of the messages but then bombed before the message came out. The other thing, of course, is to verify that it made it to the if statement. /Paul |
![]() |
| Viewing: Web Development Archives > FAQs > Research > Look for help with cplex problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|