Solving Constraint Integer Programs

scip_prob.c File Reference

Detailed Description

public methods for global and local (sub)problems

Tobias Achterberg
Timo Berthold
Gerald Gamrath
Robert Lion Gottwald
Stefan Heinz
Gregor Hendel
Thorsten Koch
Alexander Martin
Marc Pfetsch
Michael Winkler
Kati Wolter

Definition in file scip_prob.c.

#include "blockmemshell/memory.h"
#include "scip/benders.h"
#include "scip/clock.h"
#include "scip/concurrent.h"
#include "scip/conflictstore.h"
#include "scip/cons.h"
#include "scip/debug.h"
#include "scip/lp.h"
#include "scip/pricer.h"
#include "scip/pricestore.h"
#include "scip/primal.h"
#include "scip/prob.h"
#include "scip/pub_cons.h"
#include "scip/pub_event.h"
#include "scip/pub_message.h"
#include "scip/pub_misc.h"
#include "scip/pub_reader.h"
#include "scip/pub_sol.h"
#include "scip/pub_tree.h"
#include "scip/pub_var.h"
#include "scip/reader.h"
#include "scip/reopt.h"
#include "scip/scip_cons.h"
#include "scip/scip_general.h"
#include "scip/scip_mem.h"
#include "scip/scip_numerics.h"
#include "scip/scip_param.h"
#include "scip/scip_prob.h"
#include "scip/scip_randnumgen.h"
#include "scip/scip_sol.h"
#include "scip/scip_solve.h"
#include "scip/scip_solvingstats.h"
#include "scip/scip_timing.h"
#include "scip/scip_var.h"
#include "scip/set.h"
#include "scip/stat.h"
#include "scip/struct_cons.h"
#include "scip/struct_lp.h"
#include "scip/struct_mem.h"
#include "scip/struct_primal.h"
#include "scip/struct_prob.h"
#include "scip/struct_scip.h"
#include "scip/struct_set.h"
#include "scip/struct_stat.h"
#include "scip/struct_var.h"
#include "scip/syncstore.h"
#include "scip/tree.h"
#include <stdio.h>
#include <string.h>

Go to the source code of this file.


