Thanks in advance!FYI, I tried usingbut it won't output the facets in the form of the variables I used to construct the lp formulation. Here, 'x' contains the polytope.Code: Select all
print_constraints($x->FACETS);
Thanks in advance!FYI, I tried usingbut it won't output the facets in the form of the variables I used to construct the lp formulation. Here, 'x' contains the polytope.Code: Select all
print_constraints($x->FACETS);
Code: Select all
$x=lp2poly("input.lp", create_lp => true);
$x->FACETS;
poly2lp($x, $x->LP, false, "output.lp");
Can I please know when should I accept the next release?this will be fixed in the next release.
I have tried this but facets as reflected in the "output.lp" file still aren't in terms of the originally used variables (x#13, x#31... so..on) as in the input file. Is there any other way I can transform these facets into my original variables?For the time being, you would have to enforce the LP type during file import
This will be announced on the News page of this very website.Can I please know when should I accept the next release?
You need to execute more perl magic before calling poly2lp:Is there any other way I can transform these facets into my original variables?
Code: Select all
@names=@{$x->COORDINATE_LABELS};
shift @names;
$x->LP->attach("VARIABLE_NAMES", \@names);