print_scales

Prints the scales of the lp.

void print_scales(lprec *lp);

Return Value

print_scales has no return value.

Parameters

lp

Pointer to previously created lp model. See return value of make_lp, copy_lp, read_lp, read_lp_file, read_LP, read_mps, read_MPS

Remarks

The print_scales function prints the scales of the lp. This can only be done after a successful solve. It will only output something when the model is scaled via the auto_scale function.
This function is meant for debugging purposes. By default, the output is stdout. However this can be changed via a call to print_file.

Example

#include <stdio.h>
#include <stdlib.h>
#include "lpkit.h"

int main(void)
{
  lprec *lp;

  /* Create a new LP model */
  lp = make_lp(1, 1);
  if(lp == NULL) {
    fprintf(stderr, "Unable to create new LP model\n");
    return(1);
  }

  auto_scale(lp);

  solve(lp);

  print_scales(lp);

  delete_lp(lp);

  return(0);
}

lp_solve API reference

See Also delete_lp, make_lp, read_lp, read_lp_file, read_LP, read_mps, read_MPS, print_lp, print_objective, print_solution, print_constraints, print_duals, print_file