Scippy

    SCIP

    Solving Constraint Integer Programs

    readargs.h
    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 readargs.h
    26 * @brief read comand line arguments
    27 * @author Marc Pfetsch
    28 */
    29
    30#ifndef __READARGS_H__
    31#define __READARGS_H__
    32
    33#include <scip/scip.h>
    34#include <string.h>
    35
    36/** get problem name
    37 *
    38 * Returns 0 if maxsize is not sufficient and 1 otherwise.
    39 */
    41 const char* filename, /**< file name */
    42 char* probname, /**< name of problem (output) */
    43 int maxsize /**< max length of problem name */
    44 );
    45
    46/** read comand line arguments */
    48 int argc, /**< number of shell parameters */
    49 char** argv, /**< array with shell parameters */
    50 const char** filename, /**< file name from arguments */
    51 const char** settingsname, /**< name of settings file */
    52 SCIP_Real* timelimit, /**< time limit read from arguments */
    53 SCIP_Real* memlimit, /**< memory limit read from arguments */
    54 SCIP_Longint* nodelimit, /**< node limit read from arguments */
    55 int* dispfreq /**< display frequency */
    56 );
    57
    58#endif
    #define SCIP_Longint
    Definition: def.h:141
    #define SCIP_Real
    Definition: def.h:156
    SCIP_RETCODE readArguments(int argc, char **argv, const char **filename, const char **settingsname, SCIP_Real *timelimit, SCIP_Real *memlimit, SCIP_Longint *nodelimit, int *dispfreq)
    Definition: readargs.c:95
    int getProblemName(const char *filename, char *probname, int maxsize)
    Definition: readargs.c:37
    SCIP callable library.
    enum SCIP_Retcode SCIP_RETCODE
    Definition: type_retcode.h:63