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

  • SEARCH
  • Home
  • 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 6474205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:33:35+00:00 2026-05-25T06:33:35+00:00

I believe that the question Is there a good way to do this type

  • 0

I believe that the question Is there a good way to do this type of mining? could be solved using linear programming techniques. But I am completely new to this and do not know the best way to frame this as a minimization.

Would the following approach be OK?

  • Have a continuous variable for each row and column which is the “length” spanned by all members in that row/column
  • Have a variable for each “point” (each black dot) that indicates whether it is a member of the row or column group
  • Minimize the sum of the first variables

And is there a better way of doing this? Is it possible to somehow frame this as a pure constraint problem (ie without the minimisation)? Do I have my terminology correct? Thanks!

  • 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-05-25T06:33:36+00:00Added an answer on May 25, 2026 at 6:33 am

    Yes, you could definitely use linear programming for this, but it is hard and I think you have to define your problem more precisely. I have too many questions for a comment, I hope you don’t mind I write this as an answer…

    Your points can be either in the “column group” or in the “row group”. From your proposition above, I understand that you know the number of column groups and row groups in advance?

    So you know your groups composition, you just want to find a repartition of the points in those groups in order to minimise the sum of the costs, determined by:

    • The vertical width of the horizontal clusters (c(H) = max (i,j in H) |yi - yj|)
    • The horizontal width of the vertical clusters (c(V) = max (i,j in V) |xi - xj|)

    With H an horizontal cluster, V a vertical cluster, and the total cost will be:

    c(H1) + c(H2) + ... + c(Hn) + c(V1) + c(V2) + ... + c(Vp)
    

    with n (number of horizontal clusters) and p (number of vertical clusters) known in advance. Is this correct?

    For the horizontal groups, you say you can’t have “holes”. I would represent this as a constraint of your problem, if you can quantify the size of the holes. For instance:

    for each i in C, ( min (j in C) |xi - xj|  ) < r
    

    will insure that you don’t have a gap of more than r in the horizontal cluster C. Is this what you want? Is r a fixed number?

    Is this the complete problem, or do you have other constraints (minimal number of points per group, or something)?

    Do you need an exact minimal solution, or a “good” solution would be enough?

    Finally, for the technical part, since your previous post was tagged ‘python’ and this one is not, do you have to use python to solve the model?

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

Sidebar

Related Questions

Premise I believe that there is a way to objectively define "Good" and "Bad"
--EDIT-- I believe this is a valid question that may have multiple answers (as
I believe there is a way to do this, but I'm not familiar with
I was lead to believe that MVC apps were BIN-deployable, so could be deployed
I know there are ways, but is there actually a good way? At the
UPDATE: I recently learned from this question that in the entire discussion below, I
I believe that Agile is nothing but another implementation of Spiral Model. I am
I believe that quantifying the productivity increase (extra working hours) is the most effective
I believe that IDictionary classes works better with sortable objects. I believe also that
I believe that I have successfully impersonated my own user account while running an

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.