ssriram1992 / EPECsolve

Code to compute mixed-equilibrium in linear EPECs
https://ssriram1992.github.io/EPECsolve/html/index.html
GNU General Public License v3.0
6 stars 2 forks source link

Inner approximation error #23

Closed ssriram1992 closed 4 years ago

ssriram1992 commented 4 years ago

example.cpp fails when the algorithm is set to inner approximation

Error:Bad size of x_minus_i

  1. To fix the error
  2. To ensure that all exceptions thrown has the name of the namespace::class::function: name printed.
gdragotto commented 4 years ago

fixed in d8720ea

ssriram1992 commented 4 years ago
  1. Is not done yet! For example
    src/LCPtoLP.cpp:336:    throw string("Bad size for Fixes in Game::LCP::LCPasMIP");
    src/LCPtoLP.cpp:1339:    throw string("Bad size of x_minus_i");
    src/LCPtoLP.cpp:1341:    throw string("Bad size of c");

    Perhaps there are more. Please check.

gdragotto commented 4 years ago

How was this generated?

ssriram1992 commented 4 years ago

This is not an instance. Those are lines in the code (along with line number). Suppose I get an error saying "Bad size of c" somewhere, how will I know which function/ which class/which namespace threw that error?

gdragotto commented 4 years ago

Got it :) 8205818 inserts the missing namespaces