Huge Collections of Software Manuals and Knowledgebase

GreatManuals.com
Huge Collections of Software Manuals and Knowledgebase

 
Home Contact Us Request to publish your help manuals Request to remove your help manuals
Introduction
» Linear Programming Library Gipals32
Library Interface
» Library Interface
» Specifying & Updating Variables
» Specifying & Updating Constraints
» Importing LP from MPS file
» Calculating
» Getting Calculation Results
» Calculation Settings
 

Calculation Settings

The following routines control the calculation process and are optional for the most of optimization tasks.

void SetPreprocessor(int Flags)

Function controls the preprocessor’s behavior. It can disable the preprocessing or disable/enable some of checks. There are the following constants available for this:

int prep_Disable = 0x00; // Disable preprocessor
int prep_RemoveFixedVars = 0x01; // Remove all fixed variables
int prep_RemoveEmptyCols = 0x02; // Remove empty columns
int prep_RemoveSingular = 0x04; // Remove singular rows and columns
int prep_RemoveLinearRows = 0x08; // Remove linear-dependent rows
int prep_RemoveLinearCols = 0x10; // Remove linear-dependent columns
int prep_ForcedRows = 0x20; // Remove forced rows

Example 5. Controlling of the preprocessor.

  1. Disable preprocessor: SetPreprocessor(prep_Disable);
  2. Enable removing empty columns only:
    SetPreprocessor(prep_RemoveEmptyCols);
  3. Enable removing all fixed variables and linear-dependent rows only:
    SetPreprocessor(prep_RemoveFixedVars + prep_RemoveLinearRows);
  4. Enable all preprocessor’s checks (default settings):
    SetPreprocessor(prep_RemoveFixedVars + prep_RemoveEmptyCols + prep_RemoveSingular + prep_RemoveLinearRows + prep_RemoveLinearCols + prep_ForcedRows);

void SetTolerances(double Primal, // Primal tolerance double Dual, // Dual tolerance double Optimal // Optimality tolerance
)

Defines the calculation tolerances and therefore controls the accuracy of the solution. Defaults are: Primal=1e-8, Dual=1e-8, Optimal=1e-10.

void SetMaxIterationCount(int Value)

best data recovery software data recovery utilities download group sms
photos unerase photos recovery thumb drive restore
repair flash drive usb data recovery recover usb drive

Function defines the maximum number of iterations (default is 100). If this number is reached but the specified tolerances are not then the calculation stops with calc_Unknown result.

void SetScaling(int Value)

Function disables / enables the constraints matrix scaling for better numerical stability during the calculation.
If Value = 1 then scaling is enabled (default). If Value = 0 then scaling is disabled.

void SetRefinement(int Value)

Function disables / enables the constraints matrix refinement for better numerical stability during the calculation. If Value = 1 then refinement is enabled (default). If Value = 0 then refinement is disabled.

void SetGondzio(int Value)

Function disables / enables the usage of Gondzio correction during the calculation.
If Value = 1 then Gondzio correction is enabled (default).
If Value = 0 then Gondzio correction is disabled.

Home | Contact Us | Request to publish your help manuals | Request to remove your help manuals