Monday, August 15, 2022

[FIXED] Where can I find the explanations about the part of cplex statistics that are obtained in output?

Issue

I would like to understand the meaning of the individual items of the statistic part that provides cplex in output. Also know if it is possible to save the solutions obtained in an excel file. Thank you


Solution

First you can store statistics in variable:

int nbKids=300;
float costBus40=500;
float costBus30=400;
 
dvar int+ nbBus40;
dvar int+ nbBus30;
 
minimize
 costBus40*nbBus40  +nbBus30*costBus30;
 
subject to
{
 40*nbBus40+nbBus30*30>=nbKids;
} 

int n1;
int n2;
int n3;

execute
{
  n1=cplex.getNcols();
  n2=cplex.getNrows();
  n3=cplex.getNNZs();
}

and then you can use SheetWrite to write those figures in an excel spreadsheet.

See Excel, Rocket science and optimization



Answered By - Alex Fleischer
Answer Checked By - Gilberto Lyons (PHPFixing Admin)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.