Class for input problems in SML format to BlockIP.
More...
#include <SMLBlockIP.h>
|
|
| SMLBlockIP () |
| | Constructor.
|
| |
|
| ~SMLBlockIP () |
| | Destructor.
|
| |
|
void | readAmpl (const char *modelFilename, const char *dataFilename) |
| | Load a problem from ampl files.
|
| |
| void | amplToMps (const char *modelFilename, const char *dataFilename, const char *mpsFilename, bool convertToStd=false) |
| | Converts a problem in ampl format to mps format.
|
| |
| void | amplToBlockIPFormat (const char *modelFilename, const char *dataFilename, const char *BlockIPFormatFilename, bool convertToStd=false) |
| | Converts a problem in ampl format to BlockIP format.
|
| |
|
BlockIP * | getBlockIPInterface () |
| | Get BlockIP interface.
|
| |
|
void | printProblem () |
| | Print the whole problem throw standard output.
|
| |
| bool | isNonLinear () |
| | Return true if the objective function is non-linear.
|
| |
| bool | isQuadratic () |
| | Return true if the objective function is quadratic.
|
| |
| const int * | getVarsOrder () |
| | Return the correct order of the variables, ampl change the order.
|
| |
|
| static void | fobjnonlin (int n, double x[], double &fx, double Gx[], double Hx[], void *params) |
| | Function to get objective function information in a point when the objective function is non-linear.
|
| |
Class for input problems in SML format to BlockIP.
| void SMLBlockIP::amplToBlockIPFormat |
( |
const char * |
modelFilename, |
|
|
const char * |
dataFilename, |
|
|
const char * |
BlockIPFormatFilename, |
|
|
bool |
convertToStd = false |
|
) |
| |
Converts a problem in ampl format to BlockIP format.
- Parameters
-
| convertToStd | If true the problem will be written in BlockIP standard form |
| void SMLBlockIP::amplToMps |
( |
const char * |
modelFilename, |
|
|
const char * |
dataFilename, |
|
|
const char * |
mpsFilename, |
|
|
bool |
convertToStd = false |
|
) |
| |
Converts a problem in ampl format to mps format.
- Parameters
-
| convertToStd | If true the problem will be written in BlockIP standard form |
- Note
- The problem contained by BlockIP will be not modified
| void SMLBlockIP::fobjnonlin |
( |
int |
n, |
|
|
double |
x[], |
|
|
double & |
fx, |
|
|
double |
Gx[], |
|
|
double |
Hx[], |
|
|
void * |
params |
|
) |
| |
|
staticprivate |
Function to get objective function information in a point when the objective function is non-linear.
- Parameters
-
| n | Number of variables |
| x | Point |
| fx | Objective function value in x |
| Gx | Gradient in x |
| Hx | Hessian in x |
| params | User parameters to perform objective function calculations |
| const int * SMLBlockIP::getVarsOrder |
( |
| ) |
|
|
inline |
Return the correct order of the variables, ampl change the order.
- Returns
- The correct order of the variables
| bool SMLBlockIP::isNonLinear |
( |
| ) |
|
|
inline |
Return true if the objective function is non-linear.
- Returns
- true if the objective function is non-linear
| bool SMLBlockIP::isQuadratic |
( |
| ) |
|
|
inline |
Return true if the objective function is quadratic.
- Returns
- true if the objective function is quadratic
main blocks
These structures belong to BlockIP after its creation, then they are read-only
The documentation for this class was generated from the following files:
- /home/jcastro2/intpoint/BlockIPPlatform/SMLBlockIP/SMLBlockIP.h
- /home/jcastro2/intpoint/BlockIPPlatform/SMLBlockIP/SMLBlockIP.cpp