Macros | Functions
unitTest.cpp File Reference
#include <cppad/cppad.hpp>
#include "OSCoinSolver.h"
#include "OSConfig.h"
#include "OSmps2osil.h"
#include "OSResult.h"
#include "OSOption.h"
#include "OSiLReader.h"
#include "OSiLWriter.h"
#include "OSoLReader.h"
#include "OSoLWriter.h"
#include "OSrLReader.h"
#include "OSrLWriter.h"
#include "OSInstance.h"
#include "OSFileUtil.h"
#include "CoinError.hpp"
#include "OSDefaultSolver.h"
#include "OSWSUtil.h"
#include "OSSolverAgent.h"
#include "OShL.h"
#include "OSErrorClass.h"
#include "OSBase64.h"
#include "OSCommonUtil.h"
#include "OSMathUtil.h"
#include <CoinMpsIO.hpp>
#include <CoinPackedMatrix.hpp>
Include dependency graph for unitTest.cpp:

Go to the source code of this file.

Macros

#define DEBUG
 
#define COMPONENT_DEBUG
 

Functions

int main (int argC, char *argV[])
 
double getObjVal (std::string osrl)
 

Macro Definition Documentation

#define DEBUG

Definition at line 104 of file unitTest.cpp.

#define COMPONENT_DEBUG

Definition at line 107 of file unitTest.cpp.

Function Documentation

int main ( int  argC,
char *  argV[] 
)

Test the get() and set() methods

in this part of the unitTest we 1) read an OSoL string from a file 2) create an OSOption object from the string 3) add options to various array-valued elements 4) retrieve pieces of the OSOption object with get() methods 5) insert these pieces into a second OSOption object with set() methods 6) compare the two OSOption objects to make sure they are equal 7) write a new OSoL string from the in-memory OSOption object 8) read the string back again into a third OSOption object 9) compare to the original OSOption object 10) read two more OSoL strings from different files

!!

in this part of the unitTest we 1) read an OSrL string from a file 2) create an OSResult object from the string 3) write a new OSrL string from the in-memory OSResult object 4) read the string back again to make sure nothing was lost in translation

Definition at line 212 of file unitTest.cpp.

double getObjVal ( std::string  osrl)

Definition at line 3199 of file unitTest.cpp.