remindmodel / remind

REMIND - REgional Model of INvestments and Development
Other
91 stars 123 forks source link

For Nash: after infeasibilities continue in debug mode before aborting #1636

Closed dklein-pik closed 3 months ago

dklein-pik commented 3 months ago

Purpose of this PR

For Nash only:

So far, REMIND aborted after the maximum number of consecutive infeasibilities/failures (cm_abortOnConsecFail) was reached in at least one region. Now, it switches from parallel to serial (debug) mode after the maximum number was reached and tries to solve (only the infeasible regions, see #1522). If all regions become magically feasible in the debug mode, it continues in parallel mode. If not, it finally aborts. All this is done within GAMS, not in R, to keep the full information from the previous nash and solver iteration. However, this also means that for the duration of the debug mode, which only runs on one core, the other cores are idle.

Type of change

Checklist:

Further information (optional):