GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
type_solver.h File Reference

Detailed Description

type definitions for pricing problem solvers in GCG project

Author
Gerald Gamrath
Christian Puchert

Definition in file type_solver.h.

#include "scip/def.h"
#include "scip/type_scip.h"
#include "gcg/type_gcgcol.h"
#include "gcg/type_pricingstatus.h"

Go to the source code of this file.

Macros

#define GCG_DECL_SOLVERFREE(x)
#define GCG_DECL_SOLVERINIT(x)
#define GCG_DECL_SOLVEREXIT(x)
#define GCG_DECL_SOLVERINITSOL(x)
#define GCG_DECL_SOLVEREXITSOL(x)
#define GCG_DECL_SOLVERUPDATE(x)
#define GCG_DECL_SOLVERSOLVE(x)
#define GCG_DECL_SOLVERSOLVEHEUR(x)

Macro Definition Documentation

◆ GCG_DECL_SOLVERFREE

#define GCG_DECL_SOLVERFREE ( x)
Value:
SCIP_VAR ** x
struct Gcg GCG
Definition type_gcg.h:44
enum SCIP_Retcode SCIP_RETCODE
struct GCG_Solver GCG_SOLVER
Definition type_solver.h:51

destructor of pricing solver to free user data (called when GCG is exiting)

input:

  • gcg : GCG data structure
  • solver : the pricing solver itself

Definition at line 60 of file type_solver.h.

Referenced by GCG_DECL_SOLVERFREE(), GCG_DECL_SOLVERFREE(), GCG_DECL_SOLVERFREE(), GCG_DECL_SOLVERFREE(), GCG_DECL_SOLVERFREE(), GCGpricerIncludeSolver(), GCGpricerIncludeSolver(), and GCGsolverCreate().

◆ GCG_DECL_SOLVERINIT

#define GCG_DECL_SOLVERINIT ( x)
Value:

initialization method of pricing solver (called after problem was transformed and solver is active)

input:

  • gcg : GCG data structure
  • solver : the pricing solver itself

Definition at line 68 of file type_solver.h.

Referenced by GCGpricerIncludeSolver(), GCGpricerIncludeSolver(), and GCGsolverCreate().

◆ GCG_DECL_SOLVEREXIT

#define GCG_DECL_SOLVEREXIT ( x)
Value:

deinitialization method of pricing solver (called before transformed problem is freed and solver is active)

input:

  • gcg : GCG data structure
  • solver : the pricing solver itself

Definition at line 76 of file type_solver.h.

Referenced by GCGpricerIncludeSolver(), GCGpricerIncludeSolver(), and GCGsolverCreate().

◆ GCG_DECL_SOLVERINITSOL

#define GCG_DECL_SOLVERINITSOL ( x)
Value:

solving process initialization method of pricing solver (called when branch and bound process is about to begin)

This method is called when the presolving was finished and the branch and bound process is about to begin. The pricing solver may use this call to initialize its branch and bound specific data.

input:

  • gcg : GCG data structure
  • solver : the pricing solver itself

Definition at line 87 of file type_solver.h.

Referenced by GCG_DECL_SOLVERINITSOL(), GCG_DECL_SOLVERINITSOL(), GCG_DECL_SOLVERINITSOL(), GCG_DECL_SOLVERINITSOL(), GCG_DECL_SOLVERINITSOL(), GCGpricerIncludeSolver(), GCGpricerIncludeSolver(), and GCGsolverCreate().

◆ GCG_DECL_SOLVEREXITSOL

#define GCG_DECL_SOLVEREXITSOL ( x)
Value:

solving process deinitialization method of pricing solver (called before branch and bound process data is freed)

This method is called before the branch and bound process is freed. The pricing solver should use this call to clean up its branch and bound data.

input:

  • gcg : GCG data structure
  • solver : the pricing solver itself

Definition at line 98 of file type_solver.h.