SCIP_RETCODE SCIPcreateProb (SCIP *scip, const char *name, SCIP_DECL_PROBDELORIG((*probdelorig)), SCIP_DECL_PROBTRANS((*probtrans)), SCIP_DECL_PROBDELTRANS((*probdeltrans)), SCIP_DECL_PROBINITSOL((*probinitsol)), SCIP_DECL_PROBEXITSOL((*probexitsol)), SCIP_DECL_PROBCOPY((*probcopy)), SCIP_PROBDATA *probdata)
SCIP_RETCODE SCIPcreateProbBasic (SCIP *scip, const char *name)
SCIP_RETCODE SCIPsetProbDelorig (SCIP *scip, SCIP_DECL_PROBDELORIG((*probdelorig)))
SCIP_RETCODE SCIPsetProbTrans (SCIP *scip, SCIP_DECL_PROBTRANS((*probtrans)))
SCIP_RETCODE SCIPsetProbDeltrans (SCIP *scip, SCIP_DECL_PROBDELTRANS((*probdeltrans)))
SCIP_RETCODE SCIPsetProbInitsol (SCIP *scip, SCIP_DECL_PROBINITSOL((*probinitsol)))
SCIP_RETCODE SCIPsetProbExitsol (SCIP *scip, SCIP_DECL_PROBEXITSOL((*probexitsol)))
SCIP_RETCODE SCIPsetProbCopy (SCIP *scip, SCIP_DECL_PROBCOPY((*probcopy)))
SCIP_RETCODE SCIPreadProb (SCIP *scip, const char *filename, const char *extension)
static SCIP_RETCODE writeProblem (SCIP *scip, const char *filename, const char *extension, SCIP_Bool transformed, SCIP_Bool genericnames)
SCIP_RETCODE SCIPwriteOrigProblem (SCIP *scip, const char *filename, const char *extension, SCIP_Bool genericnames)
SCIP_RETCODE SCIPwriteTransProblem (SCIP *scip, const char *filename, const char *extension, SCIP_Bool genericnames)
SCIP_RETCODE SCIPpermuteProb (SCIP *scip, unsigned int randseed, SCIP_Bool permuteconss, SCIP_Bool permutebinvars, SCIP_Bool permuteintvars, SCIP_Bool permuteimplvars, SCIP_Bool permutecontvars)
SCIP_RETCODE SCIPsetProbData (SCIP *scip, SCIP_PROBDATA *probdata)
const char * SCIPgetProbName (SCIP *scip)
SCIP_RETCODE SCIPsetProbName (SCIP *scip, const char *name)
SCIP_RETCODE SCIPchgReoptObjective (SCIP *scip, SCIP_OBJSENSE objsense, SCIP_VAR **vars, SCIP_Real *coefs, int nvars)
SCIP_OBJSENSE SCIPgetObjsense (SCIP *scip)
SCIP_RETCODE SCIPsetObjsense (SCIP *scip, SCIP_OBJSENSE objsense)
SCIP_RETCODE SCIPaddObjoffset (SCIP *scip, SCIP_Real addval)
SCIP_RETCODE SCIPaddOrigObjoffset (SCIP *scip, SCIP_Real addval)
SCIP_Real SCIPgetOrigObjoffset (SCIP *scip)
SCIP_Real SCIPgetOrigObjscale (SCIP *scip)
SCIP_Real SCIPgetTransObjoffset (SCIP *scip)
SCIP_Real SCIPgetTransObjscale (SCIP *scip)
SCIP_RETCODE SCIPsetObjlimit (SCIP *scip, SCIP_Real objlimit)
SCIP_Real SCIPgetObjlimit (SCIP *scip)
SCIP_RETCODE SCIPsetObjIntegral (SCIP *scip)
SCIP_Bool SCIPisObjIntegral (SCIP *scip)
SCIP_Real SCIPgetObjNorm (SCIP *scip)
SCIP_RETCODE SCIPaddPricedVar (SCIP *scip, SCIP_VAR *var, SCIP_Real score)
SCIP_RETCODE SCIPdelVar (SCIP *scip, SCIP_VAR *var, SCIP_Bool *deleted)
SCIP_RETCODE SCIPgetVarsData (SCIP *scip, SCIP_VAR ***vars, int *nvars, int *nbinvars, int *nintvars, int *nimplvars, int *ncontvars)
SCIP_VAR ** SCIPgetVars (SCIP *scip)
int SCIPgetNVars (SCIP *scip)
int SCIPgetNBinVars (SCIP *scip)
int SCIPgetNIntVars (SCIP *scip)
int SCIPgetNImplVars (SCIP *scip)
int SCIPgetNContVars (SCIP *scip)
int SCIPgetNObjVars (SCIP *scip)
SCIP_VAR ** SCIPgetFixedVars (SCIP *scip)
int SCIPgetNFixedVars (SCIP *scip)
SCIP_RETCODE SCIPgetOrigVarsData (SCIP *scip, SCIP_VAR ***vars, int *nvars, int *nbinvars, int *nintvars, int *nimplvars, int *ncontvars)
SCIP_VAR ** SCIPgetOrigVars (SCIP *scip)
int SCIPgetNOrigVars (SCIP *scip)
int SCIPgetNOrigBinVars (SCIP *scip)
int SCIPgetNOrigIntVars (SCIP *scip)
int SCIPgetNOrigImplVars (SCIP *scip)
int SCIPgetNOrigContVars (SCIP *scip)
int SCIPgetNTotalVars (SCIP *scip)
SCIP_RETCODE SCIPgetSolVarsData (SCIP *scip, SCIP_SOL *sol, SCIP_VAR ***vars, int *nvars, int *nbinvars, int *nintvars, int *nimplvars, int *ncontvars)
SCIP_VARSCIPfindVar (SCIP *scip, const char *name)
SCIP_Bool SCIPallVarsInProb (SCIP *scip)
SCIP_CONSSCIPfindOrigCons (SCIP *scip, const char *name)
SCIP_CONSSCIPfindCons (SCIP *scip, const char *name)
int SCIPgetNUpgrConss (SCIP *scip)
int SCIPgetNConss (SCIP *scip)
SCIP_CONS ** SCIPgetConss (SCIP *scip)
int SCIPgetNOrigConss (SCIP *scip)
SCIP_CONS ** SCIPgetOrigConss (SCIP *scip)
int SCIPgetNCheckConss (SCIP *scip)
SCIP_RETCODE SCIPaddConflict (SCIP *scip, SCIP_NODE *node, SCIP_CONS *cons, SCIP_NODE *validnode, SCIP_CONFTYPE conftype, SCIP_Bool iscutoffinvolved)
SCIP_RETCODE SCIPclearConflictStore (SCIP *scip, SCIP_EVENT *event)
SCIP_RETCODE SCIPaddConsNode (SCIP *scip, SCIP_NODE *node, SCIP_CONS *cons, SCIP_NODE *validnode)
SCIP_RETCODE SCIPaddConsLocal (SCIP *scip, SCIP_CONS *cons, SCIP_NODE *validnode)
SCIP_RETCODE SCIPdelConsNode (SCIP *scip, SCIP_NODE *node, SCIP_CONS *cons)
SCIP_RETCODE SCIPdelConsLocal (SCIP *scip, SCIP_CONS *cons)
SCIP_Real SCIPgetLocalOrigEstimate (SCIP *scip)
SCIP_Real SCIPgetLocalTransEstimate (SCIP *scip)
SCIP_Real SCIPgetLocalDualbound (SCIP *scip)
SCIP_Real SCIPgetLocalLowerbound (SCIP *scip)
SCIP_Real SCIPgetNodeDualbound (SCIP *scip, SCIP_NODE *node)
SCIP_Real SCIPgetNodeLowerbound (SCIP *scip, SCIP_NODE *node)
SCIP_RETCODE SCIPupdateLocalDualbound (SCIP *scip, SCIP_Real newbound)
SCIP_RETCODE SCIPupdateLocalLowerbound (SCIP *scip, SCIP_Real newbound)
SCIP_RETCODE SCIPupdateNodeDualbound (SCIP *scip, SCIP_NODE *node, SCIP_Real newbound)
SCIP_RETCODE SCIPupdateNodeLowerbound (SCIP *scip, SCIP_NODE *node, SCIP_Real newbound)
SCIP_RETCODE SCIPchgChildPrio (SCIP *scip, SCIP_NODE *child, SCIP_Real priority)

Function Documentation

◆ writeProblem()

static SCIP_RETCODE writeProblem ( SCIP scip,
const char *  filename,
const char *  extension,
SCIP_Bool  transformed,
SCIP_Bool  genericnames 

write original or transformed problem

scipSCIP data structure
filenameoutput file (or NULL for standard output)
extensionextension of the desired file reader, or NULL if file extension should be used
transformedoutput the transformed problem?
genericnamesusing generic variable and constraint names?

Definition at line 484 of file scip_prob.c.

References BMSduplicateMemoryArray, BMSfreeMemoryArray, Scip::messagehdlr, NULL, SCIP_CALL, SCIP_FILECREATEERROR, SCIP_NOMEMORY, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_WRITEERROR, SCIPerrorMessage, SCIPmessagePrintWarning(), SCIPprintOrigProblem(), SCIPprintSysError(), SCIPprintTransProblem(), and SCIPsplitFilename().

Referenced by SCIPwriteOrigProblem(), and SCIPwriteTransProblem().