PIPS-NLP
Macros | Functions | Variables
getAmplFunction.C File Reference
#include <cstdio>
#include <cassert>
#include "getAmplFunction.h"
#include <climits>
#include "asl_pfgh.h"
#include "getstub.h"

Macros

#define asl   cur_ASL
 

Functions

void doubleLexSort_Init (int first[], int n, int second[], double data[], const int ifEqCon)
 
void doubleLexSort_ValOnly (int nzA, double *dataA, int nzC, double *dataC, double *dataJacFull)
 
void ampl_count_sizes_SplitSlack (fint irow[], fint kcol[], int &nx, int &nnzQ, int &my, int &nnzA, int &mz, int &nnzC, const int full_size, int &nnzCL, int &nnzCU, int &nxL, int &nxU, int &nsL, int &nsU)
 
void ampl_get_InitX0 (double *varsX)
 
double ampl_get_Obj (double *varsX)
 
void ampl_get_Cons (double *varsX, double *consEqElt, double *consIneqElt)
 
void ampl_get_ObjGrad (double *varsX, double Objgrad[])
 
void ampl_get_bounds (double xlow[], int nx, char ixlow[], double xupp[], char ixupp[], double b[], int, double clow[], int, char iclow[], double cupp[], char icupp[])
 
int ampl_get_nnz_Hessian_Tri ()
 
void ampl_get_Hessian_Tri (double *varsX, double *Helts, double *Yelts, double *Zelts)
 
void ampl_get_Jac (double *varsX, const int nzA, double *JacAelts, const int nzC, double *JacCelts)
 
void ampl_GetHessianInit (double *varsX, double *Helts, double *Yelts)
 
void ampl_get_matrices (fint irow[], fint kcol[], double elts[], int, int nnzQ, int my, int nnzA, int mz, int nnzC, int irowQ[], int jcolQ[], double dQ[], int irowA[], int jcolA[], double dA[], int irowC[], int jcolC[], double dC[], double *dwrkX, const int full_size)
 
void ampl_write_solution (double *varsX, double *Yelts, double *Zelts)
 
void ampl_free_mapinfo ()
 

Variables

int nobj
 
int hes_obj
 
int hes_con
 
int hes_tri
 
double OW [1]
 
static int * amplRowMap
 
static int * invpRowMap
 
static int * XStatus
 
static int * ConStatus
 
static int * JacAGoffTransMap
 
static int * JacCGoffTransMap
 
static int * dA_goff
 
static int * dC_goff
 
static int * dC_L_goff
 
static int * dC_U_goff
 
static int * dC_UL_goff
 
static int * amplRowMap_CLow
 
static int * amplRowMap_CUp
 
static int * amplRowMap_XLow
 
static int * amplRowMap_XUp
 

Macro Definition Documentation

#define asl   cur_ASL

Function Documentation

void ampl_count_sizes_SplitSlack ( fint  irow[],
fint  kcol[],
int &  nx,
int &  nnzQ,
int &  my,
int &  nnzA,
int &  mz,
int &  nnzC,
const int  full_size,
int &  nnzCL,
int &  nnzCU,
int &  nxL,
int &  nxU,
int &  nsL,
int &  nsU 
)
void ampl_free_mapinfo ( )
void ampl_get_bounds ( double  xlow[],
int  nx,
char  ixlow[],
double  xupp[],
char  ixupp[],
double  b[],
int  ,
double  clow[],
int  ,
char  iclow[],
double  cupp[],
char  icupp[] 
)
void ampl_get_Cons ( double *  varsX,
double *  consEqElt,
double *  consIneqElt 
)
void ampl_get_Hessian_Tri ( double *  varsX,
double *  Helts,
double *  Yelts,
double *  Zelts 
)
void ampl_get_InitX0 ( double *  varsX)
void ampl_get_Jac ( double *  varsX,
const int  nzA,
double *  JacAelts,
const int  nzC,
double *  JacCelts 
)
void ampl_get_matrices ( fint  irow[],
fint  kcol[],
double  elts[],
int  ,
int  nnzQ,
int  my,
int  nnzA,
int  mz,
int  nnzC,
int  irowQ[],
int  jcolQ[],
double  dQ[],
int  irowA[],
int  jcolA[],
double  dA[],
int  irowC[],
int  jcolC[],
double  dC[],
double *  dwrkX,
const int  full_size 
)
int ampl_get_nnz_Hessian_Tri ( )
double ampl_get_Obj ( double *  varsX)
void ampl_get_ObjGrad ( double *  varsX,
double  Objgrad[] 
)
void ampl_GetHessianInit ( double *  varsX,
double *  Helts,
double *  Yelts 
)
void ampl_write_solution ( double *  varsX,
double *  Yelts,
double *  Zelts 
)
void doubleLexSort_Init ( int  first[],
int  n,
int  second[],
double  data[],
const int  ifEqCon 
)
void doubleLexSort_ValOnly ( int  nzA,
double *  dataA,
int  nzC,
double *  dataC,
double *  dataJacFull 
)

Variable Documentation

int* amplRowMap
static
int* amplRowMap_CLow
static
int* amplRowMap_CUp
static
int* amplRowMap_XLow
static
int* amplRowMap_XUp
static
int* ConStatus
static
int * dA_goff
static
int * dC_goff
static
int * dC_L_goff
static
int * dC_U_goff
static
int * dC_UL_goff
static
int hes_con
int hes_obj
int hes_tri
int* invpRowMap
static
int* JacAGoffTransMap
static
int * JacCGoffTransMap
static
int nobj
double OW[1]
int* XStatus
static