Ignore:
Timestamp:
Dec 24, 2018 11:07:36 AM (4 months ago)
Author:
forrest
Message:

Allow a strategy for initial solve where code analyzes problem and guesses at parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/ClpSolver.cpp

    r2383 r2384  
    135135int CbcOrClpRead_mode = 1;
    136136FILE * CbcOrClpReadCommand = stdin;
     137// Alternative to environment
     138extern char * alternativeEnvironment;
    137139extern int CbcOrClpEnvironmentIndex;
    138140#ifdef CLP_USER_DRIVEN1
     
    29382940                         case CLP_PARAM_ACTION_ENVIRONMENT:
    29392941                              CbcOrClpEnvironmentIndex = 0;
     2942                              break;
     2943                         case CLP_PARAM_ACTION_GUESS:
     2944                              if (goodModels[iModel]) {
     2945                                delete [] alternativeEnvironment;
     2946                                ClpSimplexOther * model2 =
     2947                                  static_cast<ClpSimplexOther *> (models+iModel);
     2948                                alternativeEnvironment =
     2949                                  model2->guess(0);
     2950                                if (alternativeEnvironment)
     2951                                  CbcOrClpEnvironmentIndex = 0;
     2952                                else
     2953                                   std::cout << "** Guess unable to generate commands" << std::endl;
     2954                              } else {
     2955                                   std::cout << "** Guess needs a valid model" << std::endl;
     2956                              }
    29402957                              break;
    29412958                         default:
Note: See TracChangeset for help on using the changeset viewer.