Scippy

SCIP

Solving Constraint Integer Programs

nlpi_worhp_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-2022 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 scipopt.org. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file nlpi_worhp_dummy.c
17  * @ingroup DEFPLUGINS_NLPI
18  * @brief dummy WORHP NLP interface
19  * @author Benjamin Mueller
20  *
21  * This file contains dummy implementations of the interface methods for the Worhp interface.
22  * It is used when SCIP is build without Worhp.
23  */
24 
25 #include "scip/nlpi_worhp.h"
26 
27 /** create solver interface for Worhp solver and includes it into SCIP, if Worhp is available */ /*lint -e{715}*/
29  SCIP* scip, /**< SCIP data structure */
30  SCIP_Bool useip /**< TRUE for using Interior Point, FALSE for SQP */
31  )
32 { /*lint --e{715}*/
33  assert(scip != NULL);
34 
35  return SCIP_OKAY;
36 }
37 
38 /** gets string that identifies Worhp (version number) */
39 const char* SCIPgetSolverNameWorhp(void)
40 {
41  return "WORHP";
42 }
43 
44 /** gets string that describes Worhp (version number) */
45 const char* SCIPgetSolverDescWorhp(void)
46 {
47  return "this is WORHP";
48 }
49 
50 /** returns whether Worhp is available, i.e., whether it has been linked in */
52 {
53  return FALSE;
54 }
SCIP_RETCODE SCIPincludeNlpSolverWorhp(SCIP *scip, SCIP_Bool useip)
const char * SCIPgetSolverDescWorhp(void)
#define FALSE
Definition: def.h:87
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:54
#define NULL
Definition: lpi_spx1.cpp:155
Worhp NLP interface.
SCIP_Bool SCIPisWorhpAvailableWorhp(void)
#define SCIP_Bool
Definition: def.h:84
const char * SCIPgetSolverNameWorhp(void)