Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8174557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:29:29+00:00 2026-06-06T22:29:29+00:00

Here is a real-world combinatorial optimization problem. We are given a large set of

  • 0

Here is a real-world combinatorial optimization problem.

We are given a large set of value propositions for a certain product. The value propositions are of different types but each type is independent and adds equal benefit to the overall product. In building the product, we can include any non-negative integer number of “units” of each type. However, after adding the first unit of a certain type, the marginal benefit of additional units of that type continually decreases. In fact, the marginal benefit of a new unit is the inverse of the number of units of that type, after adding the new unit. Our product must have a least one unit of some type, and there is a small correction that we must make to the overall value because of this requirement.

Let T[] be an array representing the number of each type in a certain production run of the product. Then the overall value V is given by (pseudo code):

V = 1
For Each t in T
    V = V * (t + 1)
Next t
V = V - 1 // correction

On cost side, units of the same type have the same cost. But units of different types each have unique, irrational costs. The number of types is large, but we are given an array of type costs C[] that is sorted from smallest to largest. Let’s further assume that the type quantity array T[] is also sorted by cost from smallest to largest. Then the overall cost U is simply the sum of each unit cost:

U = 0
For i = 0, i < NumOfValueTypes
    U = U + T[i] * C[i]
Next i

So far so good. So here is the problem: Given product P with value V and cost U, find the product Q with the cost U' and value V', having the minimal U' such that U' > U, V'/U' > V/U.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T22:29:30+00:00Added an answer on June 6, 2026 at 10:29 pm

    The problem you’ve described is nonlinear integer programming problem because it contains a product of integer variables t. Its feasibility set is not closed because of strict inequalities which can be worked around by using non-strict inequalities and adding a small positive number (epsilon) to the right hand sides. Then the problem can be formulated in AMPL as follows:

    set Types;
    param Costs{Types};      # C
    param GivenProductValue; # V
    param GivenProductCost;  # U
    param Epsilon;
    
    var units{Types} integer >= 0; # T
    var productCost = sum {t in Types} units[t] * Costs[t];
    
    minimize cost: productCost;
    s.t. greaterCost: productCost >= GivenProductCost + Epsilon;
    s.t. greaterValuePerCost:
      prod {t in Types} (units[t] + 1) - 1 >=
        productCost * GivenProductValue / GivenProductCost + Epsilon;
    

    This problem can be solved using a nonlinear integer programming solver such as Couenne.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large set of real-world text that I need to pull words
...before everything, I'm doing this out of curiosity only. Nothing real-world application here, but
Here is a problem from Programming Pearls 2nd edition (Chapter 8.7): Considering a real
Here we have an interesting real-world algorithm requirement involving colors. N Pretty Colors :
What are the worst case consequences (real world scenarios here), if I have an
Here is a contrived example of an xml document. In my real world case,
[This question is motivated by Chapter 9 in Real World Haskell] Here's a simple
It is hard to put this problem into words, but a real world example
Here's a question where my real world programming inexperience shines through. I have a
Who here is using WASP ( http://wasp.sourceforge.net/content/ ) to in real world applications? What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.