ADVERTISEMENT
OmarosaOmarosa
  • USA
  • Agriculture
  • Education
  • Finance
  • Billionaires
  • AI
  • Careers
  • Economy
  • Biography
  • Lists
OmarosaOmarosa
No Result
View All Result
OmarosaOmarosa
No Result
View All Result
Home Wiki

Quadratic Knapsack Problem

An NP-hard optimization model combining linear and quadratic profits under capacity constraints

Nyongesa Sande by Nyongesa Sande
October 31, 2025
in Wiki
Reading Time: 7 mins read
A A
0,1-Simple Lattice
Share on FacebookShare on Twitter

The Quadratic Knapsack Problem (QKP) is an advanced form of the classical knapsack problem that incorporates quadratic terms into its objective function. This allows for modeling of inter-item dependencies, where the selection of one item may increase or decrease the total profit when combined with another. Originally introduced in the 19th century, the QKP remains a central challenge in operations research, combinatorial optimization, and computational complexity.

ADVERTISEMENT

A special case, known as the 0–1 Quadratic Knapsack Problem (0–1 QKP), restricts each item to be either included (1) or excluded (0), forming one of the most studied NP-hard combinatorial optimization problems.


Formal Definition

Given n items, each with an individual profit pᵢ, pairwise profit Pᵢⱼ, and weight wᵢ, the goal is to determine which items to include in the knapsack to maximize total profit without exceeding its capacity W.

Formally: maximize∑i=1npixi+∑i=1n∑j=1,i≠jnPijxixj\text{maximize} \quad \sum_{i=1}^{n} p_i x_i + \sum_{i=1}^{n} \sum_{j=1, i \neq j}^{n} P_{ij} x_i x_jmaximizei=1∑n​pi​xi​+i=1∑n​j=1,i=j∑n​Pij​xi​xj​

subject to: ∑i=1nwixi≤W,xi∈{0,1} for i=1,…,n.\sum_{i=1}^{n} w_i x_i \leq W, \quad x_i \in \{0,1\} \text{ for } i = 1, …, n.i=1∑n​wi​xi​≤W,xi​∈{0,1} for i=1,…,n.

ADVERTISEMENT

Here, xᵢ is a binary decision variable representing whether item i is included. The quadratic term Pᵢⱼxᵢxⱼ captures the additional profit when both items are chosen.


Applications

The quadratic knapsack problem models a wide range of real-world optimization problems across several disciplines:

  • Telecommunication: Site selection for satellite or cellular base stations to maximize traffic coverage.
  • Transportation: Locating airports, railway hubs, and freight terminals to optimize connectivity.
  • Computer Science: Problems in compiler design, VLSI circuit layout, and clique detection.
  • Economics: Modeling investment portfolios and pricing strategies.

Historically, Witzgall discussed the QKP in the context of selecting satellite station sites to optimize global communication efficiency.


Computational Complexity

The QKP and its 0–1 variant are both NP-hard. The decision version (whether a profit of at least V can be achieved within capacity W) is NP-complete, meaning a proposed solution can be verified in polynomial time but no known algorithm can find the solution efficiently.

ADVERTISEMENT

While exact algorithms exist for small instances, practical problems rely on heuristics and approximation methods due to the exponential growth in computational requirements.


Solution Methods

Because the QKP is nonlinear and combinatorial, several algorithmic approaches have been developed to obtain optimal or near-optimal solutions:

1. Brute-Force Search

Enumerates all possible subsets of items, computing total profit and weight for each.

  • Complexity: O(2ⁿn²)
  • Drawback: Impractical for large n due to exponential growth.

2. Linearization Methods

To simplify computation, quadratic terms are replaced with auxiliary linear variables and constraints.

  • Standard Linearization: Introduces variables zᵢⱼ = xᵢxⱼ, creating a linear integer programming form.
  • Glover’s Linearization: More efficient, using fewer auxiliary variables (n instead of n²) and constraints (2n instead of 3n²).

These methods transform the QKP into a mixed-integer linear program (MILP) solvable by commercial solvers like CPLEX or Gurobi.


Convex Quadratic Reformulation

A convex reformulation ensures that any local maximum is also the global maximum. By making the matrix P positive semi-definite (diagonally dominant), the objective becomes concave, allowing optimization using mixed-integer quadratic solvers.

The reformulated objective function is expressed as: pTx+xTPx+∑i=1n(∑j=1,j≠in∣Pij∣)(xi2−xi)p^T x + x^T P x + \sum_{i=1}^{n} \left( \sum_{j=1, j \neq i}^{n} |P_{ij}| \right) (x_i^2 – x_i)pTx+xTPx+i=1∑n​​j=1,j=i∑n​∣Pij​∣​(xi2​−xi​)

This approach leverages the properties of convex optimization to improve computational efficiency.


Heuristic and Approximation Algorithms

Because exact solutions are costly, heuristics provide practical near-optimal solutions:

Greedy Heuristic Algorithm

Proposed by George Dantzig, this approach sorts items by value-to-weight ratio, including items with the highest contribution until capacity is reached. Subsequent pairwise swaps improve the solution iteratively.

  • Complexity: O(2ⁿ) in the worst case.
  • Advantage: Fast and effective for moderately sized problems.

Dynamic Programming Heuristics

Adaptations of dynamic programming can generate approximate lower bounds on optimal profit. Although pseudo-polynomial in time, they require significant memory and are more suitable for small-to-medium-scale problems.

Branch-and-Bound (Quadknap)

Caprara et al. introduced Quadknap, an exact branch-and-bound algorithm using Lagrangian relaxation to compute upper bounds efficiently. Subgradient optimization helps derive stable Lagrange multipliers, improving convergence.
Quadknap can handle up to 400 binary variables, outperforming earlier methods.


Dynamic Programming Algorithm

Define f(m, w) as the maximum profit using the first m items with total weight w. Then: f(m,w)={max⁡[f(m−1,w),f(m−1,w−wm)+pm+∑i=1m−1Pimxi]if wm≤wf(m−1,w)otherwisef(m, w) = \begin{cases} \max \left[ f(m-1, w), f(m-1, w – w_m) + p_m + \sum_{i=1}^{m-1} P_{im}x_i \right] & \text{if } w_m \le w \\ f(m-1, w) & \text{otherwise} \end{cases}f(m,w)={max[f(m−1,w),f(m−1,w−wm​)+pm​+∑i=1m−1​Pim​xi​]f(m−1,w)​if wm​≤wotherwise​

  • Time Complexity: O(Wn²)
  • Space Complexity: O(Wn) in revised implementations

Though not guaranteed to reach the global optimum, this approach provides high-quality solutions.


Research Directions

Current research on the Quadratic Knapsack Problem explores:

  • Efficient heuristics for large-scale real-world applications.
  • Instance generation with predictable difficulty for benchmarking.
  • Hybrid metaheuristics combining genetic algorithms, tabu search, and Lagrangian relaxation.

Most computational studies rely on randomly generated data, such as weights from uniform distributions in [1, 50] and values in [1, 100]. Researchers continue to refine methodologies for generating consistent and realistic test cases.


Conclusion

The Quadratic Knapsack Problem extends the classical knapsack framework into nonlinear optimization, capturing interdependencies among items. Though NP-hard, it remains a cornerstone in operations research and combinatorial optimization, with wide-ranging applications from network design to computational economics. Modern research focuses on scalable algorithms that balance solution accuracy with computational efficiency.

Tags: NP-hardOperations ResearchOptimizationQuadratic Knapsack Problem
ADVERTISEMENT
Previous Post

Logical Matrix

Next Post

Zero–One Law

Related Posts

Wiki

Successor Function in Mathematics

by Nyongesa Sande
8 months ago
0

In mathematics, the successor function is a fundamental operation that sends a natural number to the next one in the...

Read moreDetails
0,1-Simple Lattice
Wiki

Arity

by Nyongesa Sande
8 months ago
0

In logic, mathematics, and computer science, arity refers to the number of arguments or operands a function, operation, or relation...

Read moreDetails
0,1-Simple Lattice
Wiki

Nullary Constructor

by Nyongesa Sande
8 months ago
0

A nullary constructor in computer programming is a constructor that takes no arguments. It is also commonly referred to as...

Read moreDetails
O-Six (Yellowstone Wolf)
Wiki

O-Six (Yellowstone Wolf)

by Nyongesa Sande
8 months ago
0

O-Six (April 2006 – December 6, 2012), also known by her research ID 832F and nicknamed “The 06 Female”, was...

Read moreDetails
0–9 Series (ABC for Kids Compilation)
Wiki

0–9 Series (ABC for Kids Compilation)

by Nyongesa Sande
8 months ago
0

The 0–9 Series is a collection of ten children’s music compilation albums released in 1989 by ABC for Kids and...

Read moreDetails
0-4-0 (Four-Coupled Steam Locomotive)
Wiki

0-4-0 (Four-Coupled Steam Locomotive)

by Nyongesa Sande
8 months ago
0

The 0-4-0 steam locomotive represents one of the simplest and most historically significant wheel arrangements in railway engineering. Under Whyte...

Read moreDetails
Load More
Next Post
0,1-Simple Lattice

Zero–One Law

ADVERTISEMENT
  • About
  • Privacy
  • Terms
  • We Are Hiring
  • DMCA
  • Contact Us
  • Advertise with us

© 2026 Omarosa Inc USA

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In

Add New Playlist

No Result
View All Result
  • 001 FM
  • 560 Power Country
  • 560 Smooth Jazz
  • About
  • Adventist Angels Watchman 90.0 FM
  • Advertise with us
  • Athiani FM 99.2 FM
  • Bahari FM 90.4 FM
  • Baraka FM 95.5 FM
  • Base Radio
  • Bethel Radio
  • Biblia Husema 96.7 FM
  • Blackpen Radio
  • Blitz FM 254
  • Bloom Radio
  • Blue Radio
  • Cambridge Radio
  • Campus Radio Kenya
  • Capital FM 98.4
  • CGTN Radio 91.9 FM
  • Chamgei FM 90.4 FM
  • Choice Radio
  • Classic 105
  • CoELIB Radio
  • Cong’asis FM 107.7 FM
  • Contact Us
  • CountryPride FM
  • Dapstrem Radio
  • DMCA Compliance Notice
  • Doctors Explain FM
  • East Africa Radio 94.7 FM
  • East FM 106.3 FM
  • Egesa FM 103.2 FM
  • Emoo FM 104.2 FM
  • Ereto FM
  • Family Radio 103.9 FM
  • Flamingo Radio
  • Gee Radio
  • Ghetto Radio 89.5 FM
  • Gotchscape Radio
  • Gukena FM 92.2 FM
  • Haki FM
  • Hey Radio Kenya
  • Hip-Hop Daily
  • Hits Radio Kenya
  • Homeboyz Radio
  • HoodRadio Kenya
  • Hope FM
  • Hot 96 FM 96.0 FM
  • Iced Radio
  • Iftiin FM 101.9 FM
  • Images: All Passports in The World
  • Inooro FM 98.9 FM
  • Islando Radio Ke
  • Jesus is Lord Radio 105.3 FM
  • Kalya FM 106.5 FM
  • Kameme FM
  • Kass FM 89.1 FM
  • KBC Coro FM
  • KBC English Service 95.6 FM
  • KBC Mayienga FM 93.5
  • KBC Pwani FM 103.1 FM
  • KBC Radio Taifa 92.9 FM
  • Kigooco FM 98.6 FM
  • Kiss 100 100.3 FM
  • Kwitu FM
  • LionafriQ Radio
  • LIVECITY RADIO Ke
  • Lulu FM 91.0 FM
  • Makinika Radio
  • Masihi Redio Afrika
  • Mayian FM
  • MBA Radio
  • Mbaitu FM 92.5 FM
  • Meru Radio 88.3 FM
  • Milele FM 104.8 FM
  • Mo Radio 88.2 FM
  • Mt Zion Radio KE
  • Mugambo Wa Mugikuyu FM
  • Mulembe FM 97.9 FM
  • Musyi FM 102.2 FM
  • Muuga FM 94.2 FM
  • Mwaki FM
  • Mwangaza Wa Neno Fm
  • Mwangaza Wa Neno FM 89.3 FM
  • Mwatu FM 93.1
  • Nation FM 96.3 FM
  • North Rift Radio
  • NRG Radio 97.1 FM
  • Omoka Radio
  • Online Radio from Kenya – Listen to Kenyan Radio Stations Free
  • Pearl Radio Ke 96.9 FM
  • PlanetFive
  • Portfolio Diversification Tools Guide
  • Power Kenya FM
  • Praise Radio Kenya
  • Privacy Policy for OmarosaOmarosa.com
  • Radio 254
  • Radio 316
  • Radio 47
  • Radio Citizen
  • Radio Daima
  • Radio Halisi
  • Radio Jambo
  • Radio Kaya 93.1 FM
  • Radio Maisha 102.7 FM
  • Radio Maria 107.3 FM
  • Radio Midnimo 90.2 FM
  • Radio Ngamia
  • Radio Ngoma 90.7 FM
  • Radio Rahma 91.5 FM
  • Radio Safari 87.9 FM
  • Radio Safina 90.7 FM
  • Radio Salaam FM 90.7 FM
  • Radio Shahidi 91.7 FM
  • Radio Simba 91.3 FM
  • Radio Waumini 88.3 FM
  • Radio44 Kenya
  • Rafiki-Farm Main Altar
  • Ramogi FM 107.1 FM
  • Relax 103 FM
  • Riri Radio 93.7 FM
  • Sauti ya Pwani FM 94.2 FM
  • Skilled Migration Resource Library: Guides, Tools & Visa Pathways
  • Smash Jam Radio
  • Smooth FM 105.5 FM
  • SoftRadio Station
  • Sound Asia FM 88.0 FM
  • Spice FM 94.4 FM
  • Spring of Worship
  • Star FM 105.9 FM
  • Terms of Use for OmarosaOmarosa.com
  • Tonzi Radio
  • Trace FM 95.3 FM
  • Truth FM 90.7 FM
  • Uiguithanio FM
  • Upward Radio
  • Utheri Radio
  • Varch Radio
  • Vuuka FM 100.4 FM
  • We Are Hiring
  • Your Hub for Insights, Inspiration, and Everything in Between

© 2026 Omarosa Inc USA