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

Clp newbie needs help #42

Closed
svigerske opened this issue Mar 2, 2019 · 2 comments
Closed

Clp newbie needs help #42

svigerske opened this issue Mar 2, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@svigerske
Copy link
Member

Issue created by migration from Trac.

Original creator: GCRhoads

Original creation time: 2011-03-04 16:35:33

Assignee: somebody

Version:

Hi,

I'm new to Clp and am having trouble figuring out how to use it for my research application. What I want to do is create a very small LP (anywhere from 4 variables with 4 constraints to 12 variables with 12 constraints) and then solve many, many LPs of that size.

I couldn't find any examples of changing a single specific coefficient. How do you change the coefficient in row r, col c, to some new value?

What's the best way to set up an initial small LP of the sizes I'm interested in and then changing the coefficients as necessary?
Note that I won't be reading in the LPs from a file, I'll be setting
them up from within my C++ program (the examples I looked at had the
data read in from a file).

The following is a typical LP that I need to solve. There are 5 variables which I will call v, w, x, y, and z.

Maximize Z
such that
           1.185 w - 0.306 x - 3.156 y - z >= 0
-1.185 v           + 0.758 x - 2.286 y - z >= 0
 0.306 v - 0.758 w           + 0.182 y - z >= 0
 3.156 v + 2.286 w - 0.182 x           - z >= 0
       v       + w       + x       + y      = 1
v,w,x,y >= 0
z unrestricted

If I knew how to set up this LP and how to change specific coefficients of it, then I would know everything I need to for my particular application. I would really appreciate it if somebody would help me out. You can send email to me at
rhoads@cs.rutgers.edu

@svigerske svigerske added component1 enhancement New feature or request labels Mar 2, 2019
@svigerske
Copy link
Member Author

Comment by @LouHafer created at 2011-03-04 16:38:32

Closed. Use the clp mailing list, clp@list.coin-or.org.

@svigerske
Copy link
Member Author

Comment by @LouHafer created at 2011-03-04 16:38:32

Resolution: invalid

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

No branches or pull requests

1 participant