當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。