RE: [Help-glpk] call solve statement multiple times

2006-06-19 Thread Gottfried Lindner
Hello,

To my understandig the solve-Statement in the model has no effect.

There is an API call for reading the model, which fills the internal
data structures. For solving the problem there are other API functions
which must be called explicitly afterwords.

Regards
Gottfried Lindner
 
Mail: [EMAIL PROTECTED]
Besuchen Sie unsere Seite:
http://www.informatikfuchs.de/Software/GLPK/LiMath_Optimierung.htm



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
yo yo
Sent: Montag, 19. Juni 2006 00:33
To: help-glpk@gnu.org
Subject: [Help-glpk] call solve statement multiple times

Hello,

In the doc of MathProg language, it is said that we
can't call the solve statement multiple times.
Would it be possible to make it callable multiple
times, so that we can make a revise of the matrix
between the calls? (Like in the mosel language of
XPress).
This would be convenient to easily implement recursive
linearisation algorithms.

Thanks,
Lionel.







___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son
interface révolutionnaire.
http://fr.mail.yahoo.com


___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk




___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


RE: [Help-glpk] call solve statement multiple times

2006-06-19 Thread Meketon, Marc
You can have "display" and "print" statements after the "solve" statement.  
Which means you can display the solution.  So the below first solves the model 
then calls a display statement to show the answer.

... model ...
solve;
display x;


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gottfried Lindner
Sent: Monday, June 19, 2006 05:17
To: help-glpk@gnu.org
Subject: RE: [Help-glpk] call solve statement multiple times

Hello,

To my understandig the solve-Statement in the model has no effect.

There is an API call for reading the model, which fills the internal
data structures. For solving the problem there are other API functions
which must be called explicitly afterwords.

Regards
Gottfried Lindner
 
Mail: [EMAIL PROTECTED]
Besuchen Sie unsere Seite:
http://www.informatikfuchs.de/Software/GLPK/LiMath_Optimierung.htm



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
yo yo
Sent: Montag, 19. Juni 2006 00:33
To: help-glpk@gnu.org
Subject: [Help-glpk] call solve statement multiple times

Hello,

In the doc of MathProg language, it is said that we
can't call the solve statement multiple times.
Would it be possible to make it callable multiple
times, so that we can make a revise of the matrix
between the calls? (Like in the mosel language of
XPress).
This would be convenient to easily implement recursive
linearisation algorithms.

Thanks,
Lionel.







___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son
interface révolutionnaire.
http://fr.mail.yahoo.com


___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk




___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk
 
This e-mail and any attachments may be confidential or legally privileged.  If 
you received this message in error or are not the intended recipient, you 
should destroy the e-mail message and any attachments or copies, and you are 
prohibited from retaining, distributing, disclosing or using any information 
contained herein.  Please inform us of the erroneous delivery by return e-mail. 

Thank you for your cooperation.
 



___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] call solve statement multiple times

2006-06-19 Thread Andrew Makhorin
> To my understandig the solve-Statement in the model has no effect.

The solve statement plays role of a semantic delimiter. Below it all
variables are assigned particular values and therefore may be used in
the same way as parameters.



___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


RE: [Help-glpk] call solve statement multiple times

2006-06-19 Thread Gottfried Lindner

Sorry that I ask once more because I would like to understand it:

Lpx_read_model is the function for reading a model file. The 3.
parameter gives a file, in which output of the display-command is
written. But this function doesn't solve the problem? And all display
output comes as reaction of this call?
So I don't understand the statement in the MathProg manual on page 30:
"The solve statement causes solving the model, ..."

To solve the model I would call e.g. lpx_simplex. But in what way is the
solution then displayed via a display-statement in the model file?

Thank you

Gottfried Lindner
 
Mail: [EMAIL PROTECTED]
Besuchen Sie unsere Homepage: http://www.ublindner.de 


-Original Message-
From: Meketon, Marc [mailto:[EMAIL PROTECTED] 
Sent: Montag, 19. Juni 2006 15:35
To: Gottfried Lindner; help-glpk@gnu.org; yo yo
Subject: RE: [Help-glpk] call solve statement multiple times

You can have "display" and "print" statements after the "solve"
statement.  Which means you can display the solution.  So the below
first solves the model then calls a display statement to show the
answer.

... model ...
solve;
display x;


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Gottfried Lindner
Sent: Monday, June 19, 2006 05:17
To: help-glpk@gnu.org
Subject: RE: [Help-glpk] call solve statement multiple times

Hello,

To my understandig the solve-Statement in the model has no effect.

There is an API call for reading the model, which fills the internal
data structures. For solving the problem there are other API functions
which must be called explicitly afterwords.

Regards
Gottfried Lindner
 
Mail: [EMAIL PROTECTED]
Besuchen Sie unsere Seite:
http://www.informatikfuchs.de/Software/GLPK/LiMath_Optimierung.htm



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
yo yo
Sent: Montag, 19. Juni 2006 00:33
To: help-glpk@gnu.org
Subject: [Help-glpk] call solve statement multiple times

Hello,

In the doc of MathProg language, it is said that we
can't call the solve statement multiple times.
Would it be possible to make it callable multiple
times, so that we can make a revise of the matrix
between the calls? (Like in the mosel language of
XPress).
This would be convenient to easily implement recursive
linearisation algorithms.

Thanks,
Lionel.







___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son
interface révolutionnaire.
http://fr.mail.yahoo.com


___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk




___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk

 
This e-mail and any attachments may be confidential or legally
privileged.  If you received this message in error or are not the
intended recipient, you should destroy the e-mail message and any
attachments or copies, and you are prohibited from retaining,
distributing, disclosing or using any information contained herein.
Please inform us of the erroneous delivery by return e-mail. 

Thank you for your cooperation.

 





___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] call solve statement multiple times

2006-06-19 Thread Andrew Makhorin
> Sorry that I ask once more because I would like to understand it:
> 
> Lpx_read_model is the function for reading a model file. The 3.
> parameter gives a file, in which output of the display-command is
> written. But this function doesn't solve the problem? And all display
> output comes as reaction of this call?
> So I don't understand the statement in the MathProg manual on page 30:
> "The solve statement causes solving the model, ..."
> 
> To solve the model I would call e.g. lpx_simplex. But in what way is the
> solution then displayed via a display-statement in the model file?

You need to make the difference between the language semantics and
a particular implementation. The user who writes a model in MathProg
uses the solve statement to solve his model and obtain a solution;
formally he knows nothing about lpx_read_model. Glpk api in this case
is a metalevel.



___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk