help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] abs


From: name name
Subject: [Help-glpk] abs
Date: Sat, 20 Nov 2010 13:29:09 +0100

Hello,

I want to calculate

 

var y,>=0;

 

maximize obj:

abs(1-y);

 

fa:

...

fb:

...

 

solve;

...

data;

...

I get the argument for abs has invalide type, could you tell me how I could do this?

 

Is it possible to solve the maximization probleme several times?

 

something like this

 

 

var y,>=0;

{k in 1 .. 20} :

/* To get the solution for k=1, solution for k=2 ...*/

maximize obj:

abs(1-y);

 

fa:

...

fb:

...

 

solve;

...

data;

...

 

And the last question

How can I compile an model model.mod where the data is in a file model.dat

 

Thank you a lot

Onor


reply via email to

[Prev in Thread] Current Thread [Next in Thread]