PPL C Language Interface 2.0
ppl_MIP_Problem_tag Interface Reference

Types and functions for MIP problems. More...

#include <ppl_c_header.h>

(Note that these are not member symbols.)

int PPL_OPTIMIZATION_MODE_MAXIMIZATION
 Code of the "maximization" optimization mode.
int PPL_OPTIMIZATION_MODE_MINIMIZATION
 Code of the "minimization" optimization mode.
int PPL_MIP_PROBLEM_STATUS_UNFEASIBLE
 Code of the "unfeasible MIP problem" status.
int PPL_MIP_PROBLEM_STATUS_UNBOUNDED
 Code of the "unbounded MIP problem" status.
int PPL_MIP_PROBLEM_STATUS_OPTIMIZED
 Code of the "optimized MIP problem" status.
int PPL_MIP_PROBLEM_CONTROL_PARAMETER_NAME_PRICING
 Code for the MIP problem's "pricing" control parameter name.
int PPL_MIP_PROBLEM_CONTROL_PARAMETER_PRICING_TEXTBOOK
 Code of MIP problem's "textbook" pricing method.
int PPL_MIP_PROBLEM_CONTROL_PARAMETER_PRICING_STEEPEST_EDGE_EXACT
 Code of MIP problem's "exact steepest-edge" pricing method.
int PPL_MIP_PROBLEM_CONTROL_PARAMETER_PRICING_STEEPEST_EDGE_FLOAT
 Code of MIP problem's "float steepest-edge" pricing method.
int ppl_new_MIP_Problem_from_space_dimension (ppl_MIP_Problem_t *pmip, ppl_dimension_type d)
 Builds a trivial MIP problem of dimension d and writes a handle to it at address pmip.
int ppl_new_MIP_Problem (ppl_MIP_Problem_t *pmip, ppl_dimension_type d, ppl_const_Constraint_System_t cs, ppl_const_Linear_Expression_t le, int m)
 Builds a MIP problem of space dimension d having feasible region cs, objective function le and optimization mode m; writes a handle to it at address pmip.
int ppl_new_MIP_Problem_from_MIP_Problem (ppl_MIP_Problem_t *pmip, ppl_const_MIP_Problem_t mip)
 Builds a MIP problem that is a copy of mip; writes a handle for the newly created system at address pmip.
int ppl_assign_MIP_Problem_from_MIP_Problem (ppl_MIP_Problem_t dst, ppl_const_MIP_Problem_t src)
 Assigns a copy of the MIP problem src to dst.
int ppl_delete_MIP_Problem (ppl_const_MIP_Problem_t mip)
 Invalidates the handle mip: this makes sure the corresponding resources will eventually be released.
int ppl_MIP_Problem_space_dimension (ppl_const_MIP_Problem_t mip, ppl_dimension_type *m)
 Writes to m the dimension of the vector space enclosing mip.
int ppl_MIP_Problem_number_of_integer_space_dimensions (ppl_const_MIP_Problem_t mip, ppl_dimension_type *m)
 Writes to m the number of integer space dimensions of mip.
int ppl_MIP_Problem_integer_space_dimensions (ppl_const_MIP_Problem_t mip, ppl_dimension_type ds[])
 Writes in the first positions of the array ds all the integer space dimensions of problem mip. If the array is not big enough to hold all of the integer space dimensions, the behavior is undefined.
int ppl_MIP_Problem_number_of_constraints (ppl_const_MIP_Problem_t mip, ppl_dimension_type *m)
 Writes to m the number of constraints defining the feasible region of mip.
int ppl_MIP_Problem_constraint_at_index (ppl_const_MIP_Problem_t mip, ppl_dimension_type i, ppl_const_Constraint_t *pc)
 Writes at address pc a const handle to the i-th constraint defining the feasible region of the MIP problem mip.
int ppl_MIP_Problem_objective_function (ppl_const_MIP_Problem_t mip, ppl_const_Linear_Expression_t *ple)
 Writes a const handle to the linear expression defining the objective function of the MIP problem mip at address ple.
int ppl_MIP_Problem_optimization_mode (ppl_const_MIP_Problem_t mip)
 Returns the optimization mode of the MIP problem mip.
int ppl_MIP_Problem_OK (ppl_const_MIP_Problem_t mip)
 Returns a positive integer if mip is well formed, i.e., if it satisfies all its implementation invariants; returns 0 and perhaps makes some noise if mip is broken. Useful for debugging purposes.
int ppl_MIP_Problem_clear (ppl_MIP_Problem_t mip)
 Resets the MIP problem to be a trivial problem of space dimension 0.
int ppl_MIP_Problem_add_space_dimensions_and_embed (ppl_MIP_Problem_t mip, ppl_dimension_type d)
 Adds d new dimensions to the space enclosing the MIP problem mip and to mip itself.
int ppl_MIP_Problem_add_to_integer_space_dimensions (ppl_MIP_Problem_t mip, ppl_dimension_type ds[], size_t n)
 Sets the space dimensions that are specified in first n positions of the array ds to be integer dimensions of problem mip. The presence of duplicates in ds is a waste but an innocuous one. Declare these dimensions before inserting strict inequalities that depend on them; see C_MIP_Strict_Constraints.
int ppl_MIP_Problem_add_constraint (ppl_MIP_Problem_t mip, ppl_const_Constraint_t c)
 Modifies the feasible region of the MIP problem mip by adding a copy of the constraint c. A strict inequality must satisfy the integer-support condition in C_MIP_Strict_Constraints and is stored in equivalent closed form. A strict row depending on a continuous coordinate is rejected as an invalid argument. The input constraint is preserved.
int ppl_MIP_Problem_add_constraints (ppl_MIP_Problem_t mip, ppl_const_Constraint_System_t cs)
 Modifies the feasible region of the MIP problem mip by adding a copy of the constraints in cs. Every strict inequality must satisfy the integer-support condition in C_MIP_Strict_Constraints and is stored in equivalent closed form. A strict row depending on a continuous coordinate is rejected as an invalid argument. The input constraint system is preserved.
int ppl_MIP_Problem_set_objective_function (ppl_MIP_Problem_t mip, ppl_const_Linear_Expression_t le)
 Sets the objective function of the MIP problem mip to a copy of le.
int ppl_MIP_Problem_set_optimization_mode (ppl_MIP_Problem_t mip, int mode)
 Sets the optimization mode of the MIP problem mip to mode.
int ppl_MIP_Problem_is_satisfiable (ppl_const_MIP_Problem_t mip)
 Returns a positive integer if mip is satisfiable; returns 0 otherwise.
int ppl_MIP_Problem_solve (ppl_const_MIP_Problem_t mip)
 Solves the MIP problem mip, returning an exit status.
int ppl_MIP_Problem_evaluate_objective_function (ppl_const_MIP_Problem_t mip, ppl_const_Generator_t g, ppl_Coefficient_t num, ppl_Coefficient_t den)
 Evaluates the objective function of mip on point g.
int ppl_MIP_Problem_feasible_point (ppl_const_MIP_Problem_t mip, ppl_const_Generator_t *pg)
 Writes a const handle to a feasible point for the MIP problem mip at address pg.
int ppl_MIP_Problem_optimizing_point (ppl_const_MIP_Problem_t mip, ppl_const_Generator_t *pg)
 Writes a const handle to an optimizing point for the MIP problem mip at address pg.
int ppl_MIP_Problem_optimal_value (ppl_const_MIP_Problem_t mip, ppl_Coefficient_t num, ppl_Coefficient_t den)
 Returns the optimal value for mip.
int ppl_MIP_Problem_get_control_parameter (ppl_const_MIP_Problem_t mip, int name)
 Returns the value of control parameter name in problem mip.
int ppl_MIP_Problem_set_control_parameter (ppl_MIP_Problem_t mip, int value)
 Sets control parameter value in problem mip.
int ppl_MIP_Problem_total_memory_in_bytes (ppl_const_MIP_Problem_t mip, size_t *sz)
 Writes into *sz the size in bytes of the memory occupied by mip.
int ppl_MIP_Problem_external_memory_in_bytes (ppl_const_MIP_Problem_t mip, size_t *sz)
 Writes into *sz the size in bytes of the memory managed by mip.
int ppl_io_print_MIP_Problem (ppl_const_MIP_Problem_t x)
 Prints x to stdout.
