Download User Guide and Reference Manual

Transcript
CORNFLOWER LIBRARY
Table of Contents
PREFACE WELCOME TO CORNFLOWER .................................................................................................................. 3
About this manual .............................................................................................................................................................. 3
How this manual is organized ......................................................................................................................................... 3
Prerequisites ........................................................................................................................................................................ 4
Website ............................................................................................................................................................................... 4
Terms of use ........................................................................................................................................................................ 4
License information.............................................................................................................................................................. 4
Contact .................................................................................................................................................................................. 4
PART 1 CONTEXT-FREE GRAMMAR CONSTRAINTS (CFGC) ............................................................................... 5
Introduction .......................................................................................................................................................................... 6
CFGC Definition ................................................................................................................................................................. 6
CFGC Filtering .................................................................................................................................................................... 6
CFGC Example ................................................................................................................................................................... 6
Incremental Computation .................................................................................................................................................. 8
Efficient CFGC Filtering ............................................................................................................................................... 8
Example .................................................................................................................................................................. 8
How to backtrack? ................................................................................................................................................ 8
Building the Example ....................................................................................................................................................... 11
Ilog Solver Extension ................................................................................................................................................... 11
Download .............................................................................................................................................................. 11
Compilation and Linking ..................................................................................................................................... 11
Implementation ...................................................................................................................................................... 11
Standalone Application .............................................................................................................................................. 13
Download .............................................................................................................................................................. 13
Compilation and Linking ..................................................................................................................................... 13
Implementation ...................................................................................................................................................... 13
Writing a search goal ..................................................................................................................................................... 16
References ......................................................................................................................................................................... 17
Reference Manual ............................................................................................................................................................ 18
PART 2 KNAPSACK CONSTRAINT (KP) .................................................................................................................. 25
KP Definition ..................................................................................................................................................................... 26
KP Filtering ........................................................................................................................................................................ 26
Using KP Library .............................................................................................................................................................. 26
KP Solver ....................................................................................................................................................................... 26
Key Functions ................................................................................................................................................................ 26
Initializing KPF ....................................................................................................................................................... 27
Filtering items and Updating .............................................................................................................................. 29
Bounds and Thresholds
Page 1