PIPS-NLP
|
#include <cstdlib>
#include "pipsipmNlp_C_callbacks.h"
#include "NlpGenData.h"
#include "NlpGenVars.h"
#include "NlpGenResiduals.h"
#include "NlpInfoCallBack.h"
#include "FilterIPMSolver.h"
#include "NlpGenSparseWithSolver.h"
#include "cNlpGenSparseNLP.h"
#include "Status.h"
#include "pipsOptions.h"
Classes | |
struct | PipsNlpProblemInfo |
Functions | |
PipsNlpProblem | CreatePipsNlpProblem (int n, int m, double *x_L, double *x_U, double *g_L, double *g_U, int nele_jac, int nele_hess, eval_f_cb eval_f, eval_g_cb eval_g, eval_grad_f_cb eval_grad_f, eval_jac_g_cb eval_jac_g, eval_h_cb eval_h) |
int | PipsNlpSolve (PipsNlpProblem retval, double *obj_val, double *sol_x, UserDataPtr user_data) |
void | FreePipsNlpProblem (PipsNlpProblem pipsnlp_problem) |
PipsNlpProblem CreatePipsNlpProblem | ( | int | n, |
int | m, | ||
double * | x_L, | ||
double * | x_U, | ||
double * | g_L, | ||
double * | g_U, | ||
int | nele_jac, | ||
int | nele_hess, | ||
eval_f_cb | eval_f, | ||
eval_g_cb | eval_g, | ||
eval_grad_f_cb | eval_grad_f, | ||
eval_jac_g_cb | eval_jac_g, | ||
eval_h_cb | eval_h | ||
) |
Pointer to a pips_nlp Problem.
n | Number of variables * |
m | Number of constraints. * |
x_L | Variables lower bounds * |
x_U | Variables upper bounds * |
g_L | Constraints lower bounds * |
g_U | Constraints upper bounds * |
nele_jac | Number of Jacobian non-zeros * |
nele_hess | Number of Hessian non-zeros * |
eval_f | Callback function of objective function * |
eval_g | Callback function of constraint body * |
eval_grad_f | Callback function of objective gradient * |
eval_jac_g | Callback function of constraint Jacobian * |
eval_h | Callback function of Lagrangian Hessian * |
void FreePipsNlpProblem | ( | PipsNlpProblem | pipsnlp_problem | ) |
int PipsNlpSolve | ( | PipsNlpProblem | retval, |
double * | obj_val, | ||
double * | sol_x, | ||
UserDataPtr | user_data | ||
) |
sol_x | Input: initial value; Output: opt solution * |
user_data | Pointer to user data, for the latter use of the callback functions * |