- Main Page
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# /home/coin/SVN-release/OS-2.3.5/ApplicationTemplates/osDip/OSDipParam.h

Go to the documentation of this file.

    00001 //===========================================================================//
    00002 // This file is part of the Decomp Solver Framework.                         //
    00003 //                                                                           //
    00004 // Decomp is distributed under the Common Public License as part of the      //
    00005 // COIN-OR repository (http://www.coin-or.org).                              //
    00006 //                                                                           //
    00007 // Author: Matthew Galati, Lehigh University                                 //
    00008 //                                                                           //
    00009 // Copyright (C) 2002-2007, Lehigh University, Matthew Galati, and Ted Ralphs//
    00010 // All Rights Reserved.                                                      //
    00011 //===========================================================================//
    00012
    00013 #ifndef OSDIPPARAM_H
    00014 #define OSDIPPARAM_H
    00015
    00016 //===========================================================================//
    00017 #include "UtilParameters.h"
    00018
    00019 //===========================================================================//
    00030 //===========================================================================//
    00031 class OSDipParam {
    00032
    00033
    00034
    00035 public:
    00036    int    LogLevel;
    00037    string DataDir;
    00038    string OSiLFile;
    00039    string OSoLFile;
    00040    string solverFactory;
    00041    int    UseNames;  //col/row names for debugging
    00042    int    UseSparse; //create all blocks sparsely
    00043    int    FullModel; //create full model for CPM or direct
    00044    double BestKnownLB;
    00045    double BestKnownUB;
    00046    double ColumnUB; //hack since missing extreme rays
    00047    double ColumnLB; //hack since missing extreme rays
    00048    //=1 if all master-only vars in one block
    00049    //=0 if one block per master-only var
    00050    //int    MasterOnlyOneBlock;
    00051
    00052 public:
    00053    void getSettings(UtilParameters & utilParam){
    00054       static const char * common ="OSDip";
    00055       LogLevel     = utilParam.GetSetting("LogLevel",     3,     common);
    00056       DataDir      = utilParam.GetSetting("DataDir",      "",    common);
    00057       OSiLFile     = utilParam.GetSetting("OSiLFile",     "",    common);
    00058       OSoLFile     = utilParam.GetSetting("OSoLFile",     "",    common);
    00059       solverFactory     = utilParam.GetSetting("solverFactory",     "",    common);
    00060       UseNames     = utilParam.GetSetting("UseNames",       0, common);
    00061       UseSparse    = utilParam.GetSetting("UseSparse",      0, common);
    00062       FullModel    = utilParam.GetSetting("FullModel",      0, common);
    00063       BestKnownLB  = utilParam.GetSetting("BestKnownLB",  -1.e100, common);
    00064       BestKnownUB  = utilParam.GetSetting("BestKnownUB",   1.e100, common);
    00065       ColumnUB     = utilParam.GetSetting("ColumnUB",      1.0,  common);
    00066       ColumnLB     = utilParam.GetSetting("ColumnLB",     0.0,  common);
    00067
    00068    }
    00069
    00070    void dumpSettings(ostream * os = &cout){
    00071       static const char * common = "OSDip";
    00072       (*os) << "\n=====================================================\n"
    00073             << "OSDipParam PARAMETER SETTINGS \n";
    00074       (*os) << common << ": LogLevel          : " << LogLevel         << endl;
    00075       (*os) << common << ": DataDir           : " << DataDir          << endl;
    00076       (*os) << common << ": OSiLFile          : " << OSiLFile         << endl;
    00077       (*os) << common << ": OSoLFile          : " << OSoLFile         << endl;
    00078       (*os) << common << ": solverFactory     : " << solverFactory         << endl;
    00079       (*os) << common << ": UseNames          : " << UseNames         << endl;
    00080       (*os) << common << ": UseSparse         : " << UseSparse        << endl;
    00081       (*os) << common << ": FullModel         : " << FullModel        << endl;
    00082       (*os) << common << ": BestKnownLB       : " << BestKnownLB      << endl;
    00083       (*os) << common << ": BestKnownUB       : " << BestKnownUB      << endl;
    00084       (*os) << common << ": ColumnUB          : " << ColumnUB         << endl;
    00085       (*os) << common << ": ColumnLB          : " << ColumnLB         << endl;
    00086
    00087       (*os) << "\n=====================================================\n";
    00088    }
    00089
    00090 public:
    00091    OSDipParam():
    00092       LogLevel        (3 ),
    00093       DataDir         (""),
    00094       OSiLFile        (""),
    00095       OSoLFile        (""),
    00096       solverFactory        (""),
    00097       UseNames        (0),
    00098       UseSparse       (1),
    00099       FullModel       (0),
    00100       BestKnownLB     (-1.e100),
    00101       BestKnownUB     ( 1.e100),
    00102       ColumnUB        ( 1.0),
    00103       ColumnLB        (0.0)
    00104
    00105 {};
    00106    ~OSDipParam() {};
    00107
    00108 };
    00109
    00110 #endif