int ppl_io_fprint_MIP_Problem (FILE *stream, ppl_const_MIP_Problem_t x)
 Prints x to the given output stream.
int ppl_io_asprint_MIP_Problem (char **strp, ppl_const_MIP_Problem_t x)
 Prints x to a malloc-allocated string, a pointer to which is returned via strp.
int ppl_MIP_Problem_ascii_dump (ppl_const_MIP_Problem_t x, FILE *stream)
 Dumps an ascii representation of x on stream.
int ppl_MIP_Problem_ascii_load (ppl_MIP_Problem_t x, FILE *stream)
 Loads an ascii representation of x from stream.

Detailed Description

Types and functions for MIP problems.

The types and functions for MIP problems provide an interface towards MIP_Problem.

A strict inequality is admitted exactly when every coordinate with a nonzero coefficient has already been declared integer. Unused continuous coordinates do not prevent admission. Admitted strict rows are stored in integer-equivalent closed form: for example, $3x-128>0$ becomes $x\ge43$ when $x$ is integer. Constraint queries expose these stored closed rows. A strict row depending on a continuous coordinate is rejected as an invalid argument.

The constructors taking a dimension and optionally constraints, objective and mode initially leave every coordinate real. To use nonconstant strict constraints, first create a problem with ppl_new_MIP_Problem_from_space_dimension, declare the required integer coordinates with ppl_MIP_Problem_add_to_integer_space_dimensions, then insert the constraints with ppl_MIP_Problem_add_constraint or ppl_MIP_Problem_add_constraints. The copied input constraints are preserved. See Strict Constraints over Integer Coordinates for the native admission and normalization rules.

◆ ppl_new_MIP_Problem_from_space_dimension()

int ppl_new_MIP_Problem_from_space_dimension ( ppl_MIP_Problem_t * pmip,
ppl_dimension_type d )
related

Builds a trivial MIP problem of dimension d and writes a handle to it at address pmip.

Parameters
pmipReceives the newly allocated object handle; release it with the matching deletion function.
dThe requested space dimension.
Returns
Zero on success; a negative error code on failure.

◆ ppl_new_MIP_Problem()

int ppl_new_MIP_Problem ( ppl_MIP_Problem_t * pmip,
ppl_dimension_type d,
ppl_const_Constraint_System_t cs,
ppl_const_Linear_Expression_t le,
int m )
related

Builds a MIP problem of space dimension d having feasible region cs, objective function le and optimization mode m; writes a handle to it at address pmip.

No coordinates are declared integer by this constructor, so any strict rows in cs must be constant. For nonconstant strict constraints, use the construction and declaration order in C_MIP_Strict_Constraints.

Parameters
pmipReceives the newly allocated object handle; release it with the matching deletion function.
dThe requested space dimension.
csThe borrowed handle to the input object.
leThe borrowed handle to the input object.
mThe optimization mode, minimization or maximization.
Returns
Zero on success; a negative error code on failure.

◆ ppl_new_MIP_Problem_from_MIP_Problem()

int ppl_new_MIP_Problem_from_MIP_Problem ( ppl_MIP_Problem_t * pmip,
ppl_const_MIP_Problem_t mip )
related

Builds a MIP problem that is a copy of mip; writes a handle for the newly created system at address pmip.

Parameters
pmipReceives the newly allocated object handle; release it with the matching deletion function.
mipThe borrowed handle to the input object.
Returns
Zero on success; a negative error code on failure.

◆ ppl_assign_MIP_Problem_from_MIP_Problem()

int ppl_assign_MIP_Problem_from_MIP_Problem ( ppl_MIP_Problem_t dst,
ppl_const_MIP_Problem_t src )
related

Assigns a copy of the MIP problem src to dst.

Parameters
dstThe destination object handle.
srcThe source object handle.
Returns
Zero on success; a negative error code on failure.

◆ ppl_delete_MIP_Problem()

int ppl_delete_MIP_Problem ( ppl_const_MIP_Problem_t mip)
related

Invalidates the handle mip: this makes sure the corresponding resources will eventually be released.

Parameters
mipThe borrowed handle to the input object.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_space_dimension()

int ppl_MIP_Problem_space_dimension ( ppl_const_MIP_Problem_t mip,
ppl_dimension_type * m )
related

