Scippy

SCIP

Solving Constraint Integer Programs

nlpi_filtersqp_dummy.c
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and library */
4 /* SCIP --- Solving Constraint Integer Programs */
5 /* */
6 /* Copyright (C) 2002-2019 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not visit scip.zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file nlpi_filtersqp_dummy.c
17  * @ingroup NLPIS
18  * @brief dummy filterSQP NLP interface for the case that FilterSQP is not available
19  * @author Stefan Vigerske
20  */
21 
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23 
24 #include "scip/pub_message.h"
25 #include "nlpi/nlpi_filtersqp.h"
26 
27 /** create solver interface for filterSQP solver */
29  BMS_BLKMEM* blkmem, /**< block memory data structure */
30  SCIP_NLPI** nlpi /**< pointer to buffer for nlpi address */
31  )
32 {
33  assert(nlpi != NULL);
34 
35  *nlpi = NULL;
36 
37  return SCIP_OKAY;
38 } /*lint !e715*/
39 
40 /** gets string that identifies filterSQP */
41 const char* SCIPgetSolverNameFilterSQP(void)
42 {
43  return "";
44 }
45 
46 /** gets string that describes filterSQP */
47 const char* SCIPgetSolverDescFilterSQP(void)
48 {
49  return "";
50 }
51 
52 /** returns whether filterSQP is available, i.e., whether it has been linked in */
54 {
55  return FALSE;
56 }
#define NULL
Definition: def.h:246
const char * SCIPgetSolverNameFilterSQP(void)
#define FALSE
Definition: def.h:72
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:53
filterSQP NLP interface
const char * SCIPgetSolverDescFilterSQP(void)
#define SCIP_Bool
Definition: def.h:69
SCIP_RETCODE SCIPcreateNlpSolverFilterSQP(BMS_BLKMEM *blkmem, SCIP_NLPI **nlpi)
SCIP_Bool SCIPisFilterSQPAvailableFilterSQP(void)
public methods for message output
struct BMS_BlkMem BMS_BLKMEM
Definition: memory.h:426