Scippy

SCIP

Solving Constraint Integer Programs

nlpi_conopt_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-2025 Zuse Institute Berlin (ZIB) */
7/* */
8/* Licensed under the Apache License, Version 2.0 (the "License"); */
9/* you may not use this file except in compliance with the License. */
10/* You may obtain a copy of the License at */
11/* */
12/* http://www.apache.org/licenses/LICENSE-2.0 */
13/* */
14/* Unless required by applicable law or agreed to in writing, software */
15/* distributed under the License is distributed on an "AS IS" BASIS, */
16/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
17/* See the License for the specific language governing permissions and */
18/* limitations under the License. */
19/* */
20/* You should have received a copy of the Apache-2.0 license */
21/* along with SCIP; see the file LICENSE. If not visit scipopt.org. */
22/* */
23/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
24
25/**@file nlpi_conopt_dummy.c
26 * @ingroup DEFPLUGINS_NLPI
27 * @brief dummy CONOPT NLP interface
28 * @author Ksenia Bestuzheva
29 *
30 * This file contains dummy implementations of the interface methods for the CONOPT interface.
31 * It is used when SCIP is build without CONOPT.
32 */
33
34#include "scip/nlpi_conopt.h"
35
36/** create solver interface for CONOPT solver and includes it into SCIP, if CONOPT is available */ /*lint -e{715}*/
38 SCIP* scip /**< SCIP data structure */
39 )
40{ /*lint --e{715}*/
41 assert(scip != NULL);
42
43 return SCIP_OKAY;
44}
45
46/** gets string that identifies CONOPT */
47const char* SCIPgetSolverNameConopt(void)
48{
49 return "CONOPT";
50}
51
52/** gets string that describes CONOPT */
53const char* SCIPgetSolverDescConopt(void)
54{
55 return "CONOPT not available";
56}
57
58/** returns whether CONOPT is available, i.e., whether it has been linked in */
60{
61 return FALSE;
62}
63
64/** sets the license to be passed to CONOPT's COIDEF_License */
66 SCIP_NLPI* nlpi, /**< CONOPT NLPI */
67 int integer_1, /**< CONOPT_LICENSE_INT_1 */
68 int integer_2, /**< CONOPT_LICENSE_INT_2 */
69 int integer_3, /**< CONOPT_LICENSE_INT_3 */
70 const char* text /**< CONOPT_LICENSE_TEXT */
71 )
72{ } /*lint !e715*/
#define NULL
Definition: def.h:248
#define SCIP_Bool
Definition: def.h:91
#define FALSE
Definition: def.h:94
SCIP_RETCODE SCIPincludeNlpSolverConopt(SCIP *scip)
void SCIPsetLicenseConopt(SCIP_NLPI *nlpi, int integer_1, int integer_2, int integer_3, const char *text)
const char * SCIPgetSolverDescConopt(void)
SCIP_Bool SCIPisConoptAvailableConopt(void)
const char * SCIPgetSolverNameConopt(void)
CONOPT NLP interface.
@ SCIP_OKAY
Definition: type_retcode.h:42
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:63