Math::LP::Variable - variables used in linear programs
use Math::LP::Variable; # make a variable named x1 my $x1 = new Math::LP::Variable(name => 'x1'); # make an integer variable named x2 my $x2 = new Math::LP::Variable(name => 'x2', is_int => 1); # make a variable named x3 initialized to 3.1415 my $x3 = new Math::LP::Variable(name => 'x3', value => '3.1415');
a string with the name of the variable (required)
a flag indicating whether the variable can only have integer values (optional, defaults to false)
a number representing the value of the variable (optional)
an upper bound to the value, defaults to 1E24
a lower bound to the value, defaults to 0
an integer number holding the index of the variable in the matrix of the LP the variable is used in (optional)
Math::LP::Variable inherits all methods from Math::SimpleVariable, without adding any new methods.
Wim Verhaegen <email@example.com>
Copyright(c) 2000-2001 Wim Verhaegen. All rights reserved. This program is free software; you can redistribute and/or modify it under the same terms as Perl itself.