Scippy

SCIP

Solving Constraint Integer Programs

nlpi_ipopt_dummy.c File Reference

Detailed Description

dummy Ipopt NLP interface for the case that Ipopt is not available

Author
Stefan Vigerske
Benjamin Müller

This code has been separate from nlpi_ipopt.cpp, so the SCIP build system recognizes it as pure C code, thus the linker does not need to be changed to C++.

Definition in file nlpi_ipopt_dummy.c.

#include "scip/pub_message.h"
#include "nlpi/nlpi_ipopt.h"

Go to the source code of this file.

Macros

#define ENTRY(i, j)   (N * (j) + (i))
 

Functions

SCIP_RETCODE SCIPcreateNlpSolverIpopt (BMS_BLKMEM *blkmem, SCIP_NLPI **nlpi)
 
const char * SCIPgetSolverNameIpopt (void)
 
const char * SCIPgetSolverDescIpopt (void)
 
SCIP_Bool SCIPisIpoptAvailableIpopt (void)
 
void * SCIPgetIpoptApplicationPointerIpopt (SCIP_NLPIPROBLEM *nlpiproblem)
 
void * SCIPgetNlpiOracleIpopt (SCIP_NLPIPROBLEM *nlpiproblem)
 
void SCIPsetModifiedDefaultSettingsIpopt (SCIP_NLPI *nlpi, const char *optionsstring)
 
SCIP_RETCODE LapackDsyev (SCIP_Bool computeeigenvectors, int N, SCIP_Real *a, SCIP_Real *w)
 
static SCIP_RETCODE SCIPsolveLinearProb3 (SCIP_Real *A, SCIP_Real *b, SCIP_Real *x, SCIP_Bool *success)
 
SCIP_RETCODE SCIPsolveLinearProb (int N, SCIP_Real *A, SCIP_Real *b, SCIP_Real *x, SCIP_Bool *success)
 

Macro Definition Documentation

◆ ENTRY

#define ENTRY (   i,
 
)    (N * (j) + (i))

Definition at line 109 of file nlpi_ipopt_dummy.c.

Referenced by SCIPsolveLinearProb(), and SCIPsolveLinearProb3().

Function Documentation

◆ SCIPsolveLinearProb3()

static SCIP_RETCODE SCIPsolveLinearProb3 ( SCIP_Real A,
SCIP_Real b,
SCIP_Real x,
SCIP_Bool success 
)
static
Parameters
Amatrix data on input (size 3*3); filled column-wise
bright hand side vector (size 3)
xbuffer to store solution (size 3)
successpointer to store if the solving routine was successful

Definition at line 113 of file nlpi_ipopt_dummy.c.

References BMScopyMemoryArray, ENTRY, FALSE, NULL, SCIP_OKAY, SCIP_Real, SCIPerrorMessage, and TRUE.

Referenced by SCIPsolveLinearProb().