Cbc 2.10.12
Loading...
Searching...
No Matches
CbcSolverExpandKnapsack.hpp File Reference

Expanding possibilities of x*y, where x*y are both integers, constructing a knapsack constraint. More...

#include "OsiClpSolverInterface.hpp"
#include "CglStored.hpp"
+ Include dependency graph for CbcSolverExpandKnapsack.hpp:

Go to the source code of this file.

Functions

OsiSolverInterface * expandKnapsack (CoinModel &model, int *whichColumn, int *knapsackStart, int *knapsackRow, int &numberKnapsack, CglStored &stored, int logLevel, int fixedPriority, int SOSPriority, CoinModel &tightenedModel)
 
void afterKnapsack (const CoinModel &coinModel2, const int *whichColumn, const int *knapsackStart, const int *knapsackRow, int numberKnapsack, const double *knapsackSolution, double *solution, int logLevel)
 

Detailed Description

Expanding possibilities of x*y, where x*y are both integers, constructing a knapsack constraint.

Results in a tighter model.

Definition in file CbcSolverExpandKnapsack.hpp.

Function Documentation

◆ expandKnapsack()

OsiSolverInterface * expandKnapsack ( CoinModel & model,
int * whichColumn,
int * knapsackStart,
int * knapsackRow,
int & numberKnapsack,
CglStored & stored,
int logLevel,
int fixedPriority,
int SOSPriority,
CoinModel & tightenedModel )

◆ afterKnapsack()

void afterKnapsack ( const CoinModel & coinModel2,
const int * whichColumn,
const int * knapsackStart,
const int * knapsackRow,
int numberKnapsack,
const double * knapsackSolution,
double * solution,
int logLevel )