Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guidence to add user customed pivoting rule #262

Open
dxyzx0 opened this issue Mar 28, 2023 · 2 comments
Open

Guidence to add user customed pivoting rule #262

dxyzx0 opened this issue Mar 28, 2023 · 2 comments

Comments

@dxyzx0
Copy link

dxyzx0 commented Mar 28, 2023

I have several questions:

  1. Is there any guidence to help me implement my own pivoting rule? What methods should be implemented?
  2. What's the relationship between the cpp source files with prefix Abc and Clp?

Thanks a lot!

@jjhforrest
Copy link
Contributor

  1. I am not sure which methods should be implemented. I searched on "dual pivoting algorithms in simplex method" and was not impressed. It should be fairly simple to implement any method. For dual simplex look at ClpDualRowPivot.?pp for the method you need to inherit from and ClpDualRowDantzig.?pp for the simplest implementation and then look at ClpDualRowSteepest.?pp for a more efficient implementation. For primal simplex, you would look at ClpPrimalColumn versions.
  2. I would only look at Clp versions. The Abc versions were a partially successful attempt to parallelize the simplex method which were implemented more than 10 years ago for a conference and not kept up to date (Abc was short for Aboca - "A Bit Of Clp Accelerated" - Aboca actually being a small Italian frazione).

@dxyzx0
Copy link
Author

dxyzx0 commented Mar 28, 2023

Thanks for your quick reply! I'll try to read the ClpDualRowPivot.cpp.

Sorry to bring up other questions:
I'm trying to understand the main function initialSolve since the presolve solving postsolve part are in the function. But it's too long to read and hard to follow what's happening.

  1. There're many do* in the code. What's the meaning of doCrash (or functionality of crash) ?
  2. What does the function initSolve try to do? Could you please divide the code into several parts and explain the functionality?
  3. What's the functionality of ExtraInfo and SpecialOption? How many special options are there?
  4. In the function dual, I didn't see the two phase of simplex. How does CLP solves the lp problem?

Sorry for my unorganized problems and I'm trying to understand how CLP uses simplex to solve problems. Any recommendation for reading the source code of simplex method?

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants