[Coin-symphony] bug report, unknown exceptions
Baharev Ali
ali.baharev at gmail.com
Sat Mar 25 14:27:48 EST 2006
COIN_2006Mar23.tgz
Microsoft Visual Studio .NET 2003
SYMPHONY throws unknown exceptions.
I have tried to catch them, they are not CoinError exceptions.
I have modified the main() in main.c, just to catch the exceptions (no
other changes in the original source):
int main(int argc, char **argv)
{
/* Create an OsiSym object */
OsiSymSolverInterface si;
/* Parse the command line */
si.parseCommandLine(argc, argv);
/* Read in the problem */
si.loadProblem();
cerr << endl << "Problem loaded succesfully!" << endl;
try {
/* Find a priori problem bounds */
si.findInitialBounds();
}
catch (CoinError the_error) {
cerr << endl << the_error.message() << endl;
exit(-1);
}
catch (...) {
cerr << endl << "Unknown exception in findInitialBounds()" << endl;
exit(-1);
}
cerr << endl << "Intial bounds found succesfully!" << endl ;
try {
/* Solve the problem */
si.branchAndBound();
}
catch (CoinError the_error) {
cerr << endl << the_error.message() << endl;
exit(-1);
}
catch (...) {
cerr << endl << "Unknown exception in branchAndBound()" << endl;
exit(-1);
}
return(0);
}
-----------------------------------------------------
Case 1.
With pk1.mps, i think i could find the line which throws it:
in file: COIN\SYMPHONY\src\Master\master_wrapper.c
in function: int send_lp_data_u(sym_environment *env, int sender)
line #473: tm->lpp[i]->base = *(env->base);
'symphony.exe': Loaded 'C:\Documents and
Settings\ali\Dokumentumok\Visual Studio
Projects\symphony\Debug\symphony.exe', Symbols loaded.
'symphony.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'symphony.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols
loaded.
First-chance exception at 0x0066258d in symphony.exe: 0xC0000005: Access
violation reading location 0x00000000.
The program '[1788] symphony.exe: Native' has exited with code -1
(0xffffffff).
(Dereferencing a NULL pointer?)
------------------------------------------------------
Case 2.
With qiu.mps, the problem is solved to optimality, and right after that
an exception is thrown:
C:\MIPLIB2003>symphony.exe -F qiu.mps
*******************************************************
* This is SYMPHONY Version 5.1alpha *
* Copyright 2000-2005 Ted Ralphs *
* All Rights Reserved. *
* Distributed under the Common Public License 1.0 *
*******************************************************
SYMPHONY was called with the following arguments:
symphony.exe
-F qiu.mps
Coin0001I At line 1 NAME qiu
Coin0001I At line 2 ROWS
Coin0001I At line 1196 COLUMNS
Coin0001I At line 3071 RHS
Coin0001I At line 3140 BOUNDS
Coin0001I At line 3189 ENDATA
Coin0002I Problem qiu has 1192 rows, 840 columns and 3432 elements
Problem loaded succesfully!
Intial bounds found succesfully!
****** Found Better Feasible Solution !
****** Cost: 170.100603
****** Found Better Feasible Solution !
****** Cost: 65.934484
****** Found Better Feasible Solution !
****** Cost: -36.464017
****** Found Better Feasible Solution !
****** Cost: -110.842037
****** Found Better Feasible Solution !
****** Cost: -115.248257
Current number of candidate nodes: 2269
Current upper bound: -115.25
Current lower bound: -512.33
Current gap percentage: 344.55
Elapsed time: 602
****** Found Better Feasible Solution !
****** Cost: -124.060697
****** Found Better Feasible Solution !
****** Cost: -132.873137
Unknown exception in branchAndBound()
C:\MIPLIB2003>
Please note that the last value (-132.873137) is the optimal solution,
and the exception is thrown right after the value appeared on the screen.
---------------------------------------------------
Please help fixing the problems.
Thanks,
Ali
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MIPLIB2003.TGZ
Type: application/x-compressed
Size: 19762 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/symphony/attachments/20060325/fe149f61/attachment.bin>
More information about the Symphony
mailing list