【问题标题】:Is it possible to make a matrix including nonlinear equalities in Julia?是否可以在 Julia 中制作包含非线性等式的矩阵?
【发布时间】:2018-03-10 08:48:14
【问题描述】:

我的代码中有这个约束。

 i=number of supplier
 p=type of productions
 t=number of period
 constraint=con1[i=1:3,p=1:2,t=1:3],E(I)[i,p,t ]=
 sum(Q[i,p,s] fors=1:t)-sum(E(D)[i,p,t]+E(W)[i,p,s] for s=1:t )) 

 E(I)=((sigmaI/miuI)+sigmaI)*exp(((I[i,p,t]-miuI)/sigmaI)^2)
 E(w)[i,p,t]=((sigmaw/miuw)+sigmaw)*exp(((w[i,p,t]-miuw)/sigmaw)^2)

它们是库存的预期价值和产品的浪费。以及 w 和 I 是决策变量。 我想将所有期望值方程保存在一个矩阵 [3,2,3] 中。 朱莉娅有可能吗? 请帮助我。 谢谢大家

【问题讨论】:

    标签: julia julia-jump


    【解决方案1】:

    是的。您将其设置为求根问题,以在某个数组方程 G(x)=0 中求解 x,并使用像 NLsolve.jl 这样的包。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多