使用Solver Foundation Services重新启动 [英] Restart with Solver Foundation Services

查看:73
本文介绍了使用Solver Foundation Services重新启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

是否可以更改决策变量的边界(域,即变量的最小值,最大值)和约束限制值(RHS和LHS) )在完成求解之后再次调用Solve,使得后面的求解器使用restart来解决
改变的模型(所以不从头开始做一个全新的求解)?

Is it possible to change bounds on decision variables (the domain ie the min, max on the variable) and the constraint restriction value (the RHS and LHS) after a solve is done and then call Solve again such that the solver behind uses restart to solve the changed model (so not doing a complete new solve from scratch)?

我可以从模型中访问约束,但是它上面的Expression属性是一个字符串,我希望有一个Term,这样我就可以对它进行修改。

I can acces the constraints from the model, but the Expression property on it is a string and I would expect a Term so that I can modified it.

还有模型上的Decisions,我没有看到如何访问域名或如何修改域名的方式。

Also with the Decisions on the model, I don't see a way how to acces the domain on them or how to modify the domain.

这是否意味着此功能在Foundation Services中不可用?

Does this mean that this feature is not available in Foundation Services?

最好的问候

推荐答案

你好 - Term对象是只读,与约束对象一样。因此,您正在寻找的功能(目前)尚未在SFS中提供。如果你想要这个功能,那么我会考虑直接针对ILinearModel接口(
求解器级别API)进行编程。

Hello there - The Term object is read-only, as is the constraint objects. Therefore the feature you are looking for is not (currently) available in SFS. If you want this functionality then I would consider programming against the ILinearModel interface (the solver level API) directly.

Nate


这篇关于使用Solver Foundation Services重新启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