Referenced by GCG_DECL_SOLVEREXITSOL(), GCG_DECL_SOLVEREXITSOL(), GCG_DECL_SOLVEREXITSOL(), GCG_DECL_SOLVEREXITSOL(), GCG_DECL_SOLVEREXITSOL(), GCGpricerIncludeSolver(), GCGpricerIncludeSolver(), and GCGsolverCreate().

◆ GCG_DECL_SOLVERUPDATE

#define GCG_DECL_SOLVERUPDATE ( x)
Value:
SCIP_RETCODE x (GCG* gcg, SCIP* pricingprob, GCG_SOLVER* solver, int probnr, SCIP_Bool varobjschanged, SCIP_Bool varbndschanged, SCIP_Bool consschanged)
#define SCIP_Bool
struct Scip SCIP

update method for pricing solver, used to update solver specific pricing problem data

The pricing solver may use this method to update its own representation of the pricing problem, i.e. to apply changes on variable objectives and bounds and to apply branching constraints

Definition at line 106 of file type_solver.h.

Referenced by GCG_DECL_SOLVERUPDATE(), GCG_DECL_SOLVERUPDATE(), GCG_DECL_SOLVERUPDATE(), GCGpricerIncludeSolver(), GCGpricerIncludeSolver(), and GCGsolverCreate().

◆ GCG_DECL_SOLVERSOLVE

#define GCG_DECL_SOLVERSOLVE ( x)
Value:
SCIP_RETCODE x (GCG* gcg, SCIP* pricingprob, GCG_SOLVER* solver, int probnr, SCIP_Real dualsolconv, SCIP_Real* lowerbound, GCG_PRICINGSTATUS* status)
#define SCIP_Real
enum GCG_PricingStatus GCG_PRICINGSTATUS

solving method for pricing solver which solves the pricing problem to optimality

input:

  • gcg : GCG data structure
  • pricingprob : the pricing problem that should be solved
  • solver : the pricing solver itself
  • probnr : number of the pricing problem
  • dualsolconv : dual solution of the corresponding convexity constraint
  • lowerbound : pointer to store lower bound of pricing problem
  • status : pointer to store the pricing status

Definition at line 120 of file type_solver.h.

Referenced by GCG_DECL_SOLVERSOLVE(), GCG_DECL_SOLVERSOLVE(), GCG_DECL_SOLVERSOLVE(), GCG_DECL_SOLVERSOLVE(), GCG_DECL_SOLVERSOLVE(), GCGpricerIncludeSolver(), GCGpricerIncludeSolver(), and GCGsolverCreate().

◆ GCG_DECL_SOLVERSOLVEHEUR

#define GCG_DECL_SOLVERSOLVEHEUR ( x)
Value:
SCIP_RETCODE x (GCG* gcg, SCIP* pricingprob, GCG_SOLVER* solver, int probnr, SCIP_Real dualsolconv, SCIP_Real* lowerbound, GCG_PRICINGSTATUS* status)

solving method for pricing solver using heuristic pricing only

input:

  • gcg : GCG data structure
  • pricingprob : the pricing problem that should be solved
  • solver : the pricing solver itself
  • probnr : number of the pricing problem
  • dualsolconv : dual solution of the corresponding convexity constraint
  • lowerbound : pointer to store lower bound of pricing problem
  • status : pointer to store the pricing status

Definition at line 134 of file type_solver.h.

Referenced by GCG_DECL_SOLVERSOLVEHEUR(), GCG_DECL_SOLVERSOLVEHEUR(), GCG_DECL_SOLVERSOLVEHEUR(), GCG_DECL_SOLVERSOLVEHEUR(), GCG_DECL_SOLVERSOLVEHEUR(), GCG_DECL_SOLVERSOLVEHEUR(), GCGpricerIncludeSolver(), GCGpricerIncludeSolver(), and GCGsolverCreate().

Typedef Documentation

◆ GCG_SOLVERDATA

solver data

Definition at line 50 of file type_solver.h.

◆ GCG_SOLVER

typedef struct GCG_Solver GCG_SOLVER

the solver

Definition at line 51 of file type_solver.h.