报告中缺少影子价格 [英] Shadow prices missing from Report
问题描述
我刚刚开始使用MFS和C#for Accademy purpouses。我正在测试一些简单的模型,只是为了比较结果并了解如何使用库。我想知道为什么我不能让报告打印一些数据。这是我的一个
基本型号的报告:
I just started to use MFS with C# for Accademy purpouses. I'm testing some simple models just to compare the results and to understand how to use the library. I was wondering why i can't get the Report to print some data. This is the report from one of my basic models:
=== Solver Foundation Service Report ===
===Solver Foundation Service Report===
Date:21/10/2011 12: 02:41
Date: 21/10/2011 12:02:41
版本:Microsoft Solver Foundation 3.0.1.10599企业版
Version: Microsoft Solver Foundation 3.0.1.10599 Enterprise Edition
型号名称:DefaultModel
Model Name: DefaultModel
应用能力:LP
解决时间(毫秒):147
Solve Time (ms): 147
总时间(毫秒):271
Total Time (ms): 271
解决完成状态:最优
选择的解算器:Microsoft.SolverFoundation.Solvers.SimplexSolver
Solver Selected: Microsoft.SolverFoundation.Solvers.SimplexSolver
指令:
Microsoft.SolverFoundation.Services.Directive
Microsoft.SolverFoundation.Services.Directive
算法:原始
算术:混合
变量:2 - > 2 + 4
Variables: 2 -> 2 + 4
行:4 - > 4
Rows: 4 -> 4
非零:8
消除松弛变量:0
定价(确切):SteepestEdge
Pricing (exact): SteepestEdge
定价(双倍):SteepestEdge
Pricing (double): SteepestEdge
基础:松弛
枢轴数:2
阶段1枢轴:0 + 0
Phase 1 Pivots: 0 + 0
阶段2枢轴:2 + 0
Phase 2 Pivots: 2 + 0
因子:4 + 1
退化轴:0(0,00%)
Degenerate Pivots: 0 (0,00 %)
分支机构:0
===解决方案详情===
===Solution Details===
目标:
g:1800
决定:
数量(x1):6
数量(x2):6
我是使用报告类生成此报告但我无法管理以显示更多详细信息。我还尝试通过将Report对象强制转换为LinearReport来手动打印它们,然后调用GetAllShadowPrices方法,但我得到的只是一个空的
设置。
I've generated this report using the Report class but i can't menage to show further details. I've also tried to manually print them by casting the Report object to a LinearReport and then by calling the GetAllShadowPrices method but all i get is an empty set.
我'来自另一篇文章的红色是关于双变量和灵敏度的数据计算和报告仅针对纯PL问题,这是我的情况。
I've red from another post that data about dual variables and sensitivity are computed and reported only for pure PL problems and this is my case.
希望你能在这里给我一些帮助。
Hope you can give me some help here.
谢谢
Stefano
推荐答案
您好Stefano,
Hi Stefano,
此主题似乎可以解决您的问题:
This thread appears to address your question:
h ttp://archive.msdn.microsoft.com/solverfoundation/Thread/View.aspx?ThreadId = 3431
http://archive.msdn.microsoft.com/solverfoundation/Thread/View.aspx?ThreadId=3431
Nate
这篇关于报告中缺少影子价格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!