category
linear_programming_commonï
Shared immutable model construction, validation, matrix conversion, result inspection, and printing for linear-programming solvers.
Availability:
logtalk_load(linear_programming(loader))Author: Paulo Moura
Version: 1:0:0
Date: 2026-09-03
Compilation flags:
staticRemarks:
(none)
Inherited public predicates:
 check_option/1  check_options/1  constraint/5  constraints/3  default_option/1  default_options/1  new_problem/1  objective/4  objective_value/2  option/2  option/3  print_problem/1  print_solution/1  problem_from_matrices/8  solve/2  solve/3  statistics/2  status/2  valid_option/1  valid_options/1  variable/4  variable/6  variable_value/3
Public predicatesï
(no local declarations; see entity ancestors if any)
Protected predicatesï
check_problem/1ï
Checks that the argument is a structurally valid linear-program problem.
Compilation flags:
staticTemplate:
check_problem(Problem)Mode and number of proofs:
check_problem(@term) - one_or_errorExceptions:
Problem is a variable:instantiation_errorProblem is not a linear-program problem:type_error(linear_program,Problem)check_result/1ï
Checks that the argument is a structurally valid linear-programming result.
Compilation flags:
staticTemplate:
check_result(Result)Mode and number of proofs:
check_result(@term) - one_or_errorExceptions:
Result is a variable:instantiation_errorResult is not a linear-programming result:type_error(linear_programming_result,Result)relax_problem/2ï
Returns the continuous relaxation of a validated linear-program problem.
Compilation flags:
staticTemplate:
relax_problem(Problem,Relaxation)Mode and number of proofs:
relax_problem(+compound,-compound) - onediscrete_variables/2ï
Returns the integer and binary variable declarations of a validated linear-program problem in declaration order.
Compilation flags:
staticTemplate:
discrete_variables(Problem,Variables)Mode and number of proofs:
discrete_variables(+compound,-list(compound)) - onetighten_variable_bounds/5ï
Returns a copy of a validated problem with the named variable bounds tightened to the given finite bounds.
Compilation flags:
staticTemplate:
tighten_variable_bounds(Name,Lower,Upper,Problem0,Problem)Mode and number of proofs:
tighten_variable_bounds(+term,+number,+number,+compound,-compound) - one_or_errorExceptions:
An argument is insufficiently instantiated:
instantiation_errorProblem0 is not a linear-program problem:type_error(linear_program,Problem0)Name is not a declared variable:domain_error(linear_programming_variable,Name)The bounds are invalid, inconsistent, or weaken the current bounds:
domain_error(linear_programming_bounds,Lower-Upper)Private predicatesï
(no local declarations; see entity ancestors if any)
Operatorsï
(none)