# CbcSolverExpandKnapsack.hpp File Reference

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

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

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 |
| ) |  |  |

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines