当前位置: 首页>>代码示例>>C#>>正文


C# Business.InequationEngine类代码示例

本文整理汇总了C#中ONS.Compiler.Business.InequationEngine的典型用法代码示例。如果您正苦于以下问题:C# InequationEngine类的具体用法?C# InequationEngine怎么用?C# InequationEngine使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


InequationEngine类属于ONS.Compiler.Business命名空间,在下文中一共展示了InequationEngine类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AtualizarVariaveisDaMemoriaDeCalculo

 /// <summary>
 /// Atualiza as variáveis da memória de cálculo de acordo com os valores contidos nos parâmetros.
 /// </summary>
 /// <param name="maquinaInequacoes"></param>
 /// <param name="sheetRow_S_SE"></param>
 public void AtualizarVariaveisDaMemoriaDeCalculo(InequationEngine maquinaInequacoes, SheetRow_ACRO_MT sheetRow_ACRO_MT)
 {
     maquinaInequacoes.CalculationMemory.UpdateVariable("xPOLO1", sheetRow_ACRO_MT.MC_POLO1);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xMaqSA", sheetRow_ACRO_MT.MC_UHESantoAntonioNumUGs);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xTR_prov", sheetRow_ACRO_MT.MC_FTRpr);
     maquinaInequacoes.CalculationMemory.UpdateVariable("Facro", sheetRow_ACRO_MT.MC_FACRO);
 }
开发者ID:jonimoreira,项目名称:TestTFS,代码行数:12,代码来源:Modulo_RACRO_Limite_BtB.cs

示例2: AtualizarVariaveisDaMemoriaDeCalculo

 /// <summary>
 /// Atualiza as variáveis da memória de cálculo de acordo com os valores contidos nos parâmetros.
 /// </summary>
 /// <param name="maquinaInequacoes"></param>
 /// <param name="sheetRow_S_SE"></param>
 public void AtualizarVariaveisDaMemoriaDeCalculo(InequationEngine maquinaInequacoes, SheetRow_N_NE_SE sheetRow_N_NE_SE)
 {
     maquinaInequacoes.CalculationMemory.UpdateVariable("xRNE", sheetRow_N_NE_SE.MC_RNE);
     maquinaInequacoes.CalculationMemory.UpdateVariable("x_cargaNE", sheetRow_N_NE_SE.MC_CargaNE);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xugxingo", sheetRow_N_NE_SE.MC_Xingo_NumUgs);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xlimugx", sheetRow_N_NE_SE.LDvalorplanilha_Xingo_MinMaqs);
 }
开发者ID:jonimoreira,项目名称:TestTFS,代码行数:12,代码来源:Modulo_N_NE_apoio_Limite_RNE_Xingo.cs

示例3: AtualizarVariaveisDaMemoriaDeCalculo

 /// <summary>
 /// Atualiza as variáveis da memória de cálculo de acordo com os valores contidos nos parâmetros.
 /// </summary>
 /// <param name="maquinaInequacoes"></param>
 /// <param name="sheetRow_S_SE"></param>
 public void AtualizarVariaveisDaMemoriaDeCalculo(InequationEngine maquinaInequacoes, SheetRow_N_NE_SE sheetRow_N_NE_SE)
 {
     maquinaInequacoes.CalculationMemory.UpdateVariable("xpercarga", sheetRow_N_NE_SE.LDvalorplanilha_PerCargaNNE);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xRNE", sheetRow_N_NE_SE.MC_RNE);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xEXPN", sheetRow_N_NE_SE.MC_EXP_N);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xEXPSE", sheetRow_N_NE_SE.MC_EXP_SE);
 }
开发者ID:jonimoreira,项目名称:TestTFS,代码行数:12,代码来源:Modulo_N_NE_apoio_Limite_Inf_EXPN_IO_NNE.cs

示例4: AtualizarVariaveisDaMemoriaDeCalculo

 /// <summary>
 /// Atualiza as variáveis da memória de cálculo de acordo com os valores contidos nos parâmetros.
 /// </summary>
 /// <param name="maquinaInequacoes"></param>
 /// <param name="sheetRow_S_SE"></param>
 public void AtualizarVariaveisDaMemoriaDeCalculo(InequationEngine maquinaInequacoes, SheetRow_ACRO_MT sheetRow_ACRO_MT)
 {
     maquinaInequacoes.CalculationMemory.UpdateVariable("xPolo", sheetRow_ACRO_MT.MC_POLO1);
     maquinaInequacoes.CalculationMemory.UpdateVariable("BtB", sheetRow_ACRO_MT.MC_FBtB);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xMaqSA", sheetRow_ACRO_MT.MC_UHESantoAntonioNumUGs);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xMaqJir", sheetRow_ACRO_MT.MC_UHJirauNumUgs);
 }
开发者ID:jonimoreira,项目名称:TestTFS,代码行数:12,代码来源:Modulo_RACRO_Limite_POLO.cs

示例5: AtualizarVariaveisDaMemoriaDeCalculo

 /// <summary>
 /// Atualiza as variáveis da memória de cálculo de acordo com os valores contidos nos parâmetros.
 /// </summary>
 /// <param name="maquinaInequacoes"></param>
 /// <param name="xDiaSemana"></param>
 /// <param name="xTipo"></param>
 /// <param name="Hverao"></param>
 public void AtualizarVariaveisDaMemoriaDeCalculo(InequationEngine maquinaInequacoes, SheetRow_S_SE sheetRow_S_SE, string xDiaSemana, string xTipo, string Hverao)
 {
     maquinaInequacoes.CalculationMemory.UpdateVariable("xhora", CustomFunctions.Hora(sheetRow_S_SE.PK_HoraInicFim.Key + ":00"));
     //maquinaInequacoes.CalculationMemory.UpdateVariable("xDiaSemana", xDiaSemana);
        // maquinaInequacoes.CalculationMemory.UpdateVariable("xTipo", xTipo);
     //maquinaInequacoes.CalculationMemory.UpdateVariable("Hverao", Hverao);
 }
开发者ID:jonimoreira,项目名称:TestTFS,代码行数:14,代码来源:Modulo_PERIODO_SE_CO_RNE_2009_PeriodoCarga_SE_CO.cs

示例6: ExecutarExpressaoSimples

        public void ExecutarExpressaoSimples()
        {
            int a=1, b=2;
            string expressao = "(a+b)>0";
            string blocoAcaoTrue = "a=0;b=-1";
            string blocoAcaoFalse = "a=-1;b=0";

            InequationEngine maquinaInequacoes = new InequationEngine();
            maquinaInequacoes.CalculationMemory.Add(new Variable("a", VariableDataType.Numeric, a));
            maquinaInequacoes.CalculationMemory.Add(new Variable("b", VariableDataType.Numeric, b));

            Inequation inequacao = new Inequation(expressao);
            ActionBlock blocoAcaoTrueObj = new ActionBlock(blocoAcaoTrue);
            ActionBlock blocoAcaoFalseObj = new ActionBlock(blocoAcaoFalse);

            Decision decisao = new Decision(inequacao, blocoAcaoTrueObj, blocoAcaoFalseObj);
            maquinaInequacoes.DecisionsList.AddDecision(decisao);

            maquinaInequacoes.Compile();

            maquinaInequacoes.Execute();

            Assert.AreEqual(maquinaInequacoes.CalculationMemory["a"].GetValue(), 0.0);
            Assert.AreEqual(maquinaInequacoes.CalculationMemory["b"].GetValue(), -1.0);
        }
开发者ID:jonimoreira,项目名称:TestTFS,代码行数:25,代码来源:MaquinaInequacoesUnitTests.cs

示例7: AtualizarVariaveisDaMemoriaDeCalculo

 /// <summary>
 /// Atualiza as variáveis da memória de cálculo de acordo com os valores contidos nos parâmetros.
 /// </summary>
 /// <param name="maquinaInequacoes"></param>
 /// <param name="sheetRow_S_SE"></param>
 public void AtualizarVariaveisDaMemoriaDeCalculo(InequationEngine maquinaInequacoes, SheetRow_ACRO_MT sheetRow_ACRO_MT)
 {
     maquinaInequacoes.CalculationMemory.UpdateVariable("xPolo", sheetRow_ACRO_MT.MC_POLO1);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xTR_prov", sheetRow_ACRO_MT.MC_FTRpr);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xBtB", sheetRow_ACRO_MT.MC_FBtB);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xGerSA", sheetRow_ACRO_MT.MC_UHESantoAntonioGerTotal);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xGerJir", sheetRow_ACRO_MT.MC_UHJirauGer);
 }
开发者ID:jonimoreira,项目名称:TestTFS,代码行数:13,代码来源:Modulo_RACRO_Limite_SA_JI.cs

示例8: AtualizarVariaveisDaMemoriaDeCalculo

 /// <summary>
 /// Atualiza as variáveis da memória de cálculo de acordo com os valores contidos nos parâmetros.
 /// </summary>
 /// <param name="maquinaInequacoes"></param>    
 /// <param name="sheetRow_S_SE"></param>
 public void AtualizarVariaveisDaMemoriaDeCalculo(InequationEngine maquinaInequacoes, SheetRow_SEVERA_N3 sheetRow_SEVERA_N3, SheetRow_S_SE sheetRow_S_SE)
 {
     maquinaInequacoes.CalculationMemory.UpdateVariable("xpercarga", sheetRow_S_SE.LDvalorplanilha_PERIODO_DE_CARGA);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xcargaSIN", sheetRow_S_SE.MC_CARGA_SIN);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xelocc", sheetRow_S_SE.MC_POT_ELO_CC);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xhbo", sheetRow_SEVERA_N3.MC_HBO);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xlimite_rse", sheetRow_S_SE.LDvalorplanilha_LIM_RSE);
 }
开发者ID:jonimoreira,项目名称:TestTFS,代码行数:13,代码来源:Modulo_Limites_MOPs_LIM_RSE_n3.cs

示例9: AtualizarVariaveisDaMemoriaDeCalculo

 /// <summary>
 /// Atualiza as variáveis da memória de cálculo de acordo com os valores contidos nos parâmetros.
 /// </summary>
 /// <param name="maquinaInequacoes"></param>    
 /// <param name="sheetRow_S_SE"></param>
 public void AtualizarVariaveisDaMemoriaDeCalculo(InequationEngine maquinaInequacoes, SheetRow_SEVERA_N3 sheetRow_SEVERA_N3, SheetRow_S_SE sheetRow_S_SE, SheetRow_N_NE_SE sheetRow_N_NE_SE)
 {
     maquinaInequacoes.CalculationMemory.UpdateVariable("xcargaSIN", sheetRow_S_SE.MC_CARGA_SIN);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xcbrava", sheetRow_SEVERA_N3.MC_MqsCanaBrava);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xhbo", sheetRow_SEVERA_N3.MC_HBO);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xmq_sm", sheetRow_N_NE_SE.MC_SMGerando + sheetRow_N_NE_SE.MC_Maqs_SMCOp);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xpercarga", sheetRow_S_SE.LDvalorplanilha_PERIODO_DE_CARGA);
 }
开发者ID:jonimoreira,项目名称:TestTFS,代码行数:13,代码来源:Modulo_Limites_MOPs_LIM_FNS_n3.cs

示例10: AtualizarVariaveisDaMemoriaDeCalculo

 /// <summary>
 /// Atualiza as variáveis da memória de cálculo de acordo com os valores contidos nos parâmetros.
 /// </summary>
 /// <param name="maquinaInequacoes"></param>
 /// <param name="sheetRow_S_SE"></param>
 public void AtualizarVariaveisDaMemoriaDeCalculo(InequationEngine maquinaInequacoes, SheetRow_S_SE sheetRow_S_SE)
 {
     maquinaInequacoes.CalculationMemory.UpdateVariable("xelo", sheetRow_S_SE.MC_POT_ELO_CC);
     //maquinaInequacoes.CalculationMemory.UpdateVariable("xangra", sheetRow_SUL.MC_UGs_Gerando_Araucaria);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xMaq", sheetRow_S_SE.MC_Mq_60Hz);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xGerIPU", sheetRow_S_SE.MC_GIPU_60Hz);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xrsul", sheetRow_S_SE.MC_RSUL);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xpercarga", sheetRow_S_SE.LDretorno_PERIODO_DE_CARGA);
 }
开发者ID:jonimoreira,项目名称:TestTFS,代码行数:14,代码来源:Modulo_Interligacao_SSE_Limite_RSE.cs

示例11: CarregarMemoriaDeCalculo

        public void CarregarMemoriaDeCalculo()
        {
            Mediador mediador = new Mediador();

            InequationEngine maquinaInequacoes = new InequationEngine();
            mediador.CarregarMemoriaDeCalculo(maquinaInequacoes, nomeFuncao);

            Assert.AreEqual(true, true);
        }
开发者ID:jonimoreira,项目名称:TestTFS,代码行数:9,代码来源:Modulo_N_NE_SE_semECE_RNE_2009_min_Xingo.cs

示例12: AtualizarListaDeDecisoes

        /// <summary>
        /// Método para popular a decisão com {inequação, bloco V}. Bloco F = vazio.
        /// </summary>
        /// <param name="maquinaInequacoes"></param>
        /// <param name="decisaoLinha"></param>
        public void AtualizarListaDeDecisoes(InequationEngine maquinaInequacoes, KeyValuePair<string, string> decisaoLinha)
        {
            Inequation inequacao = new Inequation(decisaoLinha.Key);
            ActionBlock blocoAcaoTrueObj = new ActionBlock(decisaoLinha.Value);
            ActionBlock blocoAcaoFalseObj = new ActionBlock(string.Empty);

            Decision decisao = new Decision(inequacao, blocoAcaoTrueObj, blocoAcaoFalseObj);
            maquinaInequacoes.DecisionsList.AddDecision(decisao);
        }
开发者ID:jonimoreira,项目名称:TestTFS,代码行数:14,代码来源:Mediador.cs

示例13: AtualizarVariaveisDaMemoriaDeCalculo

 /// <summary>
 /// Atualiza as variáveis da memória de cálculo de acordo com os valores contidos nos parâmetros.
 /// </summary>
 /// <param name="maquinaInequacoes"></param>
 /// <param name="sheetRow_S_SE"></param>
 public void AtualizarVariaveisDaMemoriaDeCalculo(InequationEngine maquinaInequacoes, SheetRow_S_SE sheetRow_S_SE, SheetRow_SUL sheetRow_SUL)
 {
     maquinaInequacoes.CalculationMemory.UpdateVariable("xrsul", sheetRow_S_SE.MC_RSUL);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xcargasul", sheetRow_S_SE.MC_CARGA_SUL);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xugarauc", sheetRow_SUL.MC_UGs_Gerando_Araucaria);
     maquinaInequacoes.CalculationMemory.UpdateVariable("x_refFRS_Ger", sheetRow_SUL.LD_ValorReferenciaFRS_Usinas);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xFRS_GerUSs", sheetRow_SUL.MC_FRS - sheetRow_S_SE.MC_Gera_Usinas);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xJLP", sheetRow_SUL.MC_J_Lacerda_P);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xJLM", sheetRow_SUL.MC_J_Lacerda_M);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xJLG", sheetRow_SUL.MC_J_Lacerda_G);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xJLGG", sheetRow_SUL.MC_J_Lacerda_GG);
 }
开发者ID:jonimoreira,项目名称:TestTFS,代码行数:17,代码来源:Modulo_Interligacao_SSE_limiteFINBA.cs

示例14: AtualizarVariaveisDaMemoriaDeCalculo

 /// <summary>
 /// Atualiza as variáveis da memória de cálculo de acordo com os valores contidos nos parâmetros.
 /// </summary>
 /// <param name="maquinaInequacoes"></param>
 /// <param name="sheetRow_S_SE"></param>
 public void AtualizarVariaveisDaMemoriaDeCalculo(InequationEngine maquinaInequacoes, SheetRow_ACRO_MT sheetRow_ACRO_MT)
 {
     maquinaInequacoes.CalculationMemory.UpdateVariable("xFACRO", sheetRow_ACRO_MT.MC_FBtB);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xMaqSA", sheetRow_ACRO_MT.MC_UHESantoAntonioNumUGs);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xMaqJir", sheetRow_ACRO_MT.MC_UHJirauNumUgs);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xilha1", sheetRow_ACRO_MT.MC_UHESantoAntonioGeracaoIlha1);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xilha2", sheetRow_ACRO_MT.MC_UHESantoAntonioGeracaoIlha2);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xmesq", sheetRow_ACRO_MT.MC_UHESantoAntonioGeracaoMEsqrd);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xJirau", sheetRow_ACRO_MT.MC_UHJirauGer);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xTR_prov", sheetRow_ACRO_MT.MC_FTRpr);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xPOLO1", sheetRow_ACRO_MT.MC_POLO1);
     maquinaInequacoes.CalculationMemory.UpdateVariable("xBtB", sheetRow_ACRO_MT.MC_FBtB);
 }
开发者ID:jonimoreira,项目名称:TestTFS,代码行数:18,代码来源:Modulo_RACRO_Limite_Inf_FACRO.cs

示例15: CarregarVariavelDuplicada

 public void CarregarVariavelDuplicada()
 {
     InequationEngine maquinaInequacoes = new InequationEngine();
     maquinaInequacoes.CalculationMemory.Add(new Variable("a", VariableDataType.String));
     try
     {
         maquinaInequacoes.CalculationMemory.Add(new Variable("a", VariableDataType.String));
     }
     catch (InequationEngineException iInEngEx)
     {
         Assert.AreEqual(iInEngEx.ExceptionType.ToString(), ExceptionType.ExistingVariableInCalcMemory.ToString());
         return;
     }
     Assert.Fail();
 }
开发者ID:jonimoreira,项目名称:TestTFS,代码行数:15,代码来源:MaquinaInequacoesUnitTests.cs


注:本文中的ONS.Compiler.Business.InequationEngine类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。