내 솔버 목표 함수에서 내 결정 변수 시간 2.5의 한도를 초과하려고 시도하지만 foobar 변수가 두 배가 아니기 때문에 Math.Ceiling() 함수를 적용 할 수 없습니다. "용어"변수. 솔버에서 작동하는 동일한 코드를 표현할 수있는 또 다른 방법이 있습니까? S :솔버 기초 목표에서 천장 기능을 사용 하시겠습니까?
Decision foo = new Decision(Domain.IntegerNonnegative, "bar");
model.AddDecision(foo);
model.AddGoal("foobar", GoalKind.Maximize, Math.Ceiling(2.5 * foobar));
AddGoal에서'foobar'를 사용하고 있지만'Decision' 변수'foo'를 정의했습니다. –