Writes to m the dimension of the vector space enclosing mip.

Parameters
mipThe borrowed handle to the input object.
mThe number of space dimensions to add.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_number_of_integer_space_dimensions()

int ppl_MIP_Problem_number_of_integer_space_dimensions ( ppl_const_MIP_Problem_t mip,
ppl_dimension_type * m )
related

Writes to m the number of integer space dimensions of mip.

Parameters
mipThe borrowed handle to the input object.
mThe number of space dimensions to add.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_integer_space_dimensions()

int ppl_MIP_Problem_integer_space_dimensions ( ppl_const_MIP_Problem_t mip,
ppl_dimension_type ds[] )
related

Writes in the first positions of the array ds all the integer space dimensions of problem mip. If the array is not big enough to hold all of the integer space dimensions, the behavior is undefined.

Parameters
mipThe borrowed handle to the input object.
dsThe array of selected space-dimension indices.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_number_of_constraints()

int ppl_MIP_Problem_number_of_constraints ( ppl_const_MIP_Problem_t mip,
ppl_dimension_type * m )
related

Writes to m the number of constraints defining the feasible region of mip.

Parameters
mipThe borrowed handle to the input object.
mThe number of space dimensions to add.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_constraint_at_index()

int ppl_MIP_Problem_constraint_at_index ( ppl_const_MIP_Problem_t mip,
ppl_dimension_type i,
ppl_const_Constraint_t * pc )
related

Writes at address pc a const handle to the i-th constraint defining the feasible region of the MIP problem mip.

For an admitted strict inequality, this is the stored integer-equivalent closed row.

The index must be smaller than the number of constraints in mip. The non-null result is borrowed from mip and must not be modified or deleted; see Borrowed MIP Problem Data for invalidation rules. On failure, *pc is unchanged.

Parameters
mipThe borrowed handle to the input object.
iThe index of the selected element or space dimension.
pcThe borrowed handle to the input object.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_objective_function()

int ppl_MIP_Problem_objective_function ( ppl_const_MIP_Problem_t mip,
ppl_const_Linear_Expression_t * ple )
related

Writes a const handle to the linear expression defining the objective function of the MIP problem mip at address ple.

The non-null result is borrowed from mip and must not be modified or deleted; see Borrowed MIP Problem Data for invalidation rules. On failure, *ple is unchanged.

Parameters
mipThe borrowed handle to the input object.
pleThe borrowed handle to the input object.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_optimization_mode()

int ppl_MIP_Problem_optimization_mode ( ppl_const_MIP_Problem_t mip)
related

Returns the optimization mode of the MIP problem mip.

Parameters
mipThe borrowed handle to the input object.
Returns
The optimization mode of the MIP problem mip.

◆ ppl_MIP_Problem_OK()

int ppl_MIP_Problem_OK ( ppl_const_MIP_Problem_t mip)
related

Returns a positive integer if mip is well formed, i.e., if it satisfies all its implementation invariants; returns 0 and perhaps makes some noise if mip is broken. Useful for debugging purposes.

Parameters
mipThe borrowed handle to the input object.
Returns
A positive integer if mip is well formed, i.e., if it satisfies all its implementation invariants; returns 0 and perhaps makes some noise if mip is broken. Useful for debugging purposes.

◆ ppl_MIP_Problem_clear()

int ppl_MIP_Problem_clear ( ppl_MIP_Problem_t mip)
related

Resets the MIP problem to be a trivial problem of space dimension 0.

Parameters
mipThe mixed-integer programming problem to solve.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_add_space_dimensions_and_embed()

int ppl_MIP_Problem_add_space_dimensions_and_embed ( ppl_MIP_Problem_t mip,
ppl_dimension_type d )
related

Adds d new dimensions to the space enclosing the MIP problem mip and to mip itself.

Parameters
mipThe mixed-integer programming problem to solve.
dThe requested space dimension.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_add_to_integer_space_dimensions()

int ppl_MIP_Problem_add_to_integer_space_dimensions ( ppl_MIP_Problem_t mip,
ppl_dimension_type ds[],
size_t n )
related

Sets the space dimensions that are specified in first n positions of the array ds to be integer dimensions of problem mip. The presence of duplicates in ds is a waste but an innocuous one. Declare these dimensions before inserting strict inequalities that depend on them; see C_MIP_Strict_Constraints.

Parameters
mipThe mixed-integer programming problem to solve.
dsThe array of selected space-dimension indices.
nThe number of elements or space dimensions selected by the operation.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_add_constraint()

int ppl_MIP_Problem_add_constraint ( ppl_MIP_Problem_t mip,
ppl_const_Constraint_t c )
related

Modifies the feasible region of the MIP problem mip by adding a copy of the constraint c. A strict inequality must satisfy the integer-support condition in C_MIP_Strict_Constraints and is stored in equivalent closed form. A strict row depending on a continuous coordinate is rejected as an invalid argument. The input constraint is preserved.

Parameters
mipThe mixed-integer programming problem to solve.
cThe borrowed handle to the input object.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_add_constraints()

int ppl_MIP_Problem_add_constraints ( ppl_MIP_Problem_t mip,
ppl_const_Constraint_System_t cs )
related

Modifies the feasible region of the MIP problem mip by adding a copy of the constraints in cs. Every strict inequality must satisfy the integer-support condition in C_MIP_Strict_Constraints and is stored in equivalent closed form. A strict row depending on a continuous coordinate is rejected as an invalid argument. The input constraint system is preserved.

Parameters
mipThe mixed-integer programming problem to solve.
csThe borrowed handle to the input object.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_set_objective_function()

int ppl_MIP_Problem_set_objective_function ( ppl_MIP_Problem_t mip,
ppl_const_Linear_Expression_t le )
related

Sets the objective function of the MIP problem mip to a copy of le.

Parameters
mipThe mixed-integer programming problem to solve.
leThe borrowed handle to the input object.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_set_optimization_mode()

int ppl_MIP_Problem_set_optimization_mode ( ppl_MIP_Problem_t mip,
int mode )
related

Sets the optimization mode of the MIP problem mip to mode.

Parameters
mipThe mixed-integer programming problem to solve.
modeThe operation or rounding mode to select.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_is_satisfiable()

int ppl_MIP_Problem_is_satisfiable ( ppl_const_MIP_Problem_t mip)
related

Returns a positive integer if mip is satisfiable; returns 0 otherwise.

Parameters
mipThe borrowed handle to the input object.
Returns
A positive integer if mip is satisfiable; returns 0 otherwise.

◆ ppl_MIP_Problem_solve()

int ppl_MIP_Problem_solve ( ppl_const_MIP_Problem_t mip)
related

Solves the MIP problem mip, returning an exit status.

Returns
PPL_MIP_PROBLEM_STATUS_UNFEASIBLE if the MIP problem is not satisfiable; PPL_MIP_PROBLEM_STATUS_UNBOUNDED if the MIP problem is satisfiable but there is no finite bound to the value of the objective function; PPL_MIP_PROBLEM_STATUS_OPTIMIZED if the MIP problem admits an optimal solution.
Parameters
mipThe borrowed handle to the input object.

◆ ppl_MIP_Problem_evaluate_objective_function()

int ppl_MIP_Problem_evaluate_objective_function ( ppl_const_MIP_Problem_t mip,
ppl_const_Generator_t g,
ppl_Coefficient_t num,
ppl_Coefficient_t den )
related

Evaluates the objective function of mip on point g.

Parameters
mipThe MIP problem defining the objective function;
gThe generator on which the objective function will be evaluated;
numWill be assigned the numerator of the objective function value;
denWill be assigned the denominator of the objective function value;
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_feasible_point()

int ppl_MIP_Problem_feasible_point ( ppl_const_MIP_Problem_t mip,
ppl_const_Generator_t * pg )
related

Writes a const handle to a feasible point for the MIP problem mip at address pg.

The non-null result is borrowed from mip and must not be modified or deleted. Further solution-computing calls may invalidate it, even if mip is const; see Borrowed MIP Problem Data. If no feasible point exists, an error is returned. On failure, *pg is unchanged.

Parameters
mipThe borrowed handle to the input object.
pgWritable address for the borrowed point handle.
Returns
Zero on success or a negative error code on failure.

◆ ppl_MIP_Problem_optimizing_point()

int ppl_MIP_Problem_optimizing_point ( ppl_const_MIP_Problem_t mip,
ppl_const_Generator_t * pg )
related

Writes a const handle to an optimizing point for the MIP problem mip at address pg.

The non-null result is borrowed from mip and must not be modified or deleted. Further solution-computing calls may invalidate it, even if mip is const; see Borrowed MIP Problem Data. If no optimizing point exists, an error is returned. On failure, *pg is unchanged.

Parameters
mipThe borrowed handle to the input object.
pgWritable address for the borrowed point handle.
Returns
Zero on success or a negative error code on failure.

◆ ppl_MIP_Problem_optimal_value()

int ppl_MIP_Problem_optimal_value ( ppl_const_MIP_Problem_t mip,
ppl_Coefficient_t num,
ppl_Coefficient_t den )
related

Returns the optimal value for mip.

Parameters
mipThe MIP problem;
numWill be assigned the numerator of the optimal value;
denWill be assigned the denominator of the optimal value.
Returns
Zero on success or a negative error code on failure.

◆ ppl_MIP_Problem_get_control_parameter()

int ppl_MIP_Problem_get_control_parameter ( ppl_const_MIP_Problem_t mip,
int name )
related

Returns the value of control parameter name in problem mip.

Parameters
mipThe borrowed handle to the input object.
nameThe name used in the diagnostic or textual representation.
Returns
The value of control parameter name in problem mip.

◆ ppl_MIP_Problem_set_control_parameter()

int ppl_MIP_Problem_set_control_parameter ( ppl_MIP_Problem_t mip,
int value )
related

Sets control parameter value in problem mip.

Parameters
mipThe mixed-integer programming problem to solve.
valueThe value to assign or inspect.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_total_memory_in_bytes()

int ppl_MIP_Problem_total_memory_in_bytes ( ppl_const_MIP_Problem_t mip,
size_t * sz )
related

Writes into *sz the size in bytes of the memory occupied by mip.

Parameters
mipThe borrowed handle to the input object.
szReceives the value computed by the operation.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_external_memory_in_bytes()

int ppl_MIP_Problem_external_memory_in_bytes ( ppl_const_MIP_Problem_t mip,
size_t * sz )
related

Writes into *sz the size in bytes of the memory managed by mip.

Parameters
mipThe borrowed handle to the input object.
szReceives the value computed by the operation.
Returns
Zero on success; a negative error code on failure.

◆ ppl_io_print_MIP_Problem()

int ppl_io_print_MIP_Problem ( ppl_const_MIP_Problem_t x)
related

Prints x to stdout.

Parameters
xThe borrowed handle to the input object.
Returns
Zero on success; a negative error code on failure.

◆ ppl_io_fprint_MIP_Problem()

int ppl_io_fprint_MIP_Problem ( FILE * stream,
ppl_const_MIP_Problem_t x )
related

Prints x to the given output stream.

Parameters
streamThe file stream to which output is written.
xThe borrowed handle to the input object.
Returns
Zero on success; a negative error code on failure.

◆ ppl_io_asprint_MIP_Problem()

int ppl_io_asprint_MIP_Problem ( char ** strp,
ppl_const_MIP_Problem_t x )
related

Prints x to a malloc-allocated string, a pointer to which is returned via strp.

Parameters
strpReceives the newly malloc-allocated string; the caller must release it with free().
xThe borrowed handle to the input object.
Returns
Prints x to a malloc-allocated string, a pointer to which is returned via strp.

◆ ppl_MIP_Problem_ascii_dump()

int ppl_MIP_Problem_ascii_dump ( ppl_const_MIP_Problem_t x,
FILE * stream )
related

Dumps an ascii representation of x on stream.

Parameters
xThe borrowed handle to the input object.
streamThe file stream to which output is written.
Returns
Zero on success; a negative error code on failure.

◆ ppl_MIP_Problem_ascii_load()

int ppl_MIP_Problem_ascii_load ( ppl_MIP_Problem_t x,
FILE * stream )
related

Loads an ascii representation of x from stream.

Parameters
xThe mixed-integer programming problem operand.
streamThe file stream from which input is read.
Returns
Zero on success; a negative error code on failure.

The documentation for this interface was generated from the following file: