Hi,
I need to transform a Piecewise Linear Functions in a Convex
Predicate. In attachment there is a tex file with the function and my
transformation in a convex predicate. Using that convex predicate in a
milp, the milp does not found solution. So in attachment there is
my .c file with
Hello Maryam,
you could use the following formulation
set N;
set E{n in N};
display E;
data;
set N:= A B C D E;
set E[A]:= A AB;
set E[B]:= AB BC;
set E[C]:= BC CD;
set E[D]:= CD DE;
set E[E]:= DE;
end;
If you have large data sets consider using the table statement described in
doc\tables.pdf
I am new to glpk and MathProg. I am trying to model a problem in glpk
and solve it. The problem is that I don’t know how should I define the
following :
We have E[i] for each i that is member of N :
N is a set that contains A B C D E,
So, we have E[A], E[B], E[C], E[D], E[E]
The value for