PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, August 15, 2022

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

 August 15, 2022     cplex, output, statistics     No comments   

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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

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

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing