필터 지우기
필터 지우기

Adding Constraints to solve

조회 수: 3 (최근 30일)
Hunter Herrenkohl
Hunter Herrenkohl 2019년 3월 10일
답변: darova 2019년 3월 11일
I have
vcuaamo = 13.58823529;
sjuaamo = -4.470588235;
vcuhome = 19.125;
sjuhome = -2.111111111;
vcuaway = 8.666666667;
sjuaway = -7.125;
vculast7 = 15.57142857;
wjulast7 = 2.714285714;
vcuprepoints = 71.9;
sjuprepoints = 65.7;
a = 0.35, b = 0.25, c = 0.2, d = 0.2;
one = a+b+c+d;
one = 1;
I want to find the way this equation equals 12, by changing a, b, c, d. There are some constraints being a>b,c,d and c>b,d, and that a+b+c+d=1, also a,b,c,d > 0
12 == (vcuaamo-sjuaamo)*a+(vcuhome-sjuaway)*b+(vculast7-sjulast7)*c+(vcuprepoints-sjuprepoints)*d

답변 (1개)

darova
darova 2019년 3월 11일
It seems that there is no solution for constraints. Look attached script.
Main equation F ==12 and a+b+c+d==1. Expressed a and c as function a=a(b,d) and c=c(b,d)
hunt1.jpg hunt2.jpg

